From 025e73e9e0f61018cb735cf395aeb83af7f48c88 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 23 Apr 2018 17:21:05 +0300 Subject: [PATCH] apulse-9999 added. --- media-sound/apulse/Manifest | 1 + media-sound/apulse/apulse-9999.ebuild | 43 ++++++++++++++++++++++++ media-sound/apulse/files/apulse | 14 ++++++++ profiles/desktop/package.accept_keywords | 1 + 4 files changed, 59 insertions(+) create mode 100644 media-sound/apulse/Manifest create mode 100644 media-sound/apulse/apulse-9999.ebuild create mode 100755 media-sound/apulse/files/apulse diff --git a/media-sound/apulse/Manifest b/media-sound/apulse/Manifest new file mode 100644 index 00000000..6050c32a --- /dev/null +++ b/media-sound/apulse/Manifest @@ -0,0 +1 @@ +DIST apulse-0.1.10.tar.gz 110272 SHA256 4f8aa9059d07bac1006e920a4a6b875ad63fdde973b83c138507812c00dd5cd6 SHA512 e922448095b7e3c8ae5766fadd5912ad39c1d0d68c73954305d17909b6bafe3a95c7e1ad4d63a4824293e0ba1495c253204343f31330c0ddb4fb419fe1f9eb12 WHIRLPOOL 56db7a62d75babe269f124f296c6000d322c50c1de583e6b274dc97ec456b6786315cc054ab7e09b1bd436ad47b86b58fc291d8e6f8192b6e2deeca14bef349b diff --git a/media-sound/apulse/apulse-9999.ebuild b/media-sound/apulse/apulse-9999.ebuild new file mode 100644 index 00000000..30086255 --- /dev/null +++ b/media-sound/apulse/apulse-9999.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib cmake-multilib git-r3 + +DESCRIPTION="PulseAudio emulation for ALSA" +HOMEPAGE="https://github.com/i-rinat/apulse" + +EGIT_REPO_URI="https://github.com/i-rinat/apulse.git" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +KEYWORDS="" + +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 +} diff --git a/media-sound/apulse/files/apulse b/media-sound/apulse/files/apulse new file mode 100755 index 00000000..32633b2d --- /dev/null +++ b/media-sound/apulse/files/apulse @@ -0,0 +1,14 @@ +#!/bin/sh +# Author: Daniel Campbell +# License: Creative Commons Public Domain Dedication (CC0 1.0) +# + +# apulse needs at least one argument +if [ $# -lt 1 ]; then + echo "Usage: apulse [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/profiles/desktop/package.accept_keywords b/profiles/desktop/package.accept_keywords index 7cfc795c..dcc7a7cb 100644 --- a/profiles/desktop/package.accept_keywords +++ b/profiles/desktop/package.accept_keywords @@ -226,6 +226,7 @@ games-emulation/gens-gs ~amd64