blob: 04f46403337ab0e6ea78326fb4eb4706b7bf8f15 (
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
69
70
71
72
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.0.ebuild,v 1.4 2008/01/20 16:09:00 ranger Exp $
inherit kde
DESCRIPTION="A Latex Editor and TeX shell for kde"
HOMEPAGE="http://kile.sourceforge.net/"
SRC_URI="mirror://sourceforge/kile/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~hppa ppc ppc64 ~sparc ~x86"
IUSE="kde"
RDEPEND="dev-lang/perl
virtual/latex-base
dev-tex/latex2html
kde? ( || ( ( kde-base/kpdf
kde-base/kghostview
kde-base/kdvi
kde-base/kviewshell )
kde-base/kdegraphics ) )"
need-kde 3.5
LANGS="ar bg br ca cs cy da de el en_GB es et eu fi fr ga gl hi hu is it ja lt ms mt nb
nds nl nn pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta th tr uk zh_CN"
for lang in ${LANGS}; do
IUSE="${IUSE} linguas_${lang}"
done
PATCHES="${FILESDIR}/${P}-desktopentry.patch"
src_unpack() {
kde_src_unpack
if [[ -n ${LINGUAS} ]]; then
MAKE_TRANSL=$(echo $(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d))
sed -i -e "s:^SUBDIRS.*=.*:SUBDIRS = ${MAKE_TRANSL}:" "${S}/translations/Makefile.am" || die "sed for locale failed"
rm -f "${S}/configure"
fi
}
src_install() {
kde_src_install
dodoc AUTHORS ChangeLog README README.cwl README.MacOSX TODO || die "installing docs failed"
}
pkg_postinst() {
echo
elog "${P} can use the following optional tools:"
elog "- Adobe Reader (PDF Viewer) - app-text/acroread"
elog "- DVIPNG (PNG previews) - app-text/dvipng"
elog "- ImageMagick (PNG previews) - media-gfx/imagemagick"
elog "- zip (Archive) - app-arch/zip"
elog "- DBlatex (Docbook to LaTeX) - cf. Gentoo bug 129368"
elog "- Asymptote - media-gfx/asymptote"
elog "- Tex4ht (LaTeX to Web) - dev-tex/tex4ht"
elog "- Lilypond (Music Typesetting) - media-sound/lilypond"
elog "- Web-Browser (either of) - kde-base/konqueror"
elog " - www-client/mozilla-firefox"
elog " - www-client/seamonkey"
elog "For viewing BibTeX files:"
elog "- Kbibtex - app-text/kbibtex"
elog "- KBib - cf. Gentoo bug 147057"
elog "- JabRef - app-text/jabref"
elog "- pybliographer - app-office/pybliographer"
echo
elog "If you want to use either of these, please install them separately."
}
|