media-sound/apulse: version bump
authorAndrew Savchenko <bircoph@gentoo.org>
Fri, 3 Aug 2018 13:04:07 +0000 (16:04 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Fri, 3 Aug 2018 13:05:07 +0000 (16:05 +0300)
- Update to 0.1.12.
- Add test support.
- Optionally install PulseAudio headers.

Fixes: https://bugs.gentoo.org/646740
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Package-Manager: Portage-2.3.44, Repoman-2.3.10

media-sound/apulse/Manifest
media-sound/apulse/apulse-0.1.12.ebuild [new file with mode: 0644]
media-sound/apulse/metadata.xml

index 39abbf8b122e2c9280fe6f406f931520a18134f5..248daf96fb7478249f956718ddde25752b5f6046 100644 (file)
@@ -1 +1,2 @@
 DIST apulse-0.1.10.tar.gz 110272 BLAKE2B 3e05c93de225125ed0de75f5576282da89acd88398d3a5159d09a6f50a7747a3a341e192f35520d3fa79a6739bf287bbcf39fb350116aa5b5a86ca5034a13034 SHA512 e922448095b7e3c8ae5766fadd5912ad39c1d0d68c73954305d17909b6bafe3a95c7e1ad4d63a4824293e0ba1495c253204343f31330c0ddb4fb419fe1f9eb12
+DIST apulse-0.1.12.tar.gz 117220 BLAKE2B 04d88a298ff5e21e19fda1979ebbc96a6441f83212d6903a004a54ee360276985e66b637571a76e3fe6821d42762ac515b02a8a2cb0149a66f3150e34bd0d9b7 SHA512 9fe39ab93e90d7ec589c7632bf439bfc7fe8bbd0792ce1197ec8547fbe1901fec50facdf33c55cfbadbc1af4414fdf48f1f241406903a8f15f445b97dca7076a
diff --git a/media-sound/apulse/apulse-0.1.12.ebuild b/media-sound/apulse/apulse-0.1.12.ebuild
new file mode 100644 (file)
index 0000000..1f223fb
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multilib cmake-multilib
+
+DESCRIPTION="PulseAudio emulation for ALSA"
+HOMEPAGE="https://github.com/i-rinat/apulse"
+SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+pa-headers test"
+
+DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}]
+       media-libs/alsa-lib[${MULTILIB_USEDEP}]
+       pa-headers? ( !media-sound/pulseaudio ) "
+RDEPEND="${DEPEND}
+       !!media-plugins/alsa-plugins[pulseaudio]"
+
+MULTILIB_CHOST_TOOLS=( /usr/bin/apulse )
+
+src_prepare() {
+       cmake-utils_src_prepare
+
+       # Ensure all relevant libdirs are added, to support all ABIs
+       DIRS=
+       _add_dir() { DIRS="${EPREFIX}/usr/$(get_libdir)/apulse${DIRS:+:${DIRS}}"; }
+       multilib_foreach_abi _add_dir
+       sed -e "s#@@DIRS@@#${DIRS}#g" "${FILESDIR}"/apulse > "${T}"/apulse || die
+}
+
+multilib_src_configure() {
+       local mycmakeargs=("-DAPULSEPATH=${EPREFIX}/usr/$(get_libdir)/apulse")
+       cmake-utils_src_configure
+}
+
+multilib_src_test() {
+       emake check
+}
+
+multilib_src_install_all() {
+       cmake-utils_src_install
+       einstalldocs
+       dobin "${T}"/apulse
+       use pa-headers && doheader -r 3rdparty/pulseaudio-headers/pulse
+}
index 7b8c0f8e4b74adffeb39121349a06961a331aceb..738e74332466a29cafaa7368a33a235a0f04e07f 100644 (file)
@@ -5,6 +5,9 @@
     <email>bircoph@gentoo.org</email>
     <name>Andrew Savchenko</name>
   </maintainer>
+  <use>
+    <flag name="pa-headers">Install PulseAudio headers</flag>
+  </use>
   <upstream>
     <remote-id type="github">i-rinat/apulse</remote-id>
   </upstream>