summaryrefslogtreecommitdiff
path: root/kde-misc/krusader/krusader-2.0.0_beta1.ebuild
blob: 7a534f4b2a381343f175cba83b62914cbd620c3d (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2_pre1"

NEED_KDE="4.1"
inherit kde4-base

MY_P="${P/_/-}"

DESCRIPTION="An advanced twin-panel (commander-style) file-manager for KDE with many extras."
HOMEPAGE="http://krusader.sourceforge.net/"
SRC_URI="mirror://sourceforge/krusader/${MY_P}.tar.gz"
LICENSE="GPL-2"

SLOT="4.1"
KEYWORDS="~amd64 ~x86"
IUSE="pic"

LANGS="bg bs ca cs da de el es fr hu it ja lt nl pl pt pt_BR ru sk sl sr sv tr uk zh_CN"
for LANG in ${LANGS}; do
	IUSE="${IUSE} linguas_${LANG}"
done

DEPEND="sys-devel/gettext
	!kdeprefix? ( !kde-misc/krusader:0 )"

S="${WORKDIR}/${MY_P}"

src_unpack() {
	local LANG
	unpack ${A}
	cd "${S}"/po
	# take care of linguas
	for LANG in ${LANGS}; do
		mv "${LANG}".po "${LANG}".po.old
	done
	for LANG in ${LINGUAS}; do
		mv "${LANG}".po.old "${LANG}".po
	done
}

src_compile() {
	local mycmakeargs
	# for paranoid users
	use pic && mycmakeargs="${mycmakeargs} -DKDE4_ENABLE_FPIE"

	kde4-base_src_compile
}