pentoo-overlay/net-wireless/gnuradio/gnuradio-3.8.0.0.ebuild
Rick Farina (Zero_Chaos) 7523d73d48
sed -i 's#PYTHON_USEDEP#PYTHON_SINGLE_USEDEP#g' app-antivirus/veil/veil-3.1.11-r1.ebuild
app-antivirus/veil/veil-3.1.12.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-5.0.1-r2.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-5.0.1-r2.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-9999.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-9999.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-5.0.2.ebuild
app-crypt/yubioath-desktop/yubioath-desktop-5.0.2.ebuild
app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2-r2.ebuild
app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2-r2.ebuild
app-exploits/weevely/weevely-9999.ebuild
app-exploits/weevely/weevely-9999.ebuild
app-exploits/empire/empire-3.0.6.ebuild
app-exploits/empire/empire-3.0.6.ebuild
app-exploits/empire/empire-3.0.7.ebuild
app-exploits/empire/empire-3.0.7.ebuild
app-exploits/wesng/wesng-99999999.ebuild
app-exploits/wesng/wesng-99999999.ebuild
app-forensics/libvshadow/libvshadow-20191221.ebuild
app-forensics/spiderfoot/spiderfoot-3.0.ebuild
app-forensics/spiderfoot/spiderfoot-3.0.ebuild
app-forensics/fuxploider/fuxploider-1.0.ebuild
app-forensics/fuxploider/fuxploider-1.0.ebuild
app-forensics/fuxploider/fuxploider-9999.ebuild
app-forensics/fuxploider/fuxploider-9999.ebuild
dev-db/sqlmap/sqlmap-9999.ebuild
dev-db/sqlmap/sqlmap-9999.ebuild
dev-embedded/libmpsse/libmpsse-1.3.2.ebuild
dev-embedded/libmpsse/libmpsse-1.3_p20160602.ebuild
dev-libs/radare2-bindings/radare2-bindings-3.3.0.ebuild
dev-libs/radare2-bindings/radare2-bindings-3.6.0.ebuild
dev-libs/radare2-bindings/radare2-bindings-4.0.0.ebuild
dev-libs/hashdb/hashdb-3.1.0-r1.ebuild
dev-libs/hashdb/hashdb-3.1.0-r1.ebuild
dev-libs/libvhdi/libvhdi-20181227.ebuild
dev-libs/libvhdi/libvhdi-20191221.ebuild
dev-libs/libvmdk/libvmdk-20181227.ebuild
dev-libs/libvmdk/libvmdk-20191221.ebuild
dev-util/appmon/appmon-0.5.ebuild
dev-util/mobsf/mobsf-3.0.1.ebuild
dev-util/mobsf/mobsf-3.0.1.ebuild
net-analyzer/geoedge/geoedge-0.2-r2.ebuild
net-analyzer/metagoofil/metagoofil-1.4b-r1.ebuild
net-analyzer/metagoofil/metagoofil-2.2.ebuild
net-analyzer/polenum/polenum-1.6.ebuild
net-analyzer/sipvicious/sipvicious-0.2.8-r4.ebuild
net-analyzer/subdomainer/subdomainer-1.3-r2.ebuild
net-analyzer/ham2mon/ham2mon-20170603.ebuild
net-analyzer/cipherscan/cipherscan-20180519.ebuild
net-analyzer/commix/commix-2.8.ebuild
net-analyzer/commix/commix-2.9.ebuild
net-analyzer/commix/commix-3.0.ebuild
net-analyzer/xsstrike/xsstrike-3.1.5.ebuild
net-analyzer/xsstrike/xsstrike-3.1.5.ebuild
net-analyzer/xsstrike/xsstrike-9999.ebuild
net-analyzer/xsstrike/xsstrike-9999.ebuild
net-analyzer/responder/responder-3.0.0.0-r1.ebuild
net-analyzer/responder/responder-3.0.0.0-r1.ebuild
net-analyzer/tplmap/tplmap-20190820.ebuild
net-analyzer/tplmap/tplmap-20190820.ebuild
net-analyzer/GyoiThon/GyoiThon-9999.ebuild
net-analyzer/pret/pret-20180611.ebuild
net-analyzer/dirsearch/dirsearch-0.3.8-r1.ebuild
net-analyzer/dirsearch/dirsearch-0.3.8-r1.ebuild
net-analyzer/dirsearch/dirsearch-0.3.9.ebuild
net-analyzer/dirsearch/dirsearch-0.3.9.ebuild
net-analyzer/iposint/iposint-20190615.ebuild
net-analyzer/iposint/iposint-20190615.ebuild
net-analyzer/set/set-8.0.1.ebuild
net-analyzer/sublert/sublert-1.4.7_p20190810.ebuild
net-analyzer/sublert/sublert-1.4.7_p20190810.ebuild
net-analyzer/bolt/bolt-9999.ebuild
net-analyzer/bolt/bolt-9999.ebuild
net-analyzer/nmap/nmap-7.80-r1.ebuild
net-analyzer/nmap/nmap-7.80-r1.ebuild
net-dialup/freeradius/freeradius-3.0.19-r1.ebuild
net-dialup/freeradius/freeradius-3.0.19-r1.ebuild
net-misc/munin/munin-0.14.1-r1.ebuild
net-misc/munin/munin-0.14.1-r1.ebuild
net-misc/munin/munin-9999.ebuild
net-misc/munin/munin-9999.ebuild
net-misc/brutespray/brutespray-1.6.4.ebuild
net-misc/corscanner/corscanner-99999999.ebuild
net-misc/corscanner/corscanner-99999999.ebuild
net-misc/corstest/corstest-99999999.ebuild
net-misc/sherlock/sherlock-9999.ebuild
net-misc/sherlock/sherlock-9999.ebuild
net-proxy/mallory/mallory-0.2.0_p20130109.ebuild
net-wireless/fern-wifi-cracker/fern-wifi-cracker-3.0.ebuild
net-wireless/fern-wifi-cracker/fern-wifi-cracker-3.0.ebuild
net-wireless/gr-dsd/gr-dsd-9999.ebuild
net-wireless/gr-gsm/gr-gsm-9999.ebuild
net-wireless/op25/op25-9999.ebuild
net-wireless/op25/op25-9999.ebuild
net-wireless/wifi-pumpkin/wifi-pumpkin-0.8.8-r2.ebuild
net-wireless/wifitap/wifitap-0.4.2-r1.ebuild
net-wireless/wifitap/wifitap-0.4.2-r1.ebuild
net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild
net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild
net-wireless/gnuradio/gnuradio-3.8.0.0.ebuild
net-wireless/gr-iqbal/gr-iqbal-0.37.2_p20191204.ebuild
sci-electronics/pcie_injector/pcie_injector-20180527.ebuild
sys-apps/razercfg/razercfg-0.41.ebuild
sys-apps/razercfg/razercfg-0.41-r1.ebuild
sys-apps/razercfg/razercfg-0.41-r1.ebuild
sys-devel/gdb-dashboard/gdb-dashboard-9999.ebuild
sys-devel/gdb-dashboard/gdb-dashboard-9999.ebuild
sys-devel/peda/peda-9999.ebuild
sys-devel/peda/peda-9999.ebuild
sys-devel/gef/gef-99999999.ebuild
sys-devel/gef/gef-99999999.ebuild
sys-devel/pwndbg/pwndbg-99999999.ebuild
sys-devel/pwndbg/pwndbg-99999999.ebuild
www-apps/Tiredful-API/Tiredful-API-9999.ebuild
www-apps/seafile-pro-server/seafile-pro-server-7.0.13.ebuild
2020-02-12 12:22:56 -05:00

203 lines
5.4 KiB
Bash

# 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=""
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_SINGLE_USEDEP}]
dev-libs/log4cpp
dev-python/six[${PYTHON_SINGLE_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_SINGLE_USEDEP}]
dev-python/numpy[${PYTHON_SINGLE_USEDEP}]
dev-python/pygobject:3[${PYTHON_SINGLE_USEDEP}]
dev-python/pyyaml[${PYTHON_SINGLE_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_SINGLE_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_SINGLE_USEDEP}]' python2_7)
)
utils? (
dev-python/click[${PYTHON_SINGLE_USEDEP}]
dev-python/click-plugins[${PYTHON_SINGLE_USEDEP}]
dev-python/mako[${PYTHON_SINGLE_USEDEP}]
dev-python/matplotlib[${PYTHON_SINGLE_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_SINGLE_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
}