summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-24 19:14:44 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-24 19:14:44 +0000
commit52a76cd21ff75d1868777dde2070c67afa25493c (patch)
tree53ce9e1b0b07a9dbcf3444b2177c787809397b00 /kde-base/kdegraphics
parentsort KEYWORDS (diff)
downloadgentoo-2-52a76cd21ff75d1868777dde2070c67afa25493c.tar.gz
gentoo-2-52a76cd21ff75d1868777dde2070c67afa25493c.tar.bz2
gentoo-2-52a76cd21ff75d1868777dde2070c67afa25493c.zip
Fix check for ghostscript built with X. Thanks to Andrei Ivanov in bug #131122.
(Portage version: 2.1_pre9-r4)
Diffstat (limited to 'kde-base/kdegraphics')
-rw-r--r--kde-base/kdegraphics/ChangeLog6
-rw-r--r--kde-base/kdegraphics/kdegraphics-3.5.2.ebuild16
2 files changed, 14 insertions, 8 deletions
diff --git a/kde-base/kdegraphics/ChangeLog b/kde-base/kdegraphics/ChangeLog
index b7c6df05d68b..382bfedc4feb 100644
--- a/kde-base/kdegraphics/ChangeLog
+++ b/kde-base/kdegraphics/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for kde-base/kdegraphics
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdegraphics/ChangeLog,v 1.246 2006/04/05 22:57:59 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdegraphics/ChangeLog,v 1.247 2006/04/24 19:14:44 flameeyes Exp $
+
+ 24 Apr 2006; Diego Pettenò <flameeyes@gentoo.org>
+ kdegraphics-3.5.2.ebuild:
+ Fix check for ghostscript built with X. Thanks to Andrei Ivanov in bug #131122.
05 Apr 2006; Diego Pettenò <flameeyes@gentoo.org>
-files/kpdf-3.5.0-cropbox-fix.patch,
diff --git a/kde-base/kdegraphics/kdegraphics-3.5.2.ebuild b/kde-base/kdegraphics/kdegraphics-3.5.2.ebuild
index 39bd35170b7b..fa7e85ffc394 100644
--- a/kde-base/kdegraphics/kdegraphics-3.5.2.ebuild
+++ b/kde-base/kdegraphics/kdegraphics-3.5.2.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/kdegraphics/kdegraphics-3.5.2.ebuild,v 1.2 2006/03/27 19:42:23 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdegraphics/kdegraphics-3.5.2.ebuild,v 1.3 2006/04/24 19:14:44 flameeyes Exp $
inherit kde-dist eutils
@@ -42,13 +42,15 @@ SRC_URI="${SRC_URI}
PATCHES="${DISTDIR}/kpdf-${PV}-poppler.patch.bz2"
pkg_setup() {
- if ! built_with_use virtual/ghostscript X; then
- eerror "This package requires virtual/ghostscript compiled with X11 support."
- eerror "Please reemerge virtual/ghostscript with USE=\"X\"."
- die "Please reemerge virtual/ghostscript with USE=\"X\"."
- fi
+ for ghostscript in app-text/ghostscript-{gnu,esp,afpl}; do
+ if has_version ${ghostscript} && !built_with_use ${ghostscript} X; then
+ eerror "This package requires ${ghostscript} compiled with X11 support."
+ eerror "Please reemerge ${ghostscript} with USE=\"X\"."
+ die "Please reemerge ${ghostscript} with USE=\"X\"."
+ fi
+ done
if use pdf && ! built_with_use app-text/poppler-bindings qt; then
- eerror "This package requires app-text/poppler-bindings compiled with Qt support."
+ 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