summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2018-02-17 22:47:42 -0500
committerZero_Chaos <zerochaos@gentoo.org>2018-02-17 22:48:04 -0500
commit0bcac3f6f8afbc59b6e1d5866785bbf046257023 (patch)
treeb9af58b35a4e5875feec6bfcf404e9b4ec587200 /net-wireless/gnuradio/gnuradio-9999.ebuild
parentnet-wireless/gnuradio: add support for wx:3.0 (diff)
downloadgentoo-0bcac3f6f8afbc59b6e1d5866785bbf046257023.tar.gz
gentoo-0bcac3f6f8afbc59b6e1d5866785bbf046257023.tar.bz2
gentoo-0bcac3f6f8afbc59b6e1d5866785bbf046257023.zip
net-wireless/gnuradio: lots of work
drop old ebuilds drop wxwidgets support from 3.6 slot update to eapi 6 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-wireless/gnuradio/gnuradio-9999.ebuild')
-rw-r--r--net-wireless/gnuradio/gnuradio-9999.ebuild87
1 files changed, 49 insertions, 38 deletions
diff --git a/net-wireless/gnuradio/gnuradio-9999.ebuild b/net-wireless/gnuradio/gnuradio-9999.ebuild
index 19dfa673fab8..b41d31baa051 100644
--- a/net-wireless/gnuradio/gnuradio-9999.ebuild
+++ b/net-wireless/gnuradio/gnuradio-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
PYTHON_COMPAT=( python2_7 )
CMAKE_BUILD_TYPE="None"
@@ -13,7 +13,7 @@ LICENSE="GPL-3"
SLOT="0/${PV}"
if [[ ${PV} == "9999" ]] ; then
- EGIT_REPO_URI=( https://github.com/gnuradio/gnuradio.git http://gnuradio.org/git/gnuradio.git )
+ EGIT_REPO_URI="http://gnuradio.org/git/gnuradio.git"
inherit git-r3
KEYWORDS=""
else
@@ -21,7 +21,9 @@ else
KEYWORDS="~amd64 ~arm ~x86"
fi
-IUSE="+audio +alsa atsc +analog +digital channels doc dtv examples fcd fec +filter grc jack log noaa oss pager performance-counters portaudio qt4 sdl test trellis uhd vocoder +utils wavelet wxwidgets zeromq"
+IUSE="+audio +alsa atsc +analog +digital channels doc dtv examples fcd fec +filter grc jack log noaa oss pager performance-counters portaudio +qt4 sdl test trellis uhd vocoder +utils wavelet wxwidgets zeromq"
+#tests are entirely broken on newer gcc even with -fpermissive added to *FLAGS
+RESTRICT=test
REQUIRED_USE="${PYTHON_REQUIRED_USE}
audio? ( || ( alsa oss jack portaudio ) )
@@ -73,7 +75,7 @@ RDEPEND="${PYTHON_DEPS}
x11-libs/qwt:6[qt4(+)]
)
sdl? ( >=media-libs/libsdl-1.2.0 )
- uhd? ( >=net-wireless/uhd-3.4.3-r1:=[${PYTHON_USEDEP}] )
+ uhd? ( >=net-wireless/uhd-3.9.6:=[${PYTHON_USEDEP}] )
utils? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
vocoder? ( media-sound/gsm )
wavelet? (
@@ -82,7 +84,7 @@ RDEPEND="${PYTHON_DEPS}
wxwidgets? (
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/wxpython:2.8[${PYTHON_USEDEP}]
+ dev-python/wxpython:3.0[${PYTHON_USEDEP}]
)
zeromq? ( >=net-libs/zeromq-2.1.11 )
"
@@ -105,15 +107,24 @@ DEPEND="${RDEPEND}
src_prepare() {
gnome2_environment_reset #534582
+ epatch "${FILESDIR}"/gnuradio-wxpy3.0-compat.patch
# Useless UI element would require qt3support, bug #365019
sed -i '/qPixmapFromMimeSource/d' "${S}"/gr-qtgui/lib/spectrumdisplayform.ui || die
- epatch_user
+ default
+ cmake-utils_src_prepare
}
src_configure() {
# SYSCONFDIR/GR_PREFSDIR default to install below CMAKE_INSTALL_PREFIX
#audio provider is still automagic
#zeromq missing deps isn't fatal
+ #remaining QA issues, these appear broken:
+ #ENABLE_ENABLE_PERFORMANCE_COUNTERS
+ #ENABLE_GR_AUDIO_ALSA
+ #ENABLE_GR_AUDIO_JACK
+ #ENABLE_GR_AUDIO_OSS
+ #ENABLE_GR_AUDIO_PORTAUDIO
+ #ENABLE_GR_CORE
mycmakeargs=(
-DENABLE_DEFAULT=OFF
-DENABLE_GNURADIO_RUNTIME=ON
@@ -122,37 +133,37 @@ src_configure() {
-DENABLE_GR_BLOCKS=ON
-DENABLE_GR_FFT=ON
-DENABLE_GR_AUDIO=ON
- $(cmake-utils_use_enable alsa GR_AUDIO_ALSA) \
- $(cmake-utils_use_enable analog GR_ANALOG) \
- $(cmake-utils_use_enable atsc GR_ATSC) \
- $(cmake-utils_use_enable channels GR_CHANNELS) \
- $(cmake-utils_use_enable digital GR_DIGITAL) \
- $(cmake-utils_use_enable doc DOXYGEN) \
- $(cmake-utils_use_enable doc SPHINX) \
- $(cmake-utils_use_enable dtv GR_DTV) \
- $(cmake-utils_use_enable fcd GR_FCD) \
- $(cmake-utils_use_enable fec GR_FEC) \
- $(cmake-utils_use_enable filter GR_FILTER) \
- $(cmake-utils_use_enable grc GRC) \
- $(cmake-utils_use_enable jack GR_AUDIO_JACK) \
- $(cmake-utils_use_enable log GR_LOG) \
- $(cmake-utils_use_enable noaa GR_NOAA) \
- $(cmake-utils_use_enable oss GR_AUDIO_OSS) \
- $(cmake-utils_use_enable pager GR_PAGER) \
- $(cmake-utils_use_enable performance-counters ENABLE_PERFORMANCE_COUNTERS) \
- $(cmake-utils_use_enable portaudio GR_AUDIO_PORTAUDIO) \
- $(cmake-utils_use_enable test TESTING) \
- $(cmake-utils_use_enable trellis GR_TRELLIS) \
- $(cmake-utils_use_enable uhd GR_UHD) \
- $(cmake-utils_use_enable utils GR_UTILS) \
- $(cmake-utils_use_enable vocoder GR_VOCODER) \
- $(cmake-utils_use_enable wavelet GR_WAVELET) \
- $(cmake-utils_use_enable wxwidgets GR_WXGUI) \
- $(cmake-utils_use_enable qt4 GR_QTGUI) \
- $(cmake-utils_use_enable sdl GR_VIDEO_SDL) \
- $(cmake-utils_use_enable zeromq GR_ZEROMQ) \
- -DENABLE_GR_CORE=ON \
- -DSYSCONFDIR="${EPREFIX}"/etc \
+ -DENABLE_GR_AUDIO_ALSA="$(usex alsa)"
+ -DENABLE_GR_ANALOG="$(usex analog)"
+ -DENABLE_GR_ATSC="$(usex atsc)"
+ -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_FCD="$(usex fcd)"
+ -DENABLE_GR_FEC="$(usex fec)"
+ -DENABLE_GR_FILTER="$(usex filter)"
+ -DENABLE_GRC="$(usex grc)"
+ -DENABLE_GR_AUDIO_JACK="$(usex jack)"
+ -DENABLE_GR_LOG="$(usex log)"
+ -DENABLE_GR_NOAA="$(usex noaa)"
+ -DENABLE_GR_AUDIO_OSS="$(usex oss)"
+ -DENABLE_GR_PAGER="$(usex pager)"
+ -DENABLE_ENABLE_PERFORMANCE_COUNTERS="$(usex performance-counters)"
+ -DENABLE_GR_AUDIO_PORTAUDIO="$(usex portaudio)"
+ -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_WXGUI="$(usex wxwidgets)"
+ -DENABLE_GR_QTGUI="$(usex qt4)"
+ -DENABLE_GR_VIDEO_SDL="$(usex sdl)"
+ -DENABLE_GR_ZEROMQ="$(usex zeromq)"
+ -DENABLE_GR_CORE=ON
+ -DSYSCONFDIR="${EPREFIX}"/etc
-DPYTHON_EXECUTABLE="${PYTHON}"
-DGR_PKG_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
)