summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild')
-rw-r--r--media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild
index 8c1ad39b3dee..b037ee4c96ea 100644
--- a/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild,v 1.8 2005/05/30 13:03:48 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-frontends/sane-frontends-1.0.13.ebuild,v 1.9 2005/05/31 05:57:46 phosphan Exp $
DESCRIPTION="Scanner Access Now Easy"
HOMEPAGE="http://www.sane-project.org"
@@ -26,14 +26,23 @@ src_compile() {
}
src_install() {
+ local gimpplugindir
+ local gimptool
einstall datadir=${D}/usr/share/misc || die
if use gimp; then
- einfo "Setting plugin link for GIMP version $(gimptool --version)"
-
- gimpplugindir=$(/usr/bin/gimptool --gimpplugindir)/plug-ins
-
- dodir ${gimpplugindir}
- dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage
+ for gimptool in gimptool gimptool-2.0 gimptool-1.2; do
+ if [ -x /usr/bin/${gimptool} ]; then
+ einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)"
+ gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins
+ break
+ fi
+ done
+ if [ "/plug-ins" != "${gimpplugindir}" ]; then
+ dodir ${gimpplugindir}
+ dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage
+ else
+ ewarn "No idea where to find the gimp plugin directory"
+ fi
fi
- dodoc AUTHORS Changelog NEWS PROBLEMS README TODO
+ dodoc AUTHORS Changelog NEWS PROBLEMS README
}