blob: 61e7f6460b9a2fe3e06d65ba23c24081443dc13e (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-1.8.1.ebuild,v 1.4 2005/07/17 11:48:10 dertobi123 Exp $
inherit kde
MY_P="${P/_beta/b}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A Latex Editor and TeX shell for kde"
HOMEPAGE="http://kile.sourceforge.net/"
SRC_URI="mirror://sourceforge/kile/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="~amd64 ppc sparc x86"
IUSE="kde"
RDEPEND="dev-lang/perl
virtual/tetex
kde? ( || ( ( kde-base/kpdf
kde-base/kghostview
kde-base/kdvi
kde-base/kviewshell )
kde-base/kdegraphics ) )"
need-kde 3.2
I18N="${PN}-i18n-1.7"
# These are the languages and translated documentation supported by the Kile
# i18n package as of version 1.7. If you are using this ebuild as a model for another
# ebuild for another version of Kile, DO check whether these values are different.
# Check the {po,doc}/Makefile.am files in kile-i18n package.
LANGS="da de en_GB es et fr hu it nl pt pt_BR sr sv ta"
LANGS_DOC="da es et fr it nl pt pt_BR sv"
MAKE_PO=$(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d | fmt -w 10000)
MAKE_DOC=$(echo "${LINGUAS} ${LANGS_DOC}" | fmt -w 1 | sort | uniq -d | fmt -w 10000)
for X in $LANGS; do
SRC_URI="${SRC_URI} linguas_${X}? ( mirror://sourceforge/kile/${I18N}.tar.bz2 )"
done
src_compile() {
local _S=${S}
# Build process of Kile
kde_src_compile
# Build process of Kile-i18n, select LINGUAS elements
S=${WORKDIR}/${I18N}
if [ -n "${LINGUAS}" -a -d "${S}" ] ; then
sed -i -e "s:^SUBDIRS = .*:SUBDIRS = ${MAKE_PO}:" ${S}/po/Makefile.in
sed -i -e "s:^SUBDIRS = .*:SUBDIRS = ${MAKE_DOC}:" ${S}/doc/Makefile.in
kde_src_compile
fi
S=${_S}
}
src_install() {
make DESTDIR=${D} install || die
if [ -n "${LINGUAS}" -a -d "${WORKDIR}/${I18N}" ]; then
cd ${WORKDIR}/${I18N}
make DESTDIR=${D} install || die
fi
}
|