From: Andreas Sturmlechner Date: Fri, 15 May 2020 22:11:32 +0000 (+0200) Subject: media-sound/pianobar: Improve EAPI-7, sorting X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f5fdbdc73cfbea4394f2404b4750a63a01527b9;p=gentoo.git media-sound/pianobar: Improve EAPI-7, sorting Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner --- diff --git a/media-sound/pianobar/pianobar-9999.ebuild b/media-sound/pianobar/pianobar-9999.ebuild index 5a3320ef9da6..603adde3fbfb 100644 --- a/media-sound/pianobar/pianobar-9999.ebuild +++ b/media-sound/pianobar/pianobar-9999.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + inherit toolchain-funcs flag-o-matic if [[ ${PV} == 9999 ]]; then @@ -19,14 +20,15 @@ LICENSE="MIT" SLOT="0" IUSE="static-libs" -RDEPEND="media-libs/libao - net-misc/curl - dev-libs/libgcrypt:0= +BDEPEND="virtual/pkgconfig" +RDEPEND=" dev-libs/json-c:= - >=media-video/ffmpeg-3.1:0= + dev-libs/libgcrypt:0= + media-libs/libao + >=media-video/ffmpeg-3.3:0= + net-misc/curl " -DEPEND="${RDEPEND} - virtual/pkgconfig" +DEPEND="${RDEPEND}" src_compile() { append-cflags -std=c99 @@ -38,7 +40,9 @@ 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; } + if ! use static-libs; then + rm "${D}"/usr/lib*/*.a || die + fi docinto contrib dodoc -r contrib/{config-example,*.sh,eventcmd-examples}