summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-08-09 08:01:28 +0000
committerTim Harder <radhermit@gentoo.org>2011-08-09 08:01:28 +0000
commit0a67f2f7a3dd7ddf374a4b3f66771dc5d53b0627 (patch)
tree49336699008410f55b73fbae1a91201ecd36da0f
parentVersion bump, and some fixes (diff)
downloadhistorical-0a67f2f7a3dd7ddf374a4b3f66771dc5d53b0627.tar.gz
historical-0a67f2f7a3dd7ddf374a4b3f66771dc5d53b0627.tar.bz2
historical-0a67f2f7a3dd7ddf374a4b3f66771dc5d53b0627.zip
Initial import (bug #337587).
Package-Manager: portage-2.2.0_alpha50/cvs/Linux x86_64
-rw-r--r--media-sound/squeezeslave/ChangeLog11
-rw-r--r--media-sound/squeezeslave/Manifest21
-rw-r--r--media-sound/squeezeslave/files/squeezeslave-1.1_p262-ffmpeg.patch32
-rw-r--r--media-sound/squeezeslave/files/squeezeslave.confd13
-rw-r--r--media-sound/squeezeslave/files/squeezeslave.initd23
-rw-r--r--media-sound/squeezeslave/metadata.xml13
-rw-r--r--media-sound/squeezeslave/squeezeslave-1.1_p262.ebuild45
7 files changed, 158 insertions, 0 deletions
diff --git a/media-sound/squeezeslave/ChangeLog b/media-sound/squeezeslave/ChangeLog
new file mode 100644
index 000000000000..c2b1a11eb685
--- /dev/null
+++ b/media-sound/squeezeslave/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-sound/squeezeslave
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezeslave/ChangeLog,v 1.1 2011/08/09 08:01:28 radhermit Exp $
+
+*squeezeslave-1.1_p262 (09 Aug 2011)
+
+ 09 Aug 2011; Tim Harder <radhermit@gentoo.org> +squeezeslave-1.1_p262.ebuild,
+ +files/squeezeslave-1.1_p262-ffmpeg.patch, +files/squeezeslave.confd,
+ +files/squeezeslave.initd, +metadata.xml:
+ Initial import (bug #337587).
+
diff --git a/media-sound/squeezeslave/Manifest b/media-sound/squeezeslave/Manifest
new file mode 100644
index 000000000000..fda40317e5dc
--- /dev/null
+++ b/media-sound/squeezeslave/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX squeezeslave-1.1_p262-ffmpeg.patch 1065 RMD160 eb58ce31dd09efe37538b2ab41fbfaa64039416d SHA1 f4e83d043cfd67b3065a7e6617e984412cf4f401 SHA256 dc6e3201f1d6104c24ddef8d26f996489b3158ffa9514fc6126033a3ac79fa09
+AUX squeezeslave.confd 317 RMD160 23217760c20d12a19ea2d446a77cf045a8e1edec SHA1 8046774d6ec3ad8f924234a9f683289d99f0dbeb SHA256 bc73638b70b736f3b1934871db3a348254f207ce42a03ac26dff6e273192a7c2
+AUX squeezeslave.initd 734 RMD160 24bc154d619b9e229a8e2c6870c9fa6f74916fe8 SHA1 381866705a68568d1ac778b37fae60d155c2ef98 SHA256 fd6b2746843a31cc3d67689c3186d9e261978358eef201efc8895403acdb548c
+DIST squeezeslave-1.1_p262.tar.xz 104224 RMD160 6518dba4bb366b11ed80fd0ef703b4c790fa187c SHA1 5096010912015819dfaedfb497f1f6733084c098 SHA256 6dcb70731359ae35a57b994dc944617dc222222488bbad1cd8e9fbc2114eec5b
+EBUILD squeezeslave-1.1_p262.ebuild 1131 RMD160 6ef5581d9d1466e4bfdb726fa6112f484ac81a25 SHA1 b7a0f1309a88174a204f406b42cb593b8c268f61 SHA256 5a27fe2ef3d5fb31a7a6427d8e2fd67268d9e1f6d4de078332ba0c579e4d8127
+MISC ChangeLog 491 RMD160 2bdf26ccfaf66cb3e55419dcb93ced5af8b11dc8 SHA1 a282f9479203924f01a77738b83ea71ca90ea7f3 SHA256 c4d4103680a003d5a7dd334fdeedb7e25e00591774d5dc15cf1cf383e6088f1e
+MISC metadata.xml 402 RMD160 7ecdd507579397c3db0ff6f107aec7ed8d82843f SHA1 c72e2cd8c24c675bcdb54b88a4f3b146c371cc51 SHA256 d89ea2b0359e9d423bca19100408515c3b6f1d2e0226eba87206b534a491cffd
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQEcBAEBCgAGBQJOQOljAAoJEEqz6FtPBkyj4EoIAKVWBmpgbG9U5zXdtj9TpjTo
+BU5QHRGof5TznS/Y8gcWacXFfHZv0C/4zOV0u1sI9fniX/GKHRHyLYiX2BW9PGpm
+xqGPNvXIXwT+xWbXbEGlxF7mqxv37BBprfm1oP9DXLqduV7FE3ZQZ2Ep/R60RQN/
+FqsERgGqZl1orHXFR54HOmeX3yAFd1MVjUF/0uLkdT7ZJP/j3mwk/gHusAjgoBIe
+gQ6GLEsOa84CO4q4q5hUbFyUiEBfEoLR7qHIA79SI+73KXteNiNLu/8hk/wlYVFq
+2wILS6VTwuG8Hm2fPlxYGctDR8QwJG7d+fyOxR+7mh9rNX29UqN0JVqz5AJamqI=
+=mJFf
+-----END PGP SIGNATURE-----
diff --git a/media-sound/squeezeslave/files/squeezeslave-1.1_p262-ffmpeg.patch b/media-sound/squeezeslave/files/squeezeslave-1.1_p262-ffmpeg.patch
new file mode 100644
index 000000000000..1db1820437be
--- /dev/null
+++ b/media-sound/squeezeslave/files/squeezeslave-1.1_p262-ffmpeg.patch
@@ -0,0 +1,32 @@
+--- squeezeslave-1.1_p262.orig/src/slimaudio/slimaudio_decoder_aac.c
++++ squeezeslave-1.1_p262/src/slimaudio/slimaudio_decoder_aac.c
+@@ -206,7 +206,12 @@
+ return -1;
+ }
+
+- if ( pFormatCtx->streams[audioStream]->codec->codec_type != CODEC_TYPE_AUDIO )
++ if ( pFormatCtx->streams[audioStream]->codec->codec_type !=
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++ AVMEDIA_TYPE_AUDIO )
++#else
++ CODEC_TYPE_AUDIO )
++#endif
+ {
+ DEBUGF("aac: stream: %d is not audio.\n", audioStream );
+ return -1;
+--- squeezeslave-1.1-253.orig/src/slimaudio/slimaudio_decoder_wma.c
++++ squeezeslave-1.1-253/src/slimaudio/slimaudio_decoder_wma.c
+@@ -201,7 +201,12 @@
+ return -1;
+ }
+
+- if ( pFormatCtx->streams[audioStream]->codec->codec_type != CODEC_TYPE_AUDIO )
++ if ( pFormatCtx->streams[audioStream]->codec->codec_type !=
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++ AVMEDIA_TYPE_AUDIO )
++#else
++ CODEC_TYPE_AUDIO )
++#endif
+ {
+ DEBUGF("wma: stream: %d is not audio.\n", audioStream );
+ return -1;
diff --git a/media-sound/squeezeslave/files/squeezeslave.confd b/media-sound/squeezeslave/files/squeezeslave.confd
new file mode 100644
index 000000000000..a5b8d849024f
--- /dev/null
+++ b/media-sound/squeezeslave/files/squeezeslave.confd
@@ -0,0 +1,13 @@
+# /etc/conf.d/squeezeslave: config file for /etc/init.d/squeezeslave
+
+# Log file for squeezeslave
+SS_LOG="/var/log/squeezeslave.log"
+
+# MAC address associated with this instance
+SS_MAC="00:00:00:00:00:01"
+
+# IP address of machine running squeezeboxserver
+SBS_HOST="127.0.0.1"
+
+# Other squeezeslave options
+SS_OPTS=""
diff --git a/media-sound/squeezeslave/files/squeezeslave.initd b/media-sound/squeezeslave/files/squeezeslave.initd
new file mode 100644
index 000000000000..ea9f1f755f7a
--- /dev/null
+++ b/media-sound/squeezeslave/files/squeezeslave.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezeslave/files/squeezeslave.initd,v 1.1 2011/08/09 08:01:28 radhermit Exp $
+
+depend() {
+ need net
+ use squeezeboxserver
+}
+
+start() {
+ ebegin "Starting squeezeslave"
+ start-stop-daemon --start --quiet --background --pidfile /var/run/squeezeslave.pid \
+ --make-pidfile --exec /usr/bin/squeezeslave -- \
+ --daemonize "${SS_LOG}" --mac ${SS_MAC} --retry ${SBS_HOST} ${SS_OPTS}
+ eend $? "Failed to start squeezeslave"
+}
+
+stop() {
+ ebegin "Stopping squeezeslave"
+ start-stop-daemon --stop --pid /var/run/squeezeslave.pid
+ eend $? "Failed to stop squeezeslave"
+}
diff --git a/media-sound/squeezeslave/metadata.xml b/media-sound/squeezeslave/metadata.xml
new file mode 100644
index 000000000000..471c2ceb43d6
--- /dev/null
+++ b/media-sound/squeezeslave/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="display">Enable a text-based display</flag>
+ <flag name="wma">Enable support for streaming Windows Media Audio</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-sound/squeezeslave/squeezeslave-1.1_p262.ebuild b/media-sound/squeezeslave/squeezeslave-1.1_p262.ebuild
new file mode 100644
index 000000000000..58169d809455
--- /dev/null
+++ b/media-sound/squeezeslave/squeezeslave-1.1_p262.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezeslave/squeezeslave-1.1_p262.ebuild,v 1.1 2011/08/09 08:01:28 radhermit Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A lightweight streaming audio player for squeezeboxserver"
+HOMEPAGE="http://squeezeslave.googlecode.com"
+SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="aac +alsa display wma"
+
+RDEPEND="media-libs/libmad
+ media-libs/flac
+ media-libs/libvorbis
+ media-libs/libogg
+ media-libs/portaudio[alsa?]
+ aac? ( virtual/ffmpeg )
+ wma? ( virtual/ffmpeg )
+ display? ( app-misc/lirc )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ ! use display && sed -i -e "/display/d" Makefile
+ ! use aac && sed -i -e "/AAC/d" Makefile
+ ! use wma && sed -i -e "/WMA/d" Makefile
+
+ epatch "${FILESDIR}"/${P}-ffmpeg.patch
+
+ tc-export CC AR
+}
+
+src_install() {
+ dobin bin/${PN}
+ dodoc ChangeLog TODO
+
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}