From 93cd70d7559a8d9194cbda6bd79efa025425c49d Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 24 Apr 2006 19:15:56 +0000 Subject: Fix check for ghostscript built with X. Thanks to Andrei Ivanov in bug #131122. Package-Manager: portage-2.1_pre9-r4 --- kde-base/kghostview/ChangeLog | 6 +++++- kde-base/kghostview/kghostview-3.5.2.ebuild | 14 ++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'kde-base/kghostview') diff --git a/kde-base/kghostview/ChangeLog b/kde-base/kghostview/ChangeLog index 1afdfd7ac902..d4bdf8106aec 100644 --- a/kde-base/kghostview/ChangeLog +++ b/kde-base/kghostview/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for kde-base/kghostview # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kghostview/ChangeLog,v 1.43 2006/04/09 16:48:39 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kghostview/ChangeLog,v 1.44 2006/04/24 19:15:56 flameeyes Exp $ + + 24 Apr 2006; Diego Pettenò + kghostview-3.5.2.ebuild: + Fix check for ghostscript built with X. Thanks to Andrei Ivanov in bug #131122. 09 Apr 2006; Diego Pettenò kghostview-3.5.2.ebuild: diff --git a/kde-base/kghostview/kghostview-3.5.2.ebuild b/kde-base/kghostview/kghostview-3.5.2.ebuild index 7e75bc0bfe1e..c0788a82848d 100644 --- a/kde-base/kghostview/kghostview-3.5.2.ebuild +++ b/kde-base/kghostview/kghostview-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/kghostview/kghostview-3.5.2.ebuild,v 1.4 2006/04/09 16:48:39 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kghostview/kghostview-3.5.2.ebuild,v 1.5 2006/04/24 19:15:56 flameeyes Exp $ KMNAME=kdegraphics MAXKDEVER=$PV @@ -15,9 +15,11 @@ RDEPEND="virtual/ghostscript" KMEXTRA="kfile-plugins/ps" 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 } -- cgit v1.2.3-65-gdbad