/[gentoo-x86]/media-sound/pianobar/pianobar-2012.12.01.ebuild
Gentoo

Contents of /media-sound/pianobar/pianobar-2012.12.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 2 11:38:31 2012 UTC (2 years ago) by radhermit
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="5"
6
7 inherit toolchain-funcs flag-o-matic eutils multilib
8
9 DESCRIPTION="A console-based replacement for Pandora's flash player"
10 HOMEPAGE="http://6xq.net/projects/pianobar/"
11 SRC_URI="http://6xq.net/static/projects/${PN}/${P}.tar.bz2"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+aac mp3 static-libs"
17
18 RDEPEND="media-libs/libao
19 net-libs/gnutls
20 dev-libs/libgcrypt
21 dev-libs/json-c
22 aac? ( media-libs/faad2 )
23 mp3? ( media-libs/libmad )"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig"
26
27 REQUIRED_USE="|| ( aac mp3 )"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-2011.12.11-tests.patch
31 }
32
33 src_compile() {
34 local myconf="DYNLINK=1"
35 ! use aac && myconf+=" DISABLE_FAAD=1"
36 ! use mp3 && myconf+=" DISABLE_MAD=1"
37
38 append-cflags -std=c99
39 tc-export CC
40 emake ${myconf}
41 }
42
43 src_test() {
44 cp src/libwaitress/waitress.c src/libwaitress/waitress-test.c
45 emake test
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) DYNLINK=1 install
50 dodoc ChangeLog README
51
52 use static-libs || rm -f "${D}"/usr/lib*/*.a
53
54 docinto contrib
55 dodoc -r contrib/{config-example,*.sh,eventcmd-examples}
56 docompress -x /usr/share/doc/${PF}/contrib
57 }

  ViewVC Help
Powered by ViewVC 1.1.20