Getting rid of gtk1 support (bug #106560)
authorPatrick Kursawe <phosphan@gentoo.org>
Tue, 20 Sep 2005 16:09:10 +0000 (16:09 +0000)
committerPatrick Kursawe <phosphan@gentoo.org>
Tue, 20 Sep 2005 16:09:10 +0000 (16:09 +0000)
Package-Manager: portage-2.0.51.22-r2

media-gfx/xsane/ChangeLog
media-gfx/xsane/Manifest
media-gfx/xsane/files/digest-xsane-0.97-r1 [new file with mode: 0644]
media-gfx/xsane/xsane-0.97-r1.ebuild [new file with mode: 0644]

index eda31aff0e6f285c4b4a32d06c49f1e28d167bf6..f76b116debb1b2548f1fd2b3c95b63002d99e75d 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for media-gfx/xsane
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.40 2005/09/13 17:49:14 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.41 2005/09/20 16:09:10 phosphan Exp $
+
+*xsane-0.97-r1 (20 Sep 2005)
+
+  20 Sep 2005; Patrick Kursawe <phosphan@gentoo.org> +xsane-0.97-r1.ebuild:
+  Getting rid of gtk1 support (bug #106560)
 
   13 Sep 2005; Aron Griffis <agriffis@gentoo.org> xsane-0.97.ebuild:
   Mark 0.97 stable on alpha
index 525e2cff84ee39f9459cff7aaf8cb8fb3c48deb5..fe47102896f2b680df20085b77e4c6cf7d200131 100644 (file)
@@ -1,4 +1,6 @@
+MD5 1ec14e1ee0ca39dda7b4e5633402ddaf xsane-0.97-r1.ebuild 1630
 MD5 8c5d4fdcaf6572134cefe867a24ae018 xsane-0.97.ebuild 1677
+MD5 6ae34fea270d96a514c3b684fafcf3a1 ChangeLog 5116
 MD5 1f00d52c238ab654e46144b458cb8090 metadata.xml 347
-MD5 e29734f1db538db6034049b184696d80 ChangeLog 4965
 MD5 918ef3f00d812af7c8417080ff4b8f75 files/digest-xsane-0.97 63
+MD5 918ef3f00d812af7c8417080ff4b8f75 files/digest-xsane-0.97-r1 63
diff --git a/media-gfx/xsane/files/digest-xsane-0.97-r1 b/media-gfx/xsane/files/digest-xsane-0.97-r1
new file mode 100644 (file)
index 0000000..d845c57
--- /dev/null
@@ -0,0 +1 @@
+MD5 3d1f889d88c3462594febd53be58c561 xsane-0.97.tar.gz 3199876
diff --git a/media-gfx/xsane/xsane-0.97-r1.ebuild b/media-gfx/xsane/xsane-0.97-r1.ebuild
new file mode 100644 (file)
index 0000000..61db7d7
--- /dev/null
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/xsane-0.97-r1.ebuild,v 1.1 2005/09/20 16:09:10 phosphan Exp $
+
+DESCRIPTION="graphical scanning frontend"
+HOMEPAGE="http://www.xsane.org/"
+SRC_URI="http://www.xsane.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="nls jpeg png tiff gimp"
+
+DEPEND="media-gfx/sane-backends
+       >=x11-libs/gtk+-2.0
+       jpeg? ( media-libs/jpeg )
+       png? ( media-libs/libpng )
+       tiff? ( media-libs/tiff )
+       gimp? ( media-gfx/gimp )"
+
+pkg_setup() {
+       export OLDXSANE
+       if has_version '<=media-gfx/xsane-0.93'; then
+               OLDXSANE="yes"
+       else
+               OLDXSANE="no"
+       fi
+}
+
+src_compile() {
+       econf --enable-gtk2 \
+               $(use_enable nls) \
+               $(use_enable jpeg) \
+               $(use_enable png) \
+               $(use_enable tiff) \
+               $(use_enable gimp) \
+               || die
+       emake || die
+}
+
+src_install() {
+       einstall || die
+       dodoc xsane.[A-Z]*
+       dohtml -r doc
+
+       # link xsane so it is seen as a plugin in gimp
+       if use gimp; then
+               local plugindir
+               if [ -x /usr/bin/gimptool ]; then
+                       plugindir="$(gimptool --gimpplugindir)/plug-ins"
+               elif [ -x /usr/bin/gimptool-2.0 ]; then
+                       plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins"
+               else
+                       die "Can't find GIMP plugin directory."
+               fi
+               dodir "${plugindir}"
+               dosym /usr/bin/xsane "${plugindir}"
+       fi
+}
+
+pkg_postinst() {
+       if [ $OLDXSANE = 'yes' ]; then
+               einfo ""
+               ewarn "If you are upgrading from <=xsane-0.93, please make sure to"
+               ewarn "remove ~/.sane/xsane/xsane.rc _before_ you start xsane for"
+               ewarn "the first time."
+               einfo ""
+       fi
+}