summaryrefslogtreecommitdiff
path: root/media-sound/apulse
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/apulse
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/apulse')
-rw-r--r--media-sound/apulse/Manifest6
-rw-r--r--media-sound/apulse/apulse-0.1.10.ebuild41
-rwxr-xr-xmedia-sound/apulse/files/apulse14
-rw-r--r--media-sound/apulse/metadata.xml11
4 files changed, 72 insertions, 0 deletions
diff --git a/media-sound/apulse/Manifest b/media-sound/apulse/Manifest
new file mode 100644
index 000000000000..735afbabacbf
--- /dev/null
+++ b/media-sound/apulse/Manifest
@@ -0,0 +1,6 @@
+AUX apulse 488 SHA256 b1a3969034615e6e0b44c2be1e48e66fe58ad66f5df7a7e9458d0848972c8878 SHA512 2b1ebb3d574af2469f50a42e324b3367b5e08d3de00076620ce2133226d544ab2507e6d752ff3ed427319978ab5e1a0e73189368666a5c7f5ed61f1294417228 WHIRLPOOL 88fcfb78826e5ebf000e8b566087d7682a1bf7e5791bf67f5f13aca57f34804c143d16e2ae1a1459271732f4e77ad7a8138bb8d7f928714fe207c3e4f96b8a87
+DIST apulse-0.1.10.tar.gz 110272 SHA256 4f8aa9059d07bac1006e920a4a6b875ad63fdde973b83c138507812c00dd5cd6 SHA512 e922448095b7e3c8ae5766fadd5912ad39c1d0d68c73954305d17909b6bafe3a95c7e1ad4d63a4824293e0ba1495c253204343f31330c0ddb4fb419fe1f9eb12 WHIRLPOOL 56db7a62d75babe269f124f296c6000d322c50c1de583e6b274dc97ec456b6786315cc054ab7e09b1bd436ad47b86b58fc291d8e6f8192b6e2deeca14bef349b
+EBUILD apulse-0.1.10.ebuild 1061 SHA256 511090a78fe44b6e92e379c10f9b9a27e1446282227773f893e79af7912a55f4 SHA512 3efcc51cef1fbbe5df7c8da928d7c7effcfea688c187a516b2192813c3ffad66e41cc61c6c9cb7a2a7c6a1b3b49ab6a8bd3437d1baafc008baaedd78ed453e11 WHIRLPOOL 3340f2ba07f1a09a704a4e249f98714213b825a1ac33732311385212675bdba77435188222ebba7d349e79f6948f653bdc103b360a2e01cae6ed7ed5c8b21c60
+MISC ChangeLog 4055 SHA256 2c123f8c480aa9061e156181fe9123e7450956c7cb97cf5b8ffce11503318359 SHA512 c308b50778ccfa3268392ef791ed0c9552c143b3883cbaf23ecb9b033f8d13c7e0036ed283fd8b37e3f07a777336efc92e7d3d8183137e44c79c90265e1ea053 WHIRLPOOL db80433cac7c46ee00e2b0c777e0a20482096eb5fff4cdbc5ccb0d80725a484a8f6edb52524fafb33c78b857f625950a0ec72c7477def610bd9b8b555488ad75
+MISC ChangeLog-2015 2310 SHA256 db890fb531d44258e4ad8c6f40cdae01bab1087ca43aeef0886e86caeaaff01a SHA512 bf8904085d867cc22671f2ab1381dd79eb150902d759439059d9a6455d47d9e8636121dd272dd82f8c3e570e9812dbed2ec15ba3e3ea7cb3764dfaac6ae3fd4b WHIRLPOOL 7a6bf537fca497f9b8b63e659cc5e6f8956c5960cb04f6831dfe4bdac8fb5c34574920f0103de2c62afea901a1cf5a8b74563cd5eada5ceaf1e82be1e902a837
+MISC metadata.xml 339 SHA256 5837214b520e592bedc70e5e9feeb16cb6d07d6047045cf2d60c1ad53d70a885 SHA512 d33b0678d50e2a48420629dfbd05ad9a5562886c7c051d2004dbf266c4280ec52db4c52a2f0774664ab17602cbb40ce333e02799e4c3bad858bf5cc66ea0562f WHIRLPOOL e20605897aaf0a018b36b4402fd8f5e9f68ba411bd16cfa75fa030f49888674bc71927a34787e7b7a480828919f1491bc7a4a72fdb77bea734f34bd31aa493df
diff --git a/media-sound/apulse/apulse-0.1.10.ebuild b/media-sound/apulse/apulse-0.1.10.ebuild
new file mode 100644
index 000000000000..c9c55450de00
--- /dev/null
+++ b/media-sound/apulse/apulse-0.1.10.ebuild
@@ -0,0 +1,41 @@
+# 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() {
+ # 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
+ eapply_user
+}
+
+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
+}
diff --git a/media-sound/apulse/files/apulse b/media-sound/apulse/files/apulse
new file mode 100755
index 000000000000..32633b2d9a50
--- /dev/null
+++ b/media-sound/apulse/files/apulse
@@ -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 "$@"
diff --git a/media-sound/apulse/metadata.xml b/media-sound/apulse/metadata.xml
new file mode 100644
index 000000000000..7b8c0f8e4b74
--- /dev/null
+++ b/media-sound/apulse/metadata.xml
@@ -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>