blob: 32fda5906532c12aad7079073e1f68921865da39 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.7-r3.ebuild,v 1.7 2007/12/25 13:02:17 carlo Exp $
KMNAME=kdegraphics
MAXKDEVER=$PV
KM_DEPRANGE="$PV $MAXKDEVER"
inherit kde-meta flag-o-matic
DESCRIPTION="kpdf, a kde pdf viewer based on xpdf"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
KMEXTRA="kfile-plugins/pdf"
DEPEND=">=media-libs/freetype-2.0.5
media-libs/t1lib
>=app-text/poppler-0.6.1
>=app-text/poppler-bindings-0.6.1"
RDEPEND="${DEPEND}
$(deprange-dual $PV $MAXKDEVER kde-base/kdeprint)"
PATCHES="${FILESDIR}/post-3.5.7-kdegraphics-CVE-2007-3387.diff
${FILESDIR}/${P}-hash_path.diff
${FILESDIR}/post-3.5.8-kdegraphics-kpdf.diff"
pkg_setup() {
kde_pkg_setup
# check for qt still until it had a revision bump in both ~arch and stable.
if ! built_with_use app-text/poppler-bindings qt3; then
eerror "This package requires app-text/poppler-bindings compiled with Qt 3.x support."
eerror "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
die "Please reemerge app-text/poppler-bindings with USE=\"qt3\"."
fi
}
src_unpack() {
kde-meta_src_unpack
# Fixing the desktop file
sed -i -e "s:^\(MimeType=.*\):&;:" "${S}"/kpdf/shell/kpdf.desktop \
|| die "Desktop file fix 1 failed"
sed -i -e "s:^\(Categories=.*\)\(PDFViewer\):\1X-\2:" "${S}"/kpdf/shell/kpdf.desktop \
|| die "Desktop file fix 2 failed"
}
src_compile() {
local myconf="--with-poppler"
replace-flags "-Os" "-O2" # see bug 114822
kde-meta_src_compile
}
|