diff options
author | Rick Farina <zerochaos@gentoo.org> | 2020-10-06 16:10:59 -0400 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2020-10-07 16:26:13 -0400 |
commit | 7b8f4150702735bbb00f5f0a1782f684ad123096 (patch) | |
tree | 3b541f1c91d0c63d6923b5219c473c833665d4ff /net-wireless/libm2k | |
parent | net-wireless/gr-scopy: initial ebuild (diff) | |
download | gentoo-7b8f4150702735bbb00f5f0a1782f684ad123096.tar.gz gentoo-7b8f4150702735bbb00f5f0a1782f684ad123096.tar.bz2 gentoo-7b8f4150702735bbb00f5f0a1782f684ad123096.zip |
net-wireless/libm2k: initial ebuild
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/libm2k')
-rw-r--r-- | net-wireless/libm2k/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/libm2k/libm2k-0.0_p20201005.ebuild | 44 | ||||
-rw-r--r-- | net-wireless/libm2k/libm2k-9999.ebuild | 44 | ||||
-rw-r--r-- | net-wireless/libm2k/metadata.xml | 15 |
4 files changed, 104 insertions, 0 deletions
diff --git a/net-wireless/libm2k/Manifest b/net-wireless/libm2k/Manifest new file mode 100644 index 000000000000..ba466716103f --- /dev/null +++ b/net-wireless/libm2k/Manifest @@ -0,0 +1 @@ +DIST libm2k-0.0_p20201005.tar.gz 590923 BLAKE2B 47b018ca8524a30d2d22c387c45361a3765ef356a481ff144783e459f673f3c00ba122cfc086b4f7d3cef2f6847b9adee3bc1eec4f6ee52eb355a9625b29b7c6 SHA512 60ca79048408e3ee6b09978f417cc8a0b67982fe9ac62563331c96fb503af22b050803f9d10598e9edd02eb3af396c1ad0d16772ae3cd3d16c251bd588a682c8 diff --git a/net-wireless/libm2k/libm2k-0.0_p20201005.ebuild b/net-wireless/libm2k/libm2k-0.0_p20201005.ebuild new file mode 100644 index 000000000000..25cde65f485c --- /dev/null +++ b/net-wireless/libm2k/libm2k-0.0_p20201005.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit cmake python-single-r1 udev + +DESCRIPTION="A C++ library for interfacing with the ADALM2000" +HOMEPAGE="https://github.com/analogdevicesinc/libm2k" +if [ "${PV}" = "9999" ]; then + EGIT_REPO_URI="https://github.com/analogdevicesinc/libm2k.git" + inherit git-r3 +else + COMMIT="f98dfa42134d2dff458c7832842d1f51c3131aa4" + SRC_URI="https://github.com/analogdevicesinc/libm2k/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="GPL-3+" +SLOT="0" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +RDEPEND="${PYTHON_DEPS} + net-libs/libiio + " +DEPEND="${RDEPEND} + dev-lang/swig +" + +src_configure() { + mycmakeargs=( + -DUDEV_RULES_PATH="$(get_udevdir)"/rules.d + -DCMAKE_SKIP_BUILD_RPATH=TRUE + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + #this seems to not compile things + python_optimize +} diff --git a/net-wireless/libm2k/libm2k-9999.ebuild b/net-wireless/libm2k/libm2k-9999.ebuild new file mode 100644 index 000000000000..25cde65f485c --- /dev/null +++ b/net-wireless/libm2k/libm2k-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit cmake python-single-r1 udev + +DESCRIPTION="A C++ library for interfacing with the ADALM2000" +HOMEPAGE="https://github.com/analogdevicesinc/libm2k" +if [ "${PV}" = "9999" ]; then + EGIT_REPO_URI="https://github.com/analogdevicesinc/libm2k.git" + inherit git-r3 +else + COMMIT="f98dfa42134d2dff458c7832842d1f51c3131aa4" + SRC_URI="https://github.com/analogdevicesinc/libm2k/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="GPL-3+" +SLOT="0" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +RDEPEND="${PYTHON_DEPS} + net-libs/libiio + " +DEPEND="${RDEPEND} + dev-lang/swig +" + +src_configure() { + mycmakeargs=( + -DUDEV_RULES_PATH="$(get_udevdir)"/rules.d + -DCMAKE_SKIP_BUILD_RPATH=TRUE + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + #this seems to not compile things + python_optimize +} diff --git a/net-wireless/libm2k/metadata.xml b/net-wireless/libm2k/metadata.xml new file mode 100644 index 000000000000..5e6b1e4eb830 --- /dev/null +++ b/net-wireless/libm2k/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + <name>Rick Farina</name> + </maintainer> + <maintainer type="project"> + <email>radio@gentoo.org</email> + <name>Radio</name> + </maintainer> + <upstream> + <remote-id type="github">analogdevicesinc/libm2k</remote-id> + </upstream> +</pkgmetadata> |