blob: 9f7d4118e76bc6f55d534b86879a5ed0197033cb (
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
54
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/kradio/kradio-20061112-r1.ebuild,v 1.2 2008/05/05 19:08:57 drac Exp $
inherit eutils kde
MY_PV="snapshot-2006-11-12-r497"
S="${WORKDIR}/${PN}-${MY_PV}"
DESCRIPTION="kradio is a radio tuner application for KDE"
HOMEPAGE="http://kradio.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="alsa lirc encode vorbis v4l2 oss"
DEPEND="lirc? ( app-misc/lirc )
media-libs/libsndfile
encode? ( media-sound/lame )
vorbis? ( media-libs/libvorbis )"
need-kde 3.5
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc43.patch
sed -i kradio3/src/kradio.desktop -e 's:kradio\.png:kradio:'
rm configure
}
src_compile() {
if ! use vorbis; then
myconf="${myconf} --enable-ogg=no"
fi
if ! use encode; then
myconf="${myconf} --enable-lame=no"
fi
if ! use lirc; then
myconf="${myconf} --enable-lirc=no"
fi
if ! use alsa; then
myconf="${myconf} --enable-alsa=no"
fi
if ! use v4l2; then
myconf="${myconf} --enable-v4l2=no"
fi
if ! use oss; then
myconf="${myconf} --enable-oss=no"
fi
kde_src_compile || die "make failed"
}
|