blob: c3d7924ddf3dc43929741733f4382bb7b842fce2 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/shell-fm/shell-fm-0.8-r1.ebuild,v 1.2 2012/05/05 08:50:15 mgorny Exp $
EAPI=4
inherit flag-o-matic toolchain-funcs eutils
DESCRIPTION="A lightweight console based player for Last.FM radio streams"
HOMEPAGE="http://nex.scrapping.cc/shell-fm/"
SRC_URI="https://github.com/jkramer/${PN}/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
IUSE=""
RDEPEND="media-libs/libao
media-libs/libmad
media-libs/taglib"
DEPEND="${RDEPEND}
virtual/pkgconfig
sys-apps/sed"
src_unpack() {
unpack ${A}
mv *-${PN}-* "${S}"
}
src_prepare() {
epatch "${FILESDIR}"/${P}-doublefree.patch #392413
sed -i -e 's:-Os::' source/Makefile || die
tc-export CC AR
use ppc && append-flags -DWORDS_BIGENDIAN=1
}
src_install() {
dobin source/${PN}
doman manual/${PN}.1
exeinto /usr/share/${PN}/scripts
doexe scripts/{*.sh,*.pl,zcontrol}
}
|