Kaleb Elwert avatar Kaleb Elwert committed de1f577

added pianobar-9999 with option to build libpiano separately

Comments (0)

Files changed (2)

media-sound/pianobar/Manifest

+EBUILD pianobar-9999.ebuild 1142 RMD160 2e3f03de34dbc3944f8e77f5c65829ef9d2d892f SHA1 5a90c1de65544160768dcf2ed7b67f55d8e9e885 SHA256 e2c97a213cb70c1d5a8f96b71608c6a34de3fbfd967dcd17c139ede39139b080

media-sound/pianobar/pianobar-9999.ebuild

+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit toolchain-funcs flag-o-matic eutils git-2
+
+EGIT_REPO_URI="git://github.com/PromyLOPh/pianobar.git"
+
+DESCRIPTION="A console-based replacement for Pandora's flash player"
+HOMEPAGE="http://6xq.net/projects/pianobar/"
+SRC_URI=""
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS=""
+IUSE="aac +libpiano +mp3"
+
+DEPEND="media-libs/libao
+	net-libs/gnutls
+	aac? ( media-libs/faad2 )
+	mp3? ( media-libs/libmad )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="|| ( mp3 aac )"
+
+# Only releases are tested since patches required for testing often break
+RESTRICT="test"
+
+src_compile() {
+	local myconf
+	! use aac && myconf+=" DISABLE_FAAD=1"
+	! use mp3 && myconf+=" DISABLE_MAD=1"
+	use libpiano && myconf+=" DYNLINK=1"
+
+	append-cflags -std=c99
+	tc-export CC
+	emake ${myconf}
+}
+
+src_install() {
+	local myconf
+	use libpiano && myconf+=" DYNLINK=1"
+	emake ${myconf} DESTDIR="${D}" PREFIX=/usr install
+	dodoc ChangeLog README
+
+	docinto contrib
+	dodoc -r contrib/{config-example,*.sh,eventcmd-examples}
+	docompress -x /usr/share/doc/${PF}/contrib
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.