From 0bc0717123b9e91048be7459bacb514b633e6070 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Mon, 27 Jan 2020 16:41:11 -0500 Subject: [PATCH] net-wireless/gqrx: bump Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Rick Farina --- net-wireless/gqrx/Manifest | 1 + net-wireless/gqrx/gqrx-2.12.1.ebuild | 62 ++++++++++++++++++++++++++++ net-wireless/gqrx/gqrx-9999.ebuild | 20 ++++----- 3 files changed, 73 insertions(+), 10 deletions(-) create mode 100644 net-wireless/gqrx/gqrx-2.12.1.ebuild diff --git a/net-wireless/gqrx/Manifest b/net-wireless/gqrx/Manifest index 89e367f5b788..e81dc27abd25 100644 --- a/net-wireless/gqrx/Manifest +++ b/net-wireless/gqrx/Manifest @@ -1 +1,2 @@ DIST gqrx-2.11.5.tar.gz 1329054 BLAKE2B 205bf1d984f18d43c914bb24e59f7ed42e9faf8060b44c2f78f6d1bb7a222d87395c347626802438c45a30225acac18ca3114d412faf3f8385840276c0c08ac8 SHA512 d2928559d377b85ea683839b0e7dd1213038ee350718f9dad5064afacab20b08d1c1edc189ae8c5ae992ad019636c930555f9a441aee88964231d174db25ae6f +DIST gqrx-2.12.1.tar.gz 1334839 BLAKE2B 9ad8ab710675f4b42ff652d642026aba00dad63867f836662054aaab89cc7788874cc0f47de531257ee901f3bc58a6e6d5aef3c5a4fe30ae367d24fcd87ae763 SHA512 28d3da6c4ff750cf580db658aee267162a64103e9dac1d212f70df6bc602c8d50ccb7aaf88c7e976cfa235b884e02b4994e679f69aed640485c44ed07f183cc9 diff --git a/net-wireless/gqrx/gqrx-2.12.1.ebuild b/net-wireless/gqrx/gqrx-2.12.1.ebuild new file mode 100644 index 000000000000..0c8ea0281cd0 --- /dev/null +++ b/net-wireless/gqrx/gqrx-2.12.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Software defined radio receiver powered by GNU Radio and Qt" +HOMEPAGE="http://gqrx.dk/" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/csete/gqrx.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/csete/gqrx/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="gr-audio portaudio pulseaudio" +REQUIRED_USE="^^ ( pulseaudio portaudio gr-audio )" + +DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] + >=net-wireless/gr-osmosdr-0.1.0:= + dev-libs/boost:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + pulseaudio? ( media-sound/pulseaudio:= ) + portaudio? ( media-libs/portaudio:= )" +RDEPEND="${DEPEND}" + +src_prepare() { + if use !pulseaudio; then + sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die + fi + cmake-utils_src_prepare + eapply_user +} + +src_configure() { + if use pulseaudio; then + LINUX_AUDIO_BACKEND=Pulseaudio + elif use portaudio; then + LINUX_AUDIO_BACKEND=Portaudio + elif use gr-audio; then + LINUX_AUDIO_BACKEND=Gr-audio + fi + + local mycmakeargs=( + "-DLINUX_AUDIO_BACKEND=${LINUX_AUDIO_BACKEND}" + ) + cmake-utils_src_configure +} + +src_install() { + dobin "${BUILD_DIR}"/src/gqrx +} diff --git a/net-wireless/gqrx/gqrx-9999.ebuild b/net-wireless/gqrx/gqrx-9999.ebuild index b9b3d7bb2cf0..0c8ea0281cd0 100644 --- a/net-wireless/gqrx/gqrx-9999.ebuild +++ b/net-wireless/gqrx/gqrx-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit cmake-utils @@ -34,6 +34,14 @@ DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] portaudio? ( media-libs/portaudio:= )" RDEPEND="${DEPEND}" +src_prepare() { + if use !pulseaudio; then + sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die + fi + cmake-utils_src_prepare + eapply_user +} + src_configure() { if use pulseaudio; then LINUX_AUDIO_BACKEND=Pulseaudio @@ -49,14 +57,6 @@ src_configure() { cmake-utils_src_configure } -src_prepare() { - if use !pulseaudio; then - sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die - fi - cmake-utils_src_prepare - eapply_user -} - src_install() { dobin "${BUILD_DIR}"/src/gqrx } -- 2.26.2