blob: 2a10b397938a9987261af595f3cfe85a9e3ccf40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2012 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.3 2012/06/27 09:51:27 radhermit Exp $
EAPI="4"
inherit toolchain-funcs flag-o-matic eutils multilib git-2
EGIT_REPO_URI="git://github.com/PromyLOPh/pianobar.git"
DESCRIPTION="A console-based replacement for Pandora's flash player"
HOMEPAGE="http://6xq.net/projects/pianobar/"
SRC_URI=""
LICENSE="as-is"
SLOT="0"
KEYWORDS=""
IUSE="+aac mp3 static-libs"
RDEPEND="media-libs/libao
net-libs/gnutls
dev-libs/libgcrypt
dev-libs/json-c
aac? ( media-libs/faad2 )
mp3? ( media-libs/libmad )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
REQUIRED_USE="|| ( aac mp3 )"
# Only releases are tested since patches required for testing often break
RESTRICT="test"
src_compile() {
local myconf="DYNLINK=1"
! use aac && myconf+=" DISABLE_FAAD=1"
! use mp3 && myconf+=" DISABLE_MAD=1"
append-cflags -std=c99
tc-export CC
emake ${myconf}
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) DYNLINK=1 install
dodoc ChangeLog README
use static-libs || rm -f "${D}"/usr/lib*/*.a
docinto contrib
dodoc -r contrib/{config-example,*.sh,eventcmd-examples}
docompress -x /usr/share/doc/${PF}/contrib
}
|