summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/kpdf/kpdf-3.5.1-r2.ebuild')
-rw-r--r--kde-base/kpdf/kpdf-3.5.1-r2.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/kde-base/kpdf/kpdf-3.5.1-r2.ebuild b/kde-base/kpdf/kpdf-3.5.1-r2.ebuild
index 17edf66d6c31..435a4a49959e 100644
--- a/kde-base/kpdf/kpdf-3.5.1-r2.ebuild
+++ b/kde-base/kpdf/kpdf-3.5.1-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.1-r2.ebuild,v 1.5 2006/03/05 16:19:20 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kpdf/kpdf-3.5.1-r2.ebuild,v 1.6 2006/03/05 19:25:13 flameeyes Exp $
KMNAME=kdegraphics
MAXKDEVER=$PV
@@ -18,7 +18,8 @@ DEPEND=">=media-libs/freetype-2.0.5
>=app-text/poppler-bindings-0.5.0"
SRC_URI="${SRC_URI}
- mirror://gentoo/${P}-poppler-2.patch.bz2"
+ mirror://gentoo/${P}-poppler-2.patch.bz2
+ mirror://gentoo/kpdf-${PV}-poppler-0.5.1-bis.patch.bz2"
PATCHES="${FILESDIR}/${P}-saveas.patch
${DISTDIR}/${P}-poppler-2.patch.bz2"
@@ -31,6 +32,14 @@ pkg_setup() {
fi
}
+src_unpack() {
+ kde-meta_src_unpack
+
+ # Lovely when libraries changes API in micro releases.
+ has_version ">=app-text/poppler-0.5.1" && \
+ epatch "${DISTDIR}/kpdf-${PV}-poppler-0.5.1-bis.patch.bz2"
+}
+
src_compile() {
local myconf="--with-poppler"
replace-flags "-Os" "-O2" # see bug 114822