mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-09 00:10:21 +03:00
media-sound/pianobar: use ffmpeg-compat
It is possible fixes already exist for ffmpeg-7 on this package, but not planning to look into that myself. Given no code changes, plans are to sync keywords back with stable when ready. Bug: https://bugs.gentoo.org/949272 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
50
media-sound/pianobar/pianobar-2022.04.01-r1.ebuild
Normal file
50
media-sound/pianobar/pianobar-2022.04.01-r1.ebuild
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit ffmpeg-compat flag-o-matic toolchain-funcs
|
||||
|
||||
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-compat:6=
|
||||
net-misc/curl
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
# TODO: fix with >=ffmpeg-7 then drop compat (bug #949272)
|
||||
ffmpeg_compat_setup 6
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user