# 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.4.3-r4.ebuild,v 1.10 2006/06/27 20:54:20 genstef Exp $ KMNAME=kdegraphics MAXKDEVER=$PV KM_DEPRANGE="$PV $MAXKDEVER" inherit kde-meta DESCRIPTION="kpdf, a kde pdf viewer based on xpdf" KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" IUSE="nodrm" KMEXTRA="kfile-plugins/pdf" DEPEND=">=media-libs/freetype-2.0.5 media-libs/t1lib" RDEPEND="${DEPEND} app-text/poppler" # kfile-plugins/pdf depends on "pdfinfo" PATCHES="${FILESDIR}/post-3.4.3-kdegraphics-CAN-2005-3193.diff ${FILESDIR}/post-3.4.3-kdegraphics-CVE-2006-0301.diff" 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 qt && \ ! built_with_use app-text/poppler-bindings qt3; then eerror "This package requires app-text/poppler-bindings compiled with Qt support." eerror "Please reemerge app-text/poppler-bindings with USE=\"qt\"." die "Please reemerge app-text/poppler-bindings with USE=\"qt\"." fi } src_compile() { myconf="${myconf} $(use_enable !nodrm kpdf-drm)" kde-meta_src_compile }