media-sound/apulse: version bump

- 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
This commit is contained in:
Andrew Savchenko
2018-08-03 16:04:07 +03:00
parent 72ae69fd65
commit 54cd339b91
3 changed files with 54 additions and 0 deletions

View 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

View File

@@ -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
}

View 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>