summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-03-23 11:52:16 -0400
committerZero_Chaos <zerochaos@gentoo.org>2017-03-23 11:52:16 -0400
commit791de41777329345ecd658a0adadc9709836d7e9 (patch)
tree5fea3cb33ab0780fbc1db378d985887f73d11f03 /net-libs/liquid-dsp
parentdev-perl/Net-SSH-Perl: Bump to version 2.90.0_p1 (diff)
downloadgentoo-791de41777329345ecd658a0adadc9709836d7e9.tar.gz
gentoo-791de41777329345ecd658a0adadc9709836d7e9.tar.bz2
gentoo-791de41777329345ecd658a0adadc9709836d7e9.zip
net-libs/liquid-dsp: add live ebuild for testing
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'net-libs/liquid-dsp')
-rw-r--r--net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild12
-rw-r--r--net-libs/liquid-dsp/liquid-dsp-9999.ebuild43
2 files changed, 53 insertions, 2 deletions
diff --git a/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild b/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild
index 12ab22a06f31..fcd3127de23e 100644
--- a/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild
+++ b/net-libs/liquid-dsp/liquid-dsp-1.3.0.ebuild
@@ -7,11 +7,19 @@ inherit autotools multilib
DESCRIPTION="digital signal processing library for software-defined radios"
HOMEPAGE="http://liquidsdr.org"
-SRC_URI="https://github.com/jgaeddert/liquid-dsp/archive/v1.3.0.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jgaeddert/liquid-dsp.git"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/jgaeddert/liquid-dsp/archive/v1.3.0.tar.gz -> ${P}.tar.gz"
+fi
+
IUSE="static-libs"
DEPEND="sci-libs/fftw:3.0="
diff --git a/net-libs/liquid-dsp/liquid-dsp-9999.ebuild b/net-libs/liquid-dsp/liquid-dsp-9999.ebuild
new file mode 100644
index 000000000000..fcd3127de23e
--- /dev/null
+++ b/net-libs/liquid-dsp/liquid-dsp-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib
+
+DESCRIPTION="digital signal processing library for software-defined radios"
+HOMEPAGE="http://liquidsdr.org"
+
+LICENSE="MIT"
+SLOT="0"
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jgaeddert/liquid-dsp.git"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/jgaeddert/liquid-dsp/archive/v1.3.0.tar.gz -> ${P}.tar.gz"
+fi
+
+IUSE="static-libs"
+
+DEPEND="sci-libs/fftw:3.0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ #without this rather odd looking bit, it installs libraries into /usr/usr/$(get_libdir)
+ #what is super special is that if exec-prefix is unset, libdir is lib64...
+ #but if exec-prefix is default then libdir ends up as /usr/lib64 in makefile...
+ econf --exec-prefix="" --libdir="/usr/$(get_libdir)"
+}
+
+src_install() {
+ default
+ ! use static-libs && rm "${ED}"/usr/"$(get_libdir)"/libliquid.a
+}