mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 14:21:02 +02:00
gnuradio: 3.8 unkeyworded bump with python3 support
This commit is contained in:
parent
13b8d41b02
commit
9cbb63cfa1
10 changed files with 336 additions and 3 deletions
1
net-wireless/gnuradio/Manifest
Normal file
1
net-wireless/gnuradio/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST gnuradio-3.8.0.0.tar.xz 2431028 BLAKE2B a0b47d951e90c716f7ecc9a0c42e2ba2e8f5dabc37fcc0d1cd17cd660cc46ab09a6e95c5292df9e99625ad2060f8fd68f645f147540a53ab4090549788193d06 SHA512 62b5df54d16b6649c9518f2cf69de8d5bc45a6ea7a64af6676d6b4e58ac7adf6ec0d0b88d1fc993b973d556682b34f25833ecc7771ca9f6a8e985a8b8ee3cef8
|
||||
203
net-wireless/gnuradio/gnuradio-3.8.0.0.ebuild
Normal file
203
net-wireless/gnuradio/gnuradio-3.8.0.0.ebuild
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7} )
|
||||
|
||||
CMAKE_BUILD_TYPE="None"
|
||||
inherit cmake-utils python-single-r1 python-utils-r1 virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios"
|
||||
HOMEPAGE="https://www.gnuradio.org/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
if [[ ${PV} =~ "9999" ]]; then
|
||||
EGIT_REPO_URI="https://www.gnuradio.org/cgit/gnuradio.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/gnuradio/gnuradio/releases/download/v${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
IUSE="+audio +alsa +analog +digital channels doc dtv examples fec +filter grc jack modtool oss performance-counters portaudio +qt5 sdl test trellis uhd vocoder +utils wavelet zeromq"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
audio? ( || ( alsa oss jack portaudio ) )
|
||||
alsa? ( audio )
|
||||
jack? ( audio )
|
||||
oss? ( audio )
|
||||
portaudio? ( audio )
|
||||
analog? ( filter )
|
||||
channels? ( filter analog qt5 )
|
||||
digital? ( filter analog )
|
||||
dtv? ( filter analog fec )
|
||||
modtool? ( utils )
|
||||
qt5? ( filter )
|
||||
trellis? ( analog digital )
|
||||
uhd? ( filter analog python_targets_python2_7 )
|
||||
vocoder? ( filter analog )
|
||||
wavelet? ( analog )
|
||||
"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
>=dev-lang/orc-0.4.12
|
||||
dev-libs/boost:0=[python,${PYTHON_USEDEP}]
|
||||
dev-libs/log4cpp
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
sci-libs/fftw:3.0=
|
||||
sci-libs/mpir
|
||||
alsa? ( media-libs/alsa-lib:= )
|
||||
fec? ( sci-libs/scipy )
|
||||
filter? ( sci-libs/scipy )
|
||||
grc? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
)
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre )
|
||||
qt5? (
|
||||
dev-python/PyQt5[opengl,${PYTHON_USEDEP}]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
x11-libs/qwt:6[qt5(+)]
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
sdl? ( >=media-libs/libsdl-1.2.0 )
|
||||
trellis? ( sci-libs/scipy )
|
||||
uhd? (
|
||||
$(python_gen_cond_dep '>=net-wireless/uhd-3.9.6:=[${PYTHON_USEDEP}]' python2_7)
|
||||
)
|
||||
utils? (
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/click-plugins[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
)
|
||||
vocoder? (
|
||||
media-sound/gsm
|
||||
>=media-libs/codec2-0.8.1
|
||||
)
|
||||
wavelet? ( >=sci-libs/gsl-1.10 )
|
||||
zeromq? ( >=net-libs/zeromq-2.1.11 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook-xml-dtd:4.2
|
||||
>=dev-lang/swig-3.0.5
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
>=app-doc/doxygen-1.5.7.1
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)
|
||||
grc? ( x11-misc/xdg-utils )
|
||||
oss? ( virtual/os-headers )
|
||||
test? ( >=dev-util/cppunit-1.9.14 )
|
||||
zeromq? ( net-libs/cppzmq )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
xdg_environment_reset #534582
|
||||
|
||||
use !alsa && sed -i 's#version.h#version-nonexistent.h#' cmake/Modules/FindALSA.cmake
|
||||
use !jack && sed -i 's#jack.h#jack-nonexistent.h#' cmake/Modules/FindJACK.cmake
|
||||
use !oss && sed -i 's#soundcard.h#oss-nonexistent.h#g' cmake/Modules/FindOSS.cmake
|
||||
use !portaudio && sed -i 's#portaudio.h#portaudio-nonexistent.h#g' cmake/Modules/FindPORTAUDIO.cmake
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#zeromq missing deps isn't fatal
|
||||
python_export PYTHON_SITEDIR
|
||||
mycmakeargs=(
|
||||
-DENABLE_DEFAULT=OFF
|
||||
-DENABLE_GNURADIO_RUNTIME=ON
|
||||
-DENABLE_VOLK=ON
|
||||
-DENABLE_PYTHON=ON
|
||||
-DENABLE_GR_BLOCKS=ON
|
||||
-DENABLE_GR_FFT=ON
|
||||
-DENABLE_GR_AUDIO=ON
|
||||
-DENABLE_GR_ANALOG="$(usex analog)"
|
||||
-DENABLE_GR_CHANNELS="$(usex channels)"
|
||||
-DENABLE_GR_DIGITAL="$(usex digital)"
|
||||
-DENABLE_DOXYGEN="$(usex doc)"
|
||||
-DENABLE_SPHINX="$(usex doc)"
|
||||
-DENABLE_GR_DTV="$(usex dtv)"
|
||||
-DENABLE_GR_FEC="$(usex fec)"
|
||||
-DENABLE_GR_FILTER="$(usex filter)"
|
||||
-DENABLE_GRC="$(usex grc)"
|
||||
-DENABLE_GR_MODTOOL="$(usex modtool)"
|
||||
-DENABLE_PERFORMANCE_COUNTERS="$(usex performance-counters)"
|
||||
-DENABLE_TESTING="$(usex test)"
|
||||
-DENABLE_GR_TRELLIS="$(usex trellis)"
|
||||
-DENABLE_GR_UHD="$(usex uhd)"
|
||||
-DENABLE_GR_UTILS="$(usex utils)"
|
||||
-DENABLE_GR_VOCODER="$(usex vocoder)"
|
||||
-DENABLE_GR_WAVELET="$(usex wavelet)"
|
||||
-DENABLE_GR_QTGUI="$(usex qt5)"
|
||||
-DENABLE_GR_VIDEO_SDL="$(usex sdl)"
|
||||
-DENABLE_GR_ZEROMQ="$(usex zeromq)"
|
||||
-DSYSCONFDIR="${EPREFIX}"/etc
|
||||
-DPYTHON_EXECUTABLE="${PYTHON}"
|
||||
-DGR_PYTHON_DIR="${PYTHON_SITEDIR}"
|
||||
-DGR_PKG_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use examples ; then
|
||||
dodir /usr/share/doc/${PF}/
|
||||
mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
else
|
||||
# It seems that the examples are always installed
|
||||
rm -rf "${ED}"/usr/share/${PN}/examples || die
|
||||
fi
|
||||
|
||||
if use doc || use examples; then
|
||||
#this doesn't appear useful
|
||||
rm -rf "${ED}"/usr/share/doc/${PF}/xml || die
|
||||
fi
|
||||
|
||||
# Remove duplicated icons, MIME and desktop files and installation script
|
||||
rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die
|
||||
rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die
|
||||
|
||||
# Remove incorrectly byte-compiled Python files and replace
|
||||
find "${ED}"/usr/lib -name "*.py[co]" -exec rm {} \; || die
|
||||
python_optimize
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
virtx cmake-utils_src_test
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
if use grc ; then
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm()
|
||||
{
|
||||
if use grc ; then
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
||||
31
net-wireless/gnuradio/metadata.xml
Normal file
31
net-wireless/gnuradio/metadata.xml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?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>
|
||||
<use>
|
||||
<flag name="analog">enable analog signal processing blocks</flag>
|
||||
<flag name="atsc">enable ATSC (HDTV) transmitter and receiver blocks</flag>
|
||||
<flag name="audio">enable blocks to connect to audio sources (mic-in) and sinks (speaker-out) ports on a computer</flag>
|
||||
<flag name="channels">enable channel mode blocks</flag>
|
||||
<flag name="digital">enable digital signal processing blocks</flag>
|
||||
<flag name="dtv">enable digital tv signal processing blocks</flag>
|
||||
<flag name="fcd">enable Funcube Dongle source block</flag>
|
||||
<flag name="fec">enable block for convolutional encoding using the CCSDS standard polynomial ("Voyager")</flag>
|
||||
<flag name="filter">enable filter signal processing blocks</flag>
|
||||
<flag name="grc">enable GNU Radio Companion graphical tool to design signal processing flow graphs</flag>
|
||||
<flag name="log">enable logging to console and files</flag>
|
||||
<flag name="modtool">enable modtool for editing GNU Radio modules and components</flag>
|
||||
<flag name="noaa">enable NOAA POES HRPT receiver blocks</flag>
|
||||
<flag name="pager">enable pager signal processing blocks</flag>
|
||||
<flag name="performance-counters">enable block performance counters</flag>
|
||||
<flag name="trellis">enable trellis blocks for FSM</flag>
|
||||
<flag name="uhd">install UHD source and sink blocks</flag>
|
||||
<flag name="utils">install scripts to enable viewing and analysis of files produced by flow graphs</flag>
|
||||
<flag name="vocoder">enable blocks for audio voice encoders</flag>
|
||||
<flag name="wavelet">enable wavelet signal processing blocks</flag>
|
||||
<flag name="zeromq">enable zeromq message passing blocks</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1 +1,2 @@
|
|||
DIST gr-air-modes-20170929.tar.gz 196534 BLAKE2B 9e0b0f6f49729938ffb72d581faa035294fa1e135ac25472a860702f2b5986affe9b28e4d703125d56543a5b92aa8292724598958ea42ad0c46ddcd827c2e37b SHA512 1d2587b3cd06320fceb7a42ca9b03ae7312294145692bf0663cc0a686aa9c787d4e03dc4093fe087a681834aa28161a4517629b4a22bb5a31cbe32bfe40c7c66
|
||||
DIST gr-air-modes-20191016.tar.gz 186450 BLAKE2B 04b982ae1557f43ebe57a1146380e490ad2bad60332aeddf46590dfa5dffb0d9a59c26b4e65c17f96e7d2e96a293229968ffafcf844ce098e4f36f4a8094966c SHA512 995889ca79254ca2138da21e844931bd3e3b9a711f0ae2880a955862761f7ecc69f2068e2b801753fdf02532be11ca78dbe817218d9ee18a36a3fde03a075ee3
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ fi
|
|||
inherit cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="This module implements a complete Mode S and ADS-B receiver for Gnuradio"
|
||||
HOMEPAGE="https://www.cgran.org/wiki/gr-air-modes"
|
||||
HOMEPAGE="https://github.com/bistromath/gr-air-modes"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
|
|
|||
51
net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild
Normal file
51
net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bistromath/gr-air-modes.git"
|
||||
EGIT_BRANCH="master"
|
||||
KEYWORDS=""
|
||||
else
|
||||
#snapshot
|
||||
HASH_COMMIT="a2f2627c5421368b8af1b57ca9818e1c79d4f4f0"
|
||||
SRC_URI="https://github.com/bistromath/gr-air-modes/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
fi
|
||||
inherit cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="This module implements a complete Mode S and ADS-B receiver for Gnuradio"
|
||||
HOMEPAGE="https://github.com/bistromath/gr-air-modes"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="fgfs rtlsdr uhd"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
dev-python/pyzmq[${PYTHON_USEDEP}]
|
||||
>=net-wireless/gnuradio-3.8.0.0:=
|
||||
net-wireless/gr-osmosdr
|
||||
fgfs? (
|
||||
games-simulation/flightgear
|
||||
sci-libs/scipy
|
||||
)
|
||||
rtlsdr? ( net-wireless/rtl-sdr )
|
||||
uhd? ( >=net-wireless/uhd-3.4.0 )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
python_fix_shebang "${ED}"/usr/bin
|
||||
}
|
||||
1
net-wireless/gr-iqbal/Manifest
Normal file
1
net-wireless/gr-iqbal/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST gr-iqbal-0.37.2_p20191204.tar.gz 106514 BLAKE2B d84636b162e39c6cda291055592f5ccf2b525434c01d0c17d029076fc6d005506173ee8f41e318b6b1e47e9c3a07ae25cf0589f4006f42440b3640ae793b2430 SHA512 b79862caf9d95d72e94730804a1d7722f6847e41e89d6362a14d6060c3786f8a5836ec542de30b4f6f8286942c42672b63704368ecca24e2f24f37fe1d1cf18e
|
||||
33
net-wireless/gr-iqbal/gr-iqbal-0.37.2_p20191204.ebuild
Normal file
33
net-wireless/gr-iqbal/gr-iqbal-0.37.2_p20191204.ebuild
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="gnuradio I/Q balancing"
|
||||
HOMEPAGE="http://git.osmocom.org/gr-iqbal/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.osmocom.org/gr-iqbal"
|
||||
KEYWORDS=""
|
||||
else
|
||||
HASH_COMMIT="6c9576670a96bc797fd7d203e0c91c8cddea7d28"
|
||||
SRC_URI="https://github.com/osmocom/gr-iqbal/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/${PV}"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=net-wireless/gnuradio-3.8.0.0:=[${PYTHON_USEDEP}]
|
||||
net-libs/libosmo-dsp:=
|
||||
dev-libs/boost:=
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
12
net-wireless/gr-iqbal/metadata.xml
Normal file
12
net-wireless/gr-iqbal/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?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>
|
||||
</pkgmetadata>
|
||||
|
|
@ -22,7 +22,7 @@ net-wireless/airspy
|
|||
net-wireless/gr-gsm **
|
||||
net-wireless/kalibrate-hackrf **
|
||||
net-wireless/gr-osmosdr
|
||||
net-wireless/gr-iqbal
|
||||
~net-wireless/gr-iqbal-0.37.0
|
||||
=net-wireless/op25-9999 **
|
||||
=net-wireless/reaver-wps-fork-t6x-1.6*
|
||||
net-wireless/rtl-sdr
|
||||
|
|
@ -32,7 +32,7 @@ net-wireless/chirp
|
|||
#stay on gnuradio3.7
|
||||
~net-wireless/gr-air-modes-20170929
|
||||
net-wireless/gqrx
|
||||
net-wireless/gnuradio
|
||||
=net-wireless/gnuradio-3.7*
|
||||
net-wireless/virtualradar-bin
|
||||
net-wireless/uhd
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue