summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-26 07:34:01 +0100
committerSam James <sam@gentoo.org>2022-07-26 07:43:47 +0100
commit360e013ce0af17d027bbf36b2c23308b6d34c8fd (patch)
tree16a09f5ace9aba1d562b1e063867b9799b589769 /media-sound/pianobar/pianobar-2022.04.01.ebuild
parentmedia-sound/pianobar: add github upstream metadata (diff)
downloadgentoo-360e013ce0af17d027bbf36b2c23308b6d34c8fd.tar.gz
gentoo-360e013ce0af17d027bbf36b2c23308b6d34c8fd.tar.bz2
gentoo-360e013ce0af17d027bbf36b2c23308b6d34c8fd.zip
media-sound/pianobar: add 2022.04.01
Closes: https://bugs.gentoo.org/834394 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/pianobar/pianobar-2022.04.01.ebuild')
-rw-r--r--media-sound/pianobar/pianobar-2022.04.01.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/media-sound/pianobar/pianobar-2022.04.01.ebuild b/media-sound/pianobar/pianobar-2022.04.01.ebuild
new file mode 100644
index 000000000000..2ad410129b22
--- /dev/null
+++ b/media-sound/pianobar/pianobar-2022.04.01.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+
+RDEPEND="
+ dev-libs/json-c:=
+ dev-libs/libgcrypt:=
+ media-libs/libao
+ >=media-video/ffmpeg-3.3:=
+ net-misc/curl
+"
+DEPEND="${RDEPEND}"
+BDEPEND="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.rst
+
+ rm "${D}"/usr/lib*/*.a || die
+
+ docinto contrib
+ dodoc -r contrib/{config-example,*.sh,eventcmd-examples}
+ docompress -x /usr/share/doc/${PF}/contrib
+}