diff options
author | 2012-04-22 08:26:32 -0400 | |
---|---|---|
committer | 2012-04-22 08:26:32 -0400 | |
commit | bd4a71d0f183b8e7c609041dd75e57b2f762160a (patch) | |
tree | 96952134ac13abdc6feacca7854f0690f866f660 | |
parent | sys-kernel/hardened-sources: moved to tree (diff) | |
download | blueness-bd4a71d0f183b8e7c609041dd75e57b2f762160a.tar.gz blueness-bd4a71d0f183b8e7c609041dd75e57b2f762160a.tar.bz2 blueness-bd4a71d0f183b8e7c609041dd75e57b2f762160a.zip |
media-libs/libpiano: initial commit, modified media-sound/pianobar
-rw-r--r-- | media-libs/libpiano/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libpiano/files/pianobar-2011.12.11-tests.patch | 26 | ||||
-rw-r--r-- | media-libs/libpiano/libpiano-2012.01.10.ebuild | 54 | ||||
-rw-r--r-- | media-libs/libpiano/metadata.xml | 8 |
4 files changed, 92 insertions, 0 deletions
diff --git a/media-libs/libpiano/Manifest b/media-libs/libpiano/Manifest new file mode 100644 index 0000000..34cbca9 --- /dev/null +++ b/media-libs/libpiano/Manifest @@ -0,0 +1,4 @@ +AUX pianobar-2011.12.11-tests.patch 841 RMD160 bfba981383cc91c133391fd457e2a85b6dc58acf SHA1 b1a32060736073e473fec7f12dadaf0d14e2db92 SHA256 62028822d612a03e0c854ebcfae56ceb95cb7f281a0bbfbaa16e543647b6eedc +DIST pianobar-2012.01.10.tar.bz2 68839 RMD160 60573b71376d3494b4b46421c5ba24369136f025 SHA1 00ac42883157c5e3468ceb57161f1bf04b8fb020 SHA256 6d19e5abde542bcdf8b9cfa50448fbe95c1e113f59e54065c9f4e0fbf78690f9 +EBUILD libpiano-2012.01.10.ebuild 1219 RMD160 44ec53cfcb84f56ae2e32f833cacc968a9b2d0c9 SHA1 59bd22113400cbcca22528a157be08b1f1bfdea4 SHA256 8136a3416acafa1386693fd7212b9cca6ade2d2fe4f8569a88b61a420cd1b5fa +MISC metadata.xml 238 RMD160 6401efde1642c40e91d5a41a966b9dbff0512eab SHA1 9751c07b46aec3d4f96133758cdd23a3e2ca2835 SHA256 f13e6e7b65d20beb9ae945d520160ef0dba80c1965754958945904d7e3c0a75f diff --git a/media-libs/libpiano/files/pianobar-2011.12.11-tests.patch b/media-libs/libpiano/files/pianobar-2011.12.11-tests.patch new file mode 100644 index 0000000..df4c667 --- /dev/null +++ b/media-libs/libpiano/files/pianobar-2011.12.11-tests.patch @@ -0,0 +1,26 @@ +--- pianobar-2011.12.11/Makefile.orig ++++ pianobar-2011.12.11/Makefile +@@ -55,10 +55,12 @@ + + LIBWAITRESS_DIR=src/libwaitress + LIBWAITRESS_SRC=${LIBWAITRESS_DIR}/waitress.c ++LIBWAITRESS_TSRC=${LIBWAITRESS_DIR}/waitress-test.c + LIBWAITRESS_HDR=\ + ${LIBWAITRESS_DIR}/config.h \ + ${LIBWAITRESS_DIR}/waitress.h + LIBWAITRESS_OBJ=${LIBWAITRESS_SRC:.c=.o} ++LIBWAITRESS_TOBJ=${LIBWAITRESS_TSRC:.c=.o} + LIBWAITRESS_RELOBJ=${LIBWAITRESS_SRC:.c=.lo} + LIBWAITRESS_INCLUDE=${LIBWAITRESS_DIR} + +@@ -133,8 +135,8 @@ + debug: CFLAGS=-Wall -pedantic -ggdb + + waitress-test: CFLAGS+= -DTEST +-waitress-test: ${LIBWAITRESS_OBJ} +- ${CC} ${LDFLAGS} ${LIBWAITRESS_OBJ} ${LIBGNUTLS_LDFLAGS} -o waitress-test ++waitress-test: ${LIBWAITRESS_TOBJ} ++ ${CC} ${LDFLAGS} ${LIBWAITRESS_TOBJ} ${LIBGNUTLS_LDFLAGS} -o waitress-test + + test: waitress-test + ./waitress-test diff --git a/media-libs/libpiano/libpiano-2012.01.10.ebuild b/media-libs/libpiano/libpiano-2012.01.10.ebuild new file mode 100644 index 0000000..f23d08f --- /dev/null +++ b/media-libs/libpiano/libpiano-2012.01.10.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pianobar/pianobar-2012.01.10.ebuild,v 1.1 2012/01/11 07:08:42 radhermit Exp $ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic eutils + +MY_PN="pianobar" +MY_P="${MY_PN}-${PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="A console-based replacement for Pandora's flash player" +HOMEPAGE="http://6xq.net/projects/pianobar/" +SRC_URI="http://6xq.net/static/projects/${MY_PN}/${MY_P}.tar.bz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aac +mp3" + +DEPEND="media-libs/libao + net-libs/gnutls + aac? ( media-libs/faad2 ) + mp3? ( media-libs/libmad )" +RDEPEND="${DEPEND}" + +REQUIRED_USE="|| ( mp3 aac )" + +src_prepare() { + epatch "${FILESDIR}"/${MY_PN}-2011.12.11-tests.patch +} + +src_compile() { + local myconf + ! use aac && myconf+=" DISABLE_FAAD=1" + ! use mp3 && myconf+=" DISABLE_MAD=1" + + append-cflags -std=c99 + tc-export CC + emake ${myconf} libpiano.so.0 +} + +src_test() { + cp src/libwaitress/waitress.c src/libwaitress/waitress-test.c + emake test +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install install-libpiano + + rm -rf "${D}"/usr/bin + rm -rf "${D}"/usr/share +} diff --git a/media-libs/libpiano/metadata.xml b/media-libs/libpiano/metadata.xml new file mode 100644 index 0000000..1e75873 --- /dev/null +++ b/media-libs/libpiano/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> |