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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 2 11:39:56 2012 UTC (2 years, 3 months ago) by radhermit
Branch: MAIN
Changes since 1.3: +3 -3 lines
Bump EAPI and fix LICENSE.

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

  ViewVC Help
Powered by ViewVC 1.1.20