blob: ceca4a82a1b9076112c3324f8012c6eb0d1b04ca (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/kding/kding-0.4.1.ebuild,v 1.1 2007/09/26 20:36:10 tgurr Exp $
inherit eutils kde
DESCRIPTION="KDing is a KDE port of Ding, a dictionary lookup program."
HOMEPAGE="http://www.rexi.org/software/kding/"
SRC_URI="http://www.rexi.org/downloads/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
need-kde 3.5
LANGS="de"
LANGS_DOC="de en"
for X in ${LANGS} ${LANGS_DOC} ; do
IUSE="${IUSE} linguas_${X}"
done
src_unpack() {
kde_src_unpack
cd "${S}"
epatch "${FILESDIR}/${P}-desktopentry.patch"
epatch "${FILESDIR}/${P}-appsdir.patch"
epatch "${FILESDIR}/${P}-localization-de.patch"
local MAKE_LANGS
cd "${WORKDIR}/${P}/po"
for X in ${LANGS} ; do
use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X}.po"
done
sed -i -e "s:POFILES =.*:POFILES = ${MAKE_LANGS}:" Makefile.am
MAKE_LANGS=""
cd "${WORKDIR}/${P}/doc"
for X in ${LANGS_DOC} ; do
use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X}"
done
sed -i -e "s:SUBDIRS =.*:SUBDIRS = ${MAKE_LANGS}:" Makefile.am
rm -f "${S}"/configure
}
|