mirror of
https://github.com/bsedin/gentoo-repo.git
synced 2024-09-20 20:30:28 +00:00
Add apulse 0.1.11
This commit is contained in:
parent
2a55de7fd5
commit
c852045de0
42
media-sound/apulse/apulse-0.1.11.ebuild
Normal file
42
media-sound/apulse/apulse-0.1.11.ebuild
Normal file
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2017 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"
|
||||
|
||||
DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||
media-libs/alsa-lib[${MULTILIB_USEDEP}]"
|
||||
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_install_all() {
|
||||
cmake-utils_src_install
|
||||
einstalldocs
|
||||
dobin "${T}"/apulse
|
||||
}
|
||||
14
media-sound/apulse/files/apulse
Executable file
14
media-sound/apulse/files/apulse
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# Author: Daniel Campbell <zlg@gentoo.org>
|
||||
# License: Creative Commons Public Domain Dedication (CC0 1.0)
|
||||
# <https://creativecommons.org/publicdomain/zero/1.0/>
|
||||
|
||||
# apulse needs at least one argument
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: apulse <app-path> [options]"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Set library path for the application so it'll use apulse. DIRS is
|
||||
# replaced by the ebuild to include the correct paths
|
||||
LD_LIBRARY_PATH=@@DIRS@@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec "$@"
|
||||
11
media-sound/apulse/metadata.xml
Normal file
11
media-sound/apulse/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>bircoph@gentoo.org</email>
|
||||
<name>Andrew Savchenko</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">i-rinat/apulse</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in New Issue
Block a user