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
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')
-rw-r--r--media-sound/pianobar/Manifest1
-rw-r--r--media-sound/pianobar/pianobar-2022.04.01.ebuild47
-rw-r--r--media-sound/pianobar/pianobar-9999.ebuild13
3 files changed, 54 insertions, 7 deletions
diff --git a/media-sound/pianobar/Manifest b/media-sound/pianobar/Manifest
index fcbb4c5410f4..e3f41875f371 100644
--- a/media-sound/pianobar/Manifest
+++ b/media-sound/pianobar/Manifest
@@ -1 +1,2 @@
DIST pianobar-2020.04.05.tar.bz2 48823 BLAKE2B 91e9b96f0a635995ab08bd189b7b6b353f553b6c6cd405be2e95f9c0401b075158df4aa28633854747eced4ac60777724dd265dae62744c773d5f4b4c12aa90e SHA512 40d717693f128da3718c0e1be9c90c269712becf9ac2ffe0669a91ea9417d0fdb0476949df29c1da908e2d78678f26955149dbb8c5a0167161f95835ce76084e
+DIST pianobar-2022.04.01.tar.bz2 52262 BLAKE2B d6f28a893ad94aed2cb7cda55a2b00480bb1319e01561974d75a10559c5ccda45fa6fe216d0b1d130c33d6eb2d7b395a95942a8a62eec0c21912f208799cc8f3 SHA512 9ad60c0048b375d74ad2bab289d75deec6dba46c31bfc1799dabf18661ec0cdef494df72273e6c16989ead21dc034445595a3e2ace43f6b6ca61446449895aef
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
+}
diff --git a/media-sound/pianobar/pianobar-9999.ebuild b/media-sound/pianobar/pianobar-9999.ebuild
index a13e7069ac50..2ad410129b22 100644
--- a/media-sound/pianobar/pianobar-9999.ebuild
+++ b/media-sound/pianobar/pianobar-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit toolchain-funcs flag-o-matic
@@ -18,17 +18,16 @@ HOMEPAGE="https://6xq.net/pianobar/"
LICENSE="MIT"
SLOT="0"
-IUSE=""
-BDEPEND="virtual/pkgconfig"
RDEPEND="
dev-libs/json-c:=
- dev-libs/libgcrypt:0=
+ dev-libs/libgcrypt:=
media-libs/libao
- >=media-video/ffmpeg-3.3:0=
+ >=media-video/ffmpeg-3.3:=
net-misc/curl
"
DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
src_compile() {
append-cflags -std=c99
@@ -38,7 +37,7 @@ src_compile() {
src_install() {
emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) DYNLINK=1 install
- dodoc ChangeLog README.md
+ dodoc ChangeLog README.rst
rm "${D}"/usr/lib*/*.a || die