gr-m2k: save broken package from gentoo removal with plans of gr-3.10

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-03-18 10:42:38 -04:00
parent 1d22a64a5c
commit c84237e462
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
5 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,46 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{7..10} )
inherit cmake python-single-r1
DESCRIPTION="A C++ library for interfacing with the ADALM2000"
HOMEPAGE="https://github.com/analogdevicesinc/gr-m2k"
if [ "${PV}" = "9999" ]; then
EGIT_REPO_URI="https://github.com/analogdevicesinc/gr-m2k.git"
inherit git-r3
else
COMMIT="f98dfa42134d2dff458c7832842d1f51c3131aa4"
SRC_URI="https://github.com/analogdevicesinc/gr-m2k/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}
dev-libs/boost:=
=net-wireless/gnuradio-3.8*:=
net-libs/libiio
net-wireless/libm2k
"
DEPEND="${RDEPEND}
dev-lang/swig
"
src_configure() {
mycmakeargs=(
-DCMAKE_SKIP_BUILD_RPATH=TRUE
)
cmake_src_configure
}
src_install() {
cmake_src_install
#this seems to not compile things
python_optimize
}

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://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/gr-m2k</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,44 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{7,8,9,10} )
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
}

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://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>

View file

@ -15,3 +15,5 @@ dev-ruby/patch_finder
#removing old stuff from gentoo but we want to keep it
net-wireless/rtl_power_fftw
net-wireless/gr-m2k
net-wireless/libm2k