summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-11 04:27:55 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-11 04:27:55 +0000
commit1cdc362c2b7ff38aaa354250814acbaed2232e78 (patch)
treede68fe9c2631fdb3c733948e94555de8db2bd2c3 /media-sound
parentPreparation for adding pulseaudio to portage: local avahi useflag. (diff)
downloadgentoo-2-1cdc362c2b7ff38aaa354250814acbaed2232e78.tar.gz
gentoo-2-1cdc362c2b7ff38aaa354250814acbaed2232e78.tar.bz2
gentoo-2-1cdc362c2b7ff38aaa354250814acbaed2232e78.zip
Add pulseaudio ebuild, thanks to Tom Schneider, Ed Catmur, Florian Steinel, Disaster and Gonzalo Aguilar Delgado in bug #74039.
(Portage version: 2.1.1_pre2-r6)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/pulseaudio/ChangeLog12
-rw-r--r--media-sound/pulseaudio/Manifest24
-rw-r--r--media-sound/pulseaudio/files/digest-pulseaudio-0.9.23
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.conf.d13
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.init.d20
-rw-r--r--media-sound/pulseaudio/metadata.xml5
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.2.ebuild95
7 files changed, 172 insertions, 0 deletions
diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog
new file mode 100644
index 000000000000..0433b0cb89a6
--- /dev/null
+++ b/media-sound/pulseaudio/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-sound/pulseaudio
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.1 2006/07/11 04:27:55 flameeyes Exp $
+
+*pulseaudio-0.9.2 (11 Jul 2006)
+
+ 11 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio.conf.d, +files/pulseaudio.init.d, +metadata.xml,
+ +pulseaudio-0.9.2.ebuild:
+ Add pulseaudio ebuild, thanks to Tom Schneider, Ed Catmur, Florian Steinel,
+ Disaster and Gonzalo Aguilar Delgado in bug #74039.
+
diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest
new file mode 100644
index 000000000000..d4302de5f263
--- /dev/null
+++ b/media-sound/pulseaudio/Manifest
@@ -0,0 +1,24 @@
+AUX pulseaudio.conf.d 262 RMD160 3643c93c08ee96d1f85f666306d5fe4289df189b SHA1 5b63534e184a57a44124ccba8bff3193674700d9 SHA256 e5329d8af0c9cbc93cec990bfc3f75bce768d167f8420b60ede453fc4d3176ce
+MD5 f212d26ad160fcc5888f126e8be15a9c files/pulseaudio.conf.d 262
+RMD160 3643c93c08ee96d1f85f666306d5fe4289df189b files/pulseaudio.conf.d 262
+SHA256 e5329d8af0c9cbc93cec990bfc3f75bce768d167f8420b60ede453fc4d3176ce files/pulseaudio.conf.d 262
+AUX pulseaudio.init.d 442 RMD160 ad300537b8e584e66403761fe25b4b1f1abedd3e SHA1 f592c6576eda17a822b2812c1fe955ff75bd7207 SHA256 5702b1a4459ca98060a8f01109ca3ba04d0b036e487f0e1e1fa59ca78c5e137e
+MD5 ebf1c947ad28a9b2ece0a3f3dc0aab56 files/pulseaudio.init.d 442
+RMD160 ad300537b8e584e66403761fe25b4b1f1abedd3e files/pulseaudio.init.d 442
+SHA256 5702b1a4459ca98060a8f01109ca3ba04d0b036e487f0e1e1fa59ca78c5e137e files/pulseaudio.init.d 442
+DIST pulseaudio-0.9.2.tar.gz 1100971 RMD160 32005e876868a507963d6ced53722dd9dd52cc78 SHA1 726a54651656c7d2bcfc6e4d45c7e0839c0519ff SHA256 b0e39ffffa19e0745da6ef2be1df353c3466991c82a191d83bdf4421387a463a
+EBUILD pulseaudio-0.9.2.ebuild 2358 RMD160 a02ccd8665713bb3f098c59504fced5bab261abf SHA1 e71a3e53e3458debb83aac5e5ff0d1846db96489 SHA256 59b7e84e7909893b0ca0f6f1a7042ce6967b2d846aaa17106da3f525bc94ac7d
+MD5 b3a0e43419254f4dfbdb6e69db6a028d pulseaudio-0.9.2.ebuild 2358
+RMD160 a02ccd8665713bb3f098c59504fced5bab261abf pulseaudio-0.9.2.ebuild 2358
+SHA256 59b7e84e7909893b0ca0f6f1a7042ce6967b2d846aaa17106da3f525bc94ac7d pulseaudio-0.9.2.ebuild 2358
+MISC ChangeLog 439 RMD160 b2ffd9c77a36cfab64dd1b81e7cbeb66489d6f26 SHA1 c9251959896d709aa4d7769b8d95a5eae736dedd SHA256 6dafb5a9dbb8a4a0f9ac6e877731a02782c4a0ba64dea951a0c807b64726d402
+MD5 a3c4485b23f79adb9af72ef39ef19bf4 ChangeLog 439
+RMD160 b2ffd9c77a36cfab64dd1b81e7cbeb66489d6f26 ChangeLog 439
+SHA256 6dafb5a9dbb8a4a0f9ac6e877731a02782c4a0ba64dea951a0c807b64726d402 ChangeLog 439
+MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
+MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
+RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
+SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b metadata.xml 158
+MD5 ad341acaed1587d615eec6d1f1a45533 files/digest-pulseaudio-0.9.2 253
+RMD160 9d8db999060db50f2a7da3df84f5643f2982ca2c files/digest-pulseaudio-0.9.2 253
+SHA256 1b50b0a6de74d80653dd9c4ef669d42e2ffb109e12b3e125a7e9b7f6573aee9b files/digest-pulseaudio-0.9.2 253
diff --git a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.2 b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.2
new file mode 100644
index 000000000000..2e8062f19c88
--- /dev/null
+++ b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.2
@@ -0,0 +1,3 @@
+MD5 9d3cb3002c338bcd0cab63e3516fb1fd pulseaudio-0.9.2.tar.gz 1100971
+RMD160 32005e876868a507963d6ced53722dd9dd52cc78 pulseaudio-0.9.2.tar.gz 1100971
+SHA256 b0e39ffffa19e0745da6ef2be1df353c3466991c82a191d83bdf4421387a463a pulseaudio-0.9.2.tar.gz 1100971
diff --git a/media-sound/pulseaudio/files/pulseaudio.conf.d b/media-sound/pulseaudio/files/pulseaudio.conf.d
new file mode 100644
index 000000000000..f6027f0bb91d
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.conf.d
@@ -0,0 +1,13 @@
+# Config file for /etc/init.d/pulseaudio
+
+# For more see "pulseaudio -h".
+
+
+# Startup options
+
+# Daemonize, fail if startup fails
+PULSEAUDIO_START="-D --fail=true --log-target=syslog"
+
+# Local only (useful for root-only soundcard access)
+#PULSEAUDIO_OPTIONS=""
+
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d b/media-sound/pulseaudio/files/pulseaudio.init.d
new file mode 100644
index 000000000000..7380b8b2aa4b
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+depend() {
+ use net@extradepend@
+}
+
+start() {
+ ebegin "Starting pulseaudio"
+ start-stop-daemon --start --quiet --background --exec /usr/bin/pulseaudio -- $PULSEAUDIO_START $PULSEAUDIO_OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pulseaudio"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio
+ eend $?
+}
diff --git a/media-sound/pulseaudio/metadata.xml b/media-sound/pulseaudio/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-sound/pulseaudio/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.2.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.2.ebuild
new file mode 100644
index 000000000000..2e9ae8e8989b
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.2.ebuild,v 1.1 2006/07/11 04:27:55 flameeyes Exp $
+
+inherit eutils libtool
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="alsa avahi caps howl jack lirc oss tcpd X"
+
+RDEPEND="X? ( || ( x11-libs/libX11 <virtual/x11-7 ) )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/libsamplerate-0.1.1-r1
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ alsa? ( >=media-libs/alsa-lib-1.0.10 )
+ >=dev-libs/glib-2.4.0
+ howl? ( !avahi? ( >=net-misc/howl-0.9.8 )
+ avahi? ( net-dns/avahi ) )
+ >=dev-libs/liboil-0.3.0
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ lirc? ( app-misc/lirc )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ if use howl && use avahi && ! built_with_use net-dns/avahi howl-compat ; then
+ echo
+ eerror "In order to compile polypaudio, you need to have net-dns/avahi emerged"
+ eerror "with 'howl-compat' in your USE flags. Please add that flag, re-emerge"
+ eerror "avahi, and then emerge polypaudio."
+ die "net-dns/avahi is missing the HOWL compatibility layer."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ elibtoolize
+}
+
+src_compile() {
+ local myconf
+
+ if use howl; then
+ myconf="${myconf} --enable-howl"
+ if use avahi; then
+ append-flags -I/usr/include/avahi-compat-howl
+ fi
+ fi
+
+ econf \
+ --enable-largefile \
+ --enable-glib2 \
+ --disable-glib1 \
+ --disable-solaris \
+ --disable-asyncns \
+ $(use_enable oss) \
+ $(use_enable alsa) \
+ $(use_enable lirc) \
+ $(use_enable tcpd tcpwrap) \
+ $(use_enable jack) \
+ $(use_enable lirc) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --disable-dependency-tracking \
+ ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ local extradepend
+
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use alsa && extradepend="$extradepend alsasound"
+ sed -e "s/@extradepend@/$extradepend/" "${FILESDIR}/pulseaudio.init.d" > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ dohtml -r doc
+ dodoc README doc/todo
+}