blob: 017510560de285dcfe79ee46b4897692fafb2b1f (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.10-r1.ebuild,v 1.5 2009/10/10 18:21:58 armin76 Exp $
EAPI="1"
KMNAME=kdegraphics
inherit kde-meta flag-o-matic
SRC_URI="${SRC_URI}
mirror://gentoo/${P}-JBIG2.tar.bz2"
DESCRIPTION="kpdf, a kde pdf viewer based on xpdf"
KEYWORDS="~alpha amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
IUSE=""
KMEXTRA="kfile-plugins/pdf"
DEPEND=">=media-libs/freetype-2.3
media-libs/t1lib
>=virtual/poppler-qt3-0.6.1"
RDEPEND="${DEPEND}
|| ( >=kde-base/kdeprint-${PV}:${SLOT} >=kde-base/kdebase-${PV}:${SLOT} )"
PATCHES=( "${FILESDIR}/kde-CVE-2009-1188.patch"
"${WORKDIR}/${P}-JBIG2.patch"
"${FILESDIR}/${P}-font-hiding.patch" )
src_compile() {
local myconf="--with-poppler"
replace-flags "-Os" "-O2" # see bug 114822
# Fix the desktop file.
sed -i -e "s:PDFViewer;:Viewer;:" "${S}/kpdf/shell/kpdf.desktop"
kde-meta_src_compile
}
|