diff options
author | Rick Farina <zerochaos@gentoo.org> | 2020-12-18 14:17:59 -0500 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2020-12-18 14:41:23 -0500 |
commit | effa2a6f22c07ff0a6a4316568fc41123281e16e (patch) | |
tree | 0bfc650bcec846108964c52e866aaefd2926bc17 /net-wireless | |
parent | net-wireless/liblms7002m: fix copypasta (diff) | |
download | gentoo-effa2a6f22c07ff0a6a4316568fc41123281e16e.tar.gz gentoo-effa2a6f22c07ff0a6a4316568fc41123281e16e.tar.bz2 gentoo-effa2a6f22c07ff0a6a4316568fc41123281e16e.zip |
net-wireless/libxtrx: xtrx support
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/libxtrx/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/libxtrx/libxtrx-0.0_p20201202.ebuild | 40 | ||||
-rw-r--r-- | net-wireless/libxtrx/libxtrx-9999.ebuild | 40 | ||||
-rw-r--r-- | net-wireless/libxtrx/metadata.xml | 8 |
4 files changed, 89 insertions, 0 deletions
diff --git a/net-wireless/libxtrx/Manifest b/net-wireless/libxtrx/Manifest new file mode 100644 index 000000000000..fb22b2a121e5 --- /dev/null +++ b/net-wireless/libxtrx/Manifest @@ -0,0 +1 @@ +DIST libxtrx-0.0_p20201202.tar.gz 78058 BLAKE2B 5d2bcd3857226208158abfd8a6790ecc1204e59336f81cac90368da2f7628c9fe2ec3b8b794afe66720aa53455f1b7ead9b2f6fc36edd36718452c294b6e7aa5 SHA512 bc32c0cdc9d19bda62582081b950b50698e000c42cbfd46904287bb12d216d875d636579cfbd68d94d83e67df655825c0f88697854cc134d2cef5a20d614f73f diff --git a/net-wireless/libxtrx/libxtrx-0.0_p20201202.ebuild b/net-wireless/libxtrx/libxtrx-0.0_p20201202.ebuild new file mode 100644 index 000000000000..5277ce0e5d1f --- /dev/null +++ b/net-wireless/libxtrx/libxtrx-0.0_p20201202.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="High-level XTRX API library" +HOMEPAGE="https://github.com/xtrx-sdr/libxtrx" +LICENSE="LGPL-2.1" +SLOT="0/${PV}" + +if [[ ${PV} =~ "9999" ]]; then + EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrx.git" + inherit git-r3 +else + COMMIT="acb0b1cf7ab92744034767a04c1d4b4c281b840f" + SRC_URI="https://github.com/xtrx-sdr/libxtrx/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi + +IUSE="" + +RDEPEND=" + net-wireless/libxtrxll:= + net-wireless/libxtrxdsp:= + net-wireless/liblms7002m:= +" +# soapy? ( net-wireless/soapysdr ) +DEPEND="${RDEPEND}" + +src_configure() { + #fails to build, not sure why + #-DENABLE_SOAPY="$(usex soapy ON OFF)" + mycmakeargs=( + -DENABLE_SOAPY=OFF + ) + cmake_src_configure +} diff --git a/net-wireless/libxtrx/libxtrx-9999.ebuild b/net-wireless/libxtrx/libxtrx-9999.ebuild new file mode 100644 index 000000000000..5277ce0e5d1f --- /dev/null +++ b/net-wireless/libxtrx/libxtrx-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="High-level XTRX API library" +HOMEPAGE="https://github.com/xtrx-sdr/libxtrx" +LICENSE="LGPL-2.1" +SLOT="0/${PV}" + +if [[ ${PV} =~ "9999" ]]; then + EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrx.git" + inherit git-r3 +else + COMMIT="acb0b1cf7ab92744034767a04c1d4b4c281b840f" + SRC_URI="https://github.com/xtrx-sdr/libxtrx/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi + +IUSE="" + +RDEPEND=" + net-wireless/libxtrxll:= + net-wireless/libxtrxdsp:= + net-wireless/liblms7002m:= +" +# soapy? ( net-wireless/soapysdr ) +DEPEND="${RDEPEND}" + +src_configure() { + #fails to build, not sure why + #-DENABLE_SOAPY="$(usex soapy ON OFF)" + mycmakeargs=( + -DENABLE_SOAPY=OFF + ) + cmake_src_configure +} diff --git a/net-wireless/libxtrx/metadata.xml b/net-wireless/libxtrx/metadata.xml new file mode 100644 index 000000000000..1570f891c6a3 --- /dev/null +++ b/net-wireless/libxtrx/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>radio@gentoo.org</email> + <name>Radio</name> + </maintainer> +</pkgmetadata> |