summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/cubicsdr/cubicsdr-9999.ebuild')
-rw-r--r--net-wireless/cubicsdr/cubicsdr-9999.ebuild23
1 files changed, 11 insertions, 12 deletions
diff --git a/net-wireless/cubicsdr/cubicsdr-9999.ebuild b/net-wireless/cubicsdr/cubicsdr-9999.ebuild
index bf112d039bd9..8cb4b6b56d09 100644
--- a/net-wireless/cubicsdr/cubicsdr-9999.ebuild
+++ b/net-wireless/cubicsdr/cubicsdr-9999.ebuild
@@ -1,14 +1,14 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-WX_GTK_VER="3.0-gtk3"
+EAPI=7
-inherit cmake-utils wxwidgets
+WX_GTK_VER="3.0-gtk3"
+inherit cmake wxwidgets
-if [ "${PV}" = "9999" ]; then
- EGIT_REPO_URI="https://github.com/cjcliffe/CubicSDR.git"
+if [[ ${PV} == *9999 ]]; then
inherit git-r3
+ EGIT_REPO_URI="https://github.com/cjcliffe/CubicSDR.git"
else
MY_P="CubicSDR"
SRC_URI="https://github.com/cjcliffe/${MY_P}/archive/${PV}.tar.gz -> ${P}.tar.gz"
@@ -23,23 +23,22 @@ LICENSE="GPL-2"
SLOT="0"
IUSE="alsa pulseaudio"
-DEPEND="
+RDEPEND="
net-libs/liquid-dsp
x11-libs/wxGTK:${WX_GTK_VER}[opengl]
net-wireless/soapysdr
virtual/opengl
alsa? ( media-libs/alsa-lib )
- pulseaudio? ( media-sound/pulseaudio )
-"
-RDEPEND="${DEPEND}"
+ pulseaudio? ( media-sound/pulseaudio )"
+DEPEND="${RDEPEND}"
src_configure() {
setup-wxwidgets
local mycmakeargs=(
- -DUSE_AUDIO_ALSA="$(usex alsa)"
- -DUSE_AUDIO_PULSE="$(usex pulseaudio)"
+ -DUSE_AUDIO_ALSA=$(usex alsa)
+ -DUSE_AUDIO_PULSE=$(usex pulseaudio)
)
- cmake-utils_src_configure
+ cmake_src_configure
}