blob: 558b6cca476d6f40e67b02fd6637d23c4cd73636 (
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
55
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-4.1.2.ebuild,v 1.1 2008/10/02 07:59:20 jmbsvicetto Exp $
EAPI="2"
KMMODULE=kioslave
KMNAME=kdemultimedia
inherit kde4-meta
DESCRIPTION="KDE kioslaves from the kdemultimedia package"
KEYWORDS="~amd64 ~x86"
IUSE="debug encode flac vorbis"
# Tests are broken. Last checked on 4.0.3.
#RESTRICT="test"
DEPEND="${DEPEND}
>=kde-base/libkcddb-${PV}:${SLOT}
>=kde-base/libkcompactdisc-${PV}:${SLOT}
media-sound/cdparanoia
encode? ( flac? ( >=media-libs/flac-1.1.2 )
vorbis? ( media-libs/libvorbis ) )"
RDEPEND="${DEPEND}"
KMEXTRACTONLY="libkcddb/
libkcompactdisc/"
#KMCOMPILEONLY="libkcddb/"
KMLOADLIBS="libkcddb"
src_configure() {
ln -s "${PREFIX}"/include/libkcddb/configbase.h \
"${WORKDIR}"/${P}/kioslave/audiocd/ \
|| die "linking generated header into sources failed"
if use encode; then
mycmakeargs="${mycmakeargs}
$(cmake-utils_use_with flac Flac)
$(cmake-utils_use_with vorbis OggVorbis)"
else
mycmakeargs="${mycmakeargs}
-DWITH_OggVorbis=OFF -DWITH_Flac=OFF"
fi
kde4-meta_src_configure
}
pkg_postinst() {
if use encode; then
echo
elog "In order to use the lame plugin to encode mp3 files you will need to"
elog "install media-sound/lame"
echo
fi
}
|