You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/pianobar/pianobar-9999.ebuild

53 lines
1.2 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/pianobar/pianobar-9999.ebuild,v 1.8 2014/06/22 13:07:34 radhermit Exp $
EAPI="5"
inherit toolchain-funcs flag-o-matic multilib
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="git://github.com/PromyLOPh/pianobar.git"
else
SRC_URI="http://6xq.net/projects/${PN}/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A console-based replacement for Pandora's flash player"
HOMEPAGE="http://6xq.net/projects/pianobar/"
LICENSE="MIT"
SLOT="0"
IUSE="static-libs"
RDEPEND="media-libs/libao
net-libs/gnutls
dev-libs/libgcrypt:0=
dev-libs/json-c
>=virtual/ffmpeg-9"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -e '/@echo /d' \
-e 's/@${CC}/${CC}/' \
-i Makefile || die
}
src_compile() {
append-cflags -std=c99
tc-export CC
emake DYNLINK=1
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) DYNLINK=1 install
dodoc ChangeLog README
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
}