summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2018-09-06 12:15:36 -0400
committerZero_Chaos <zerochaos@gentoo.org>2018-09-06 12:15:49 -0400
commitab4c6305699b2a80dcdc4531a4afad5aa9551eb5 (patch)
tree8adc1acb0a6e6804959cf375814e2b74902fb276 /net-wireless/cubicsdr
parentnet-wireless/unifi: bump 5.6.40 & 5.8.29, drop old (diff)
downloadgentoo-ab4c6305699b2a80dcdc4531a4afad5aa9551eb5.tar.gz
gentoo-ab4c6305699b2a80dcdc4531a4afad5aa9551eb5.tar.bz2
gentoo-ab4c6305699b2a80dcdc4531a4afad5aa9551eb5.zip
net-wireless/cubicsdr: add live ebuild
doesn't work this moment, such is the nature of live ebuilds Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'net-wireless/cubicsdr')
-rw-r--r--net-wireless/cubicsdr/cubicsdr-0.2.3-r1.ebuild14
-rw-r--r--net-wireless/cubicsdr/cubicsdr-9999.ebuild46
2 files changed, 56 insertions, 4 deletions
diff --git a/net-wireless/cubicsdr/cubicsdr-0.2.3-r1.ebuild b/net-wireless/cubicsdr/cubicsdr-0.2.3-r1.ebuild
index 8b93c4620648..b386dcc5b43a 100644
--- a/net-wireless/cubicsdr/cubicsdr-0.2.3-r1.ebuild
+++ b/net-wireless/cubicsdr/cubicsdr-0.2.3-r1.ebuild
@@ -6,16 +6,22 @@ WX_GTK_VER="3.0"
inherit cmake-utils wxwidgets
-MY_P="CubicSDR"
-SRC_URI="https://github.com/cjcliffe/${MY_P}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${MY_P}-${PV}"
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/cjcliffe/CubicSDR.git"
+ KEYWORDS=""
+ inherit git-r3
+else
+ MY_P="CubicSDR"
+ SRC_URI="https://github.com/cjcliffe/${MY_P}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${MY_P}-${PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
DESCRIPTION="Cross-Platform and Open-Source Software Defined Radio Application"
HOMEPAGE="https://cubicsdr.com/"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
IUSE="alsa pulseaudio"
DEPEND="
diff --git a/net-wireless/cubicsdr/cubicsdr-9999.ebuild b/net-wireless/cubicsdr/cubicsdr-9999.ebuild
new file mode 100644
index 000000000000..b386dcc5b43a
--- /dev/null
+++ b/net-wireless/cubicsdr/cubicsdr-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0"
+
+inherit cmake-utils wxwidgets
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/cjcliffe/CubicSDR.git"
+ KEYWORDS=""
+ inherit git-r3
+else
+ MY_P="CubicSDR"
+ SRC_URI="https://github.com/cjcliffe/${MY_P}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${MY_P}-${PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Cross-Platform and Open-Source Software Defined Radio Application"
+HOMEPAGE="https://cubicsdr.com/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="alsa pulseaudio"
+
+DEPEND="
+ 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}"
+
+src_configure() {
+ setup-wxwidgets
+
+ local mycmakeargs=(
+ -DUSE_AUDIO_ALSA="$(usex alsa)"
+ -DUSE_AUDIO_PULSE="$(usex pulseaudio)"
+ )
+
+ cmake-utils_src_configure
+}