From 3f0dfa4462fafdd5a48d8ea885ec142b6d09af89 Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Tue, 17 Apr 2007 23:16:01 +0000 Subject: Use type -P instead of which. Fixes bug #174176. (Portage version: 2.1.2.3) --- app-text/pdftk/ChangeLog | 5 ++++- app-text/pdftk/pdftk-1.12.ebuild | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'app-text/pdftk') diff --git a/app-text/pdftk/ChangeLog b/app-text/pdftk/ChangeLog index 39348b0a171e..556b23b6af91 100644 --- a/app-text/pdftk/ChangeLog +++ b/app-text/pdftk/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-text/pdftk # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.22 2007/04/17 23:12:53 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.23 2007/04/17 23:16:01 betelgeuse Exp $ + + 17 Apr 2007; Petteri Räty pdftk-1.12.ebuild: + Use type -P instead of which. Fixes bug #174176. 17 Apr 2007; Petteri Räty metadata.xml, pdftk-1.12.ebuild: diff --git a/app-text/pdftk/pdftk-1.12.ebuild b/app-text/pdftk/pdftk-1.12.ebuild index b202d8c5fb80..5735cfc2965e 100644 --- a/app-text/pdftk/pdftk-1.12.ebuild +++ b/app-text/pdftk/pdftk-1.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.12.ebuild,v 1.12 2007/04/17 23:12:53 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.12.ebuild,v 1.13 2007/04/17 23:16:01 betelgeuse Exp $ inherit eutils @@ -16,8 +16,8 @@ DEPEND=">=sys-devel/gcc-3.3" S=${WORKDIR}/${P}/${PN} pkg_setup() { - if [ -z "$(which gcj 2>/dev/null)" ]; then - eerror "It seems that your system doesn't provides a Java compiler." + if [ -z "$(type -P gcj 2>/dev/null)" ]; then + eerror 'It seems that gcj is not in ${PATH}.' eerror "Re-emerge sys-devel/gcc with \"gcj\" enabled." die "gcj not found." fi -- cgit v1.2.3-65-gdbad