Gentoo Archives: gentoo-commits

From: "Wulf Krueger (philantrop)" <philantrop@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/okular: okular-4.0.1.ebuild
Date: Thu, 07 Feb 2008 00:12:59
Message-Id: E1JMuNt-0000Pi-1Z@stork.gentoo.org
1 philantrop 08/02/07 00:12:57
2
3 Added: okular-4.0.1.ebuild
4 Log:
5 Version bump to KDE 4.0.1.
6 (Portage version: 2.1.4.1)
7
8 Revision Changes Path
9 1.1 kde-base/okular/okular-4.0.1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/okular/okular-4.0.1.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/okular/okular-4.0.1.ebuild?rev=1.1&content-type=text/plain
13
14 Index: okular-4.0.1.ebuild
15 ===================================================================
16 # Copyright 1999-2008 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/kde-base/okular/okular-4.0.1.ebuild,v 1.1 2008/02/07 00:12:56 philantrop Exp $
19
20 EAPI="1"
21
22 KMNAME=kdegraphics
23 inherit kde4-meta
24
25 DESCRIPTION="Okular is an universal document viewer based on KPDF for KDE 4."
26 KEYWORDS="~amd64 ~x86"
27 IUSE="chm debug djvu htmlhandbook jpeg pdf tiff"
28
29 RDEPEND=">=app-text/libspectre-0.2
30 media-libs/freetype
31 kde-base/qimageblitz
32 chm? ( app-doc/chmlib )
33 djvu? ( >=app-text/djvu-3.5.17 )
34 jpeg? ( media-libs/jpeg )
35 pdf? ( >=app-text/poppler-0.5.4
36 >=app-text/poppler-bindings-0.5.4 )
37 tiff? ( media-libs/tiff )"
38 DEPEND="${RDEPEND}
39 dev-util/pkgconfig"
40
41 PATCHES="${FILESDIR}/${KMNAME}-${PV}-system-libspectre.patch"
42
43 pkg_setup() {
44 if use pdf; then
45 KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
46 app-text/poppler-bindings qt4"
47 fi
48 kde4-meta_pkg_setup
49 }
50
51 src_compile() {
52 # remove internal copy of libspectre
53 rm -r "${S}"/okular/generators/spectre/libspectre || \
54 die "Failed to remove internal copy of libspectre."
55
56 mycmakeargs="${mycmakeargs}
57 $(cmake-utils_use_with chm CHM)
58 $(cmake-utils_use_with djvu DjVuLibre)
59 $(cmake-utils_use_with jpeg JPEG)
60 $(cmake-utils_use_with pdf PopplerQt4)
61 $(cmake-utils_use_with pdf Poppler)
62 $(cmake-utils_use_with tiff TIFF)"
63
64 kde4-meta_src_compile
65 }
66
67
68
69 --
70 gentoo-commits@l.g.o mailing list