net-analyzer/gr-fosphor: qt5 support
authorRick Farina <zerochaos@gentoo.org>
Fri, 6 Dec 2019 18:23:34 +0000 (13:23 -0500)
committerRick Farina <zerochaos@gentoo.org>
Fri, 6 Dec 2019 18:23:46 +0000 (13:23 -0500)
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
net-analyzer/gr-fosphor/gr-fosphor-9999.ebuild

index 29c293990ccff6db60cf0c75d51654b6f52bf1d2..1797e9d1a6a9aa77b3d25add2a4230421d614254 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -11,10 +11,9 @@ HOMEPAGE="https://sdr.osmocom.org/trac/wiki/fosphor"
 
 if [[ ${PV} == 9999* ]]; then
        inherit git-r3
-       SRC_URI=""
        #EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
        EGIT_REPO_URI="https://github.com/osmocom/${PN}.git"
-       KEYWORDS=""
+       EGIT_BRANCH="gr37-qt5"
 else
        SRC_URI="mirror://gentoo/${P}.tar.xz"
        KEYWORDS="~amd64 ~x86"
@@ -24,10 +23,15 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+glfw wxwidgets"
+IUSE="glfw qt5 wxwidgets"
 
-RDEPEND="
-       >=net-wireless/gnuradio-3.7_rc:0=[wxwidgets?,${PYTHON_USEDEP}]
+RDEPEND="qt5? (
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtopengl:5
+               dev-qt/qtwidgets:5
+       )
+       >=net-wireless/gnuradio-3.7_rc:0=[qt5,wxwidgets?,${PYTHON_USEDEP}]
        media-libs/freetype
        dev-libs/boost:=
        glfw? ( >=media-libs/glfw-3 )
@@ -52,10 +56,9 @@ src_configure() {
        local mycmakeargs=(
                -DENABLE_DEFAULT=OFF
                -DENABLE_GLFW="$(usex glfw)"
-               -DENABLE_QT=OFF
+               -DENABLE_QT="$(usex qt5)"
                -DENABLE_WX="$(usex wxwidgets)"
                -DENABLE_PYTHON=ON
        )
-       # re-enable Qt if port to Qt5 is ever finished
        cmake-utils_src_configure
 }