summaryrefslogtreecommitdiff
blob: 32b40a7828bedce688ff2d10391f7d8b868f265b (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.1_beta3.ebuild,v 1.5 2009/12/28 20:54:07 maekke Exp $

EAPI=2

KDE_DOC_DIRS="doc"
inherit kde4-base

MY_P=${P/_beta/b}

DESCRIPTION="A Latex Editor and TeX shell for kde"
HOMEPAGE="http://kile.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="amd64 ~hppa ppc64 x86"
SLOT="4"
IUSE="debug handbook +pdf +png"

RDEPEND="
	|| (
		>=kde-base/okular-${KDE_MINIMAL}[pdf?,ps]
		app-text/acroread
	)
	virtual/latex-base
	virtual/tex-base
	pdf? (
		app-text/dvipdfmx
		app-text/ghostscript-gpl
	)
	png? (
		app-text/dvipng
		media-gfx/imagemagick[png]
	)
"

S=${WORKDIR}/${MY_P}

src_prepare() {
	kde4-base_src_prepare
	# remove handbook
	sed -i \
		-e "/ADD_CUSTOM_TARGET/s/^/#DONOTINSTALL /" \
		CMakeLists.txt || die
	rm -rf doc/
}

src_configure() {
	mycmakeargs="
		-DKILE_VERSION=${PF/${PN}-/}
	"

	kde4-base_src_configure
}