media-plugins/calf: set $EPREFIX where needed in econf call
authornado <nado@troglodyte.be>
Tue, 10 Jul 2018 14:25:27 +0000 (16:25 +0200)
committerMatthew Thode <prometheanfire@gentoo.org>
Thu, 12 Jul 2018 18:59:09 +0000 (13:59 -0500)
Closes: https://bugs.gentoo.org/660442
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
media-plugins/calf/calf-0.90.0-r1.ebuild [new file with mode: 0644]
media-plugins/calf/calf-9999.ebuild

diff --git a/media-plugins/calf/calf-0.90.0-r1.ebuild b/media-plugins/calf/calf-0.90.0-r1.ebuild
new file mode 100644 (file)
index 0000000..a065b44
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A set of open source instruments and effects for digital audio workstations"
+HOMEPAGE="http://calf-studio-gear.org/"
+
+if [[ "${PV}" = "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/calf-studio-gear/calf.git"
+else
+       SRC_URI="https://github.com/calf-studio-gear/calf/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="cpu_flags_x86_sse gtk jack lash lv2 static-libs experimental"
+
+RDEPEND="dev-libs/atk
+       dev-libs/expat
+       dev-libs/glib:2
+       media-sound/fluidsynth
+       jack? ( virtual/jack )
+       gtk? (
+               x11-libs/cairo
+               x11-libs/gtk+:2
+               x11-libs/gdk-pixbuf
+               x11-libs/pango
+       )
+       lash? ( media-sound/lash )
+       lv2? ( media-libs/lv2 )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       # automagic...
+       #$(use_with gtk gui)
+       #$(use_with jack)
+       econf \
+               --prefix="${EPREFIX}"/usr \
+               $(use_with lash) \
+               $(use_with lv2 lv2) \
+               $(usex lv2 "--with-lv2-dir=${EPREFIX}/usr/$(get_libdir)/lv2" "") \
+               $(use_enable static-libs static) \
+               $(use_enable cpu_flags_x86_sse sse) \
+               $(use_enable experimental)
+}
index 2187ab626fd5f0a7ee14613bf49e3ef79c7971ca..a065b446eb2b79bd9c9acbdbcd249667dd92922e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -45,9 +45,10 @@ src_configure() {
        #$(use_with gtk gui)
        #$(use_with jack)
        econf \
+               --prefix="${EPREFIX}"/usr \
                $(use_with lash) \
                $(use_with lv2 lv2) \
-               $(usex lv2 "--with-lv2-dir=/usr/$(get_libdir)/lv2" "") \
+               $(usex lv2 "--with-lv2-dir=${EPREFIX}/usr/$(get_libdir)/lv2" "") \
                $(use_enable static-libs static) \
                $(use_enable cpu_flags_x86_sse sse) \
                $(use_enable experimental)