summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Linden <karl.j.linden@gmail.com>2017-12-03 19:50:55 +0100
committerAlexis Ballier <aballier@gentoo.org>2017-12-04 10:29:52 +0100
commite8445a87a7bb2ac92fb082d668e34b0c434f64a6 (patch)
tree5cee078d0596b3cbbab3a6113f9695a86592c7d6 /media-sound
parentmedia-sound/jack2: bump to EAPI 6 (diff)
downloadgentoo-e8445a87a7bb2ac92fb082d668e34b0c434f64a6.tar.gz
gentoo-e8445a87a7bb2ac92fb082d668e34b0c434f64a6.tar.bz2
gentoo-e8445a87a7bb2ac92fb082d668e34b0c434f64a6.zip
media-sound/jack2: add live ebuild
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/jack2/jack2-1.9.11_rc1-r1.ebuild2
-rw-r--r--media-sound/jack2/jack2-1.9.11_rc1.ebuild2
-rw-r--r--media-sound/jack2/jack2-9999.ebuild89
3 files changed, 91 insertions, 2 deletions
diff --git a/media-sound/jack2/jack2-1.9.11_rc1-r1.ebuild b/media-sound/jack2/jack2-1.9.11_rc1-r1.ebuild
index 087957d1728..0823bd254c5 100644
--- a/media-sound/jack2/jack2-1.9.11_rc1-r1.ebuild
+++ b/media-sound/jack2/jack2-1.9.11_rc1-r1.ebuild
@@ -10,7 +10,7 @@ inherit eutils python-single-r1 waf-utils multilib-minimal
DESCRIPTION="Jackdmp jack implemention for multi-processor machine"
HOMEPAGE="http://jackaudio.org/"
-if [[ "${PV}" = "2.9999" ]]; then
+if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jackaudio/${PN}.git"
KEYWORDS=""
diff --git a/media-sound/jack2/jack2-1.9.11_rc1.ebuild b/media-sound/jack2/jack2-1.9.11_rc1.ebuild
index ca8206fee86..fdf94f71e71 100644
--- a/media-sound/jack2/jack2-1.9.11_rc1.ebuild
+++ b/media-sound/jack2/jack2-1.9.11_rc1.ebuild
@@ -10,7 +10,7 @@ inherit eutils python-single-r1 waf-utils multilib-minimal
DESCRIPTION="Jackdmp jack implemention for multi-processor machine"
HOMEPAGE="http://jackaudio.org/"
-if [[ "${PV}" = "2.9999" ]]; then
+if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jackaudio/${PN}.git"
KEYWORDS=""
diff --git a/media-sound/jack2/jack2-9999.ebuild b/media-sound/jack2/jack2-9999.ebuild
new file mode 100644
index 00000000000..0823bd254c5
--- /dev/null
+++ b/media-sound/jack2/jack2-9999.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads(+)"
+inherit eutils python-single-r1 waf-utils multilib-minimal
+
+DESCRIPTION="Jackdmp jack implemention for multi-processor machine"
+HOMEPAGE="http://jackaudio.org/"
+
+if [[ "${PV}" = "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jackaudio/${PN}.git"
+ KEYWORDS=""
+else
+ MY_PV="${PV/_rc/-RC}"
+ MY_P="${PN}-${MY_PV}"
+ S="${WORKDIR}/${MY_P}"
+ SRC_URI="https://github.com/jackaudio/jack2/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="2"
+IUSE="alsa celt dbus doc opus pam classic sndfile libsamplerate readline"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="media-libs/libsamplerate
+ media-libs/libsndfile
+ sys-libs/readline:0=
+ ${PYTHON_DEPS}
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ celt? ( media-libs/celt:0[${MULTILIB_USEDEP}] )
+ dbus? (
+ dev-libs/expat[${MULTILIB_USEDEP}]
+ sys-apps/dbus[${MULTILIB_USEDEP}]
+ )
+ opus? ( media-libs/opus[custom-modes,${MULTILIB_USEDEP}] )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+RDEPEND="${CDEPEND}
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
+ pam? ( sys-auth/realtime-base )
+ !media-sound/jack-audio-connection-kit:0"
+
+DOCS=( ChangeLog README README_NETJACK2 TODO )
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local mywafconfargs=(
+ --htmldir=/usr/share/doc/${PF}/html
+ $(usex dbus --dbus "")
+ $(usex classic --classic "")
+ --alsa=$(usex alsa yes no)
+ --celt=$(usex celt yes no)
+ --doxygen=$(multilib_native_usex doc yes no)
+ --firewire=no
+ --freebob=no
+ --iio=no
+ --opus=$(usex opus yes no)
+ --portaudio=no
+ --readline=$(multilib_native_usex readline yes no)
+ --samplerate=$(multilib_native_usex libsamplerate yes no)
+ --sndfile=$(multilib_native_usex sndfile yes no)
+ --winmme=no
+ )
+
+ waf-utils_src_configure ${mywafconfargs[@]}
+}
+
+multilib_src_compile() {
+ WAF_BINARY="${BUILD_DIR}"/waf waf-utils_src_compile
+}
+
+multilib_src_install() {
+ WAF_BINARY="${BUILD_DIR}"/waf waf-utils_src_install
+}
+
+multilib_src_install_all() {
+ python_fix_shebang "${ED}"
+}