media-sound/pianobar: version bump to 2019.02.14
authorTim Harder <radhermit@gentoo.org>
Wed, 3 Jul 2019 19:55:05 +0000 (13:55 -0600)
committerTim Harder <radhermit@gentoo.org>
Wed, 3 Jul 2019 20:08:48 +0000 (14:08 -0600)
Signed-off-by: Tim Harder <radhermit@gentoo.org>
media-sound/pianobar/Manifest
media-sound/pianobar/pianobar-2019.02.14.ebuild [new file with mode: 0644]

index 50a1020834dde4b05a3a03fa5ef055087ac40f46..723fa0349018e7cb815f47d2202df02aa1c0ff9b 100644 (file)
@@ -1 +1,2 @@
 DIST pianobar-2019.01.25.tar.bz2 48340 BLAKE2B 09078b0fdf43baab99c343a86d5f1c1e0ee7ab39e2af20e7cdde6c21320a74d82ed9bc02e821b02ab045329944aa7d273d637c80bcb0ce96692281dc2e1a0568 SHA512 bfcec235ff01e40a2f650166a29020276b43b241008fd5eb8b84944744b1ce6262cf3be140354404c9410b88d6910e4bcf77b4de787742a7898bbc8511fef0f6
+DIST pianobar-2019.02.14.tar.bz2 48396 BLAKE2B 3b25cdbd086efdb4c5f3239b9c47af6c6f647929573dd8fda93a569252dcace34654fc9460bc0cc9925057bb56a10912788a9aedaba8f217dfc2f9eae9718275 SHA512 00491118ed46df4871e8d019e7139d0779d07d03ab4c8a2312f024613a8b849430bb7c23339a021604023f2c5234015fdbd5d7078caf8cf6d690d03e7c648755
diff --git a/media-sound/pianobar/pianobar-2019.02.14.ebuild b/media-sound/pianobar/pianobar-2019.02.14.ebuild
new file mode 100644 (file)
index 0000000..dff31a2
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs flag-o-matic
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/PromyLOPh/pianobar.git"
+else
+       SRC_URI="https://6xq.net/${PN}/${P}.tar.bz2"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A console-based replacement for Pandora's flash player"
+HOMEPAGE="https://6xq.net/pianobar/"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="libav static-libs"
+
+RDEPEND="media-libs/libao
+       net-misc/curl
+       dev-libs/libgcrypt:0=
+       dev-libs/json-c:=
+       libav? ( >=media-video/libav-12:0= )
+       !libav? ( >=media-video/ffmpeg-3.1:0= )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_compile() {
+       append-cflags -std=c99
+       tc-export AR CC
+       emake V=1 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
+}