net-wireless/gqrx: bump
authorRick Farina <zerochaos@gentoo.org>
Mon, 27 Jan 2020 21:41:11 +0000 (16:41 -0500)
committerRick Farina <zerochaos@gentoo.org>
Mon, 27 Jan 2020 21:41:26 +0000 (16:41 -0500)
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
net-wireless/gqrx/Manifest
net-wireless/gqrx/gqrx-2.12.1.ebuild [new file with mode: 0644]
net-wireless/gqrx/gqrx-9999.ebuild

index 89e367f5b78829873ac9326bf9944a050d5d77ac..e81dc27abd25db65edcf6d565f8397ac847f28a9 100644 (file)
@@ -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 (file)
index 0000000..0c8ea02
--- /dev/null
@@ -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
+}
index b9b3d7bb2cf0f5d782162ff62c53e0cfba667842..0c8ea0281cd0f5935ddb81fbf24916d0ccfa4e23 100644 (file)
@@ -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
 }