diff options
Diffstat (limited to 'media-sound/pianobar')
-rw-r--r-- | media-sound/pianobar/Manifest | 1 | ||||
-rw-r--r-- | media-sound/pianobar/pianobar-2015.11.22.ebuild | 52 | ||||
-rw-r--r-- | media-sound/pianobar/pianobar-9999.ebuild | 4 |
3 files changed, 55 insertions, 2 deletions
diff --git a/media-sound/pianobar/Manifest b/media-sound/pianobar/Manifest index d293cf19fe94..3810f3338bde 100644 --- a/media-sound/pianobar/Manifest +++ b/media-sound/pianobar/Manifest @@ -1 +1,2 @@ DIST pianobar-2014.09.28.tar.bz2 51810 SHA256 6bd10218ad5d68c4c761e02c729627d2581b4a6db559190e7e52dc5df177e68f SHA512 3a9a508eaa4f1060ab456c4e28cd5447ed0a2e6a15b7694bf711ffa363d86c27483b1956da7f90919c9111c48752a99b9f704e721924903c017355dd577bc905 WHIRLPOOL 35db2f53b194d61c8601f27a787319036e5a59d86734ffd6ee00762fb66b2265c0f5b99aeea7ebffc9ebf5f8aa1430acc136e3486e6fa8cd2b355c439e96b68b +DIST pianobar-2015.11.22.tar.bz2 45973 SHA256 23fbc9e6f55b3277dba7a0f68ff721bad7f1eeea504c616ba008841686de322b SHA512 cd8f7307f0d7bd0359954202d2fc3b6d9fdcdc7238a2057c1541f85d62d69fafb22c4a6466d873c35727c1ad1576755ac2f9224dd5ce4ccba2d9c1c8b9a0205a WHIRLPOOL 30c6a43b2cad991d28ca7de981a950debed1f7b6097f71346ea181857e9599a3bf362153ffd040dbed1bc2a1b3459e96e48e5b963ffcb5a87d19157cf6d96ba8 diff --git a/media-sound/pianobar/pianobar-2015.11.22.ebuild b/media-sound/pianobar/pianobar-2015.11.22.ebuild new file mode 100644 index 000000000000..0b27aa69c6e4 --- /dev/null +++ b/media-sound/pianobar/pianobar-2015.11.22.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/PromyLOPh/pianobar.git" +else + SRC_URI="http://6xq.net/projects/${PN}/${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="A console-based replacement for Pandora's flash player" +HOMEPAGE="http://6xq.net/projects/pianobar/" + +LICENSE="MIT" +SLOT="0" +IUSE="static-libs" + +RDEPEND="media-libs/libao + net-misc/curl + dev-libs/libgcrypt:0= + dev-libs/json-c + >=virtual/ffmpeg-9" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -e '/@echo /d' \ + -e 's/@${CC}/${CC}/' \ + -i Makefile || die +} + +src_compile() { + append-cflags -std=c99 + tc-export CC + emake DYNLINK=1 +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) DYNLINK=1 install + dodoc ChangeLog README.md + + use static-libs || { rm "${D}"/usr/lib*/*.a || die; } + + docinto contrib + dodoc -r contrib/{config-example,*.sh,eventcmd-examples} + docompress -x /usr/share/doc/${PF}/contrib +} diff --git a/media-sound/pianobar/pianobar-9999.ebuild b/media-sound/pianobar/pianobar-9999.ebuild index 4c492a8cea9d..0b27aa69c6e4 100644 --- a/media-sound/pianobar/pianobar-9999.ebuild +++ b/media-sound/pianobar/pianobar-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -21,7 +21,7 @@ SLOT="0" IUSE="static-libs" RDEPEND="media-libs/libao - net-libs/gnutls + net-misc/curl dev-libs/libgcrypt:0= dev-libs/json-c >=virtual/ffmpeg-9" |