blob: 369eb46e7160a3802e5ef36c8557d7b4ae0675d2 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/dragonplayer/dragonplayer-2.0.1.ebuild,v 1.2 2008/05/30 08:39:34 zlin Exp $
EAPI="1"
SLOT="kde-4"
NEED_KDE=":${SLOT}"
inherit kde4-base
DESCRIPTION="Dragon Player is a simple video player for KDE 4"
HOMEPAGE="http://dragonplayer.org/"
SRC_URI="http://dragonplayer.org/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
LANGS="ar be cs da el es fr ga gl it ja km ko lv nb nds nn oc pl pt pt_BR sv tr
zh_CN zh_TW"
for _X in ${LANGS}; do
IUSE="${IUSE} linguas_${_X}"
done
PREFIX="${KDEDIR}"
RDEPEND=">=kde-base/kdelibs-4.0.1-r1:${SLOT}
>=media-libs/xine-lib-1.1.9
kde-base/phonon:${SLOT}"
DEPEND="${RDEPEND}
sys-devel/gettext"
KDE4_BUILT_WITH_USE_CHECK=("kde-base/phonon:${SLOT} xcb")
src_compile() {
comment_all_add_subdirectory po/ || die "sed to remove all linguas failed."
local _X
for _X in ${LANGS}; do
if use linguas_${X}; then
sed -i -e "/add_subdirectory(\s*${X}\s*)\s*$/ s/^#DONOTCOMPILE //" \
po/CMakeLists.txt || die "sed to uncomment ${lang} failed."
fi
done
kde4-base_src_compile
}
|