summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2005-12-05 08:39:50 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2005-12-05 08:39:50 +0000
commiteb99bd57a4aa567f37f93c02aab63d6354350ffb (patch)
tree9772052b4e93c21f8505f0cf4b1149df874da9be /media-gfx
parentStable on x86. (diff)
downloadhistorical-eb99bd57a4aa567f37f93c02aab63d6354350ffb.tar.gz
historical-eb99bd57a4aa567f37f93c02aab63d6354350ffb.tar.bz2
historical-eb99bd57a4aa567f37f93c02aab63d6354350ffb.zip
Little patch, equivalent of 0.98b. Supposed to fix some preview problems.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/xsane/ChangeLog8
-rw-r--r--media-gfx/xsane/Manifest5
-rw-r--r--media-gfx/xsane/files/0.98b.patch11
-rw-r--r--media-gfx/xsane/files/digest-xsane-0.98a-r11
-rw-r--r--media-gfx/xsane/xsane-0.98a-r1.ebuild77
5 files changed, 100 insertions, 2 deletions
diff --git a/media-gfx/xsane/ChangeLog b/media-gfx/xsane/ChangeLog
index 66dcc6ebd31b..449e694dcf6d 100644
--- a/media-gfx/xsane/ChangeLog
+++ b/media-gfx/xsane/ChangeLog
@@ -1,6 +1,12 @@
# 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.42 2005/11/30 07:20:39 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xsane/ChangeLog,v 1.43 2005/12/05 08:39:50 phosphan Exp $
+
+*xsane-0.98a-r1 (05 Dec 2005)
+
+ 05 Dec 2005; Patrick Kursawe <phosphan@gentoo.org> +files/0.98b.patch,
+ +xsane-0.98a-r1.ebuild:
+ Little patch, equivalent of 0.98b. Supposed to fix some preview problems.
*xsane-0.98a (30 Nov 2005)
diff --git a/media-gfx/xsane/Manifest b/media-gfx/xsane/Manifest
index 0e2be655826c..85b0f58d8cf5 100644
--- a/media-gfx/xsane/Manifest
+++ b/media-gfx/xsane/Manifest
@@ -1,8 +1,11 @@
+MD5 c94cbffc8b0d7b48130e1e67d29fe8a6 xsane-0.98a-r1.ebuild 1723
MD5 a4416ea123de82828b0caf78bdc0fb6d xsane-0.97-r1.ebuild 1634
MD5 56c10f08c157591519451f7a2a271c6d xsane-0.98a.ebuild 1632
MD5 0d9837fd281c0a06adf23414c6dc2e47 xsane-0.97.ebuild 1681
-MD5 ca62d69c7fd961ecdf88079b43417991 ChangeLog 5332
+MD5 972c32e29840b6a19d28a30eb3e5c7f0 ChangeLog 5539
MD5 1f00d52c238ab654e46144b458cb8090 metadata.xml 347
+MD5 5922362071da7ad02ab5957b25c40a73 files/0.98b.patch 707
MD5 918ef3f00d812af7c8417080ff4b8f75 files/digest-xsane-0.97 63
MD5 918ef3f00d812af7c8417080ff4b8f75 files/digest-xsane-0.97-r1 63
+MD5 6994739c50e135088e6a65d231c67230 files/digest-xsane-0.98a-r1 64
MD5 6994739c50e135088e6a65d231c67230 files/digest-xsane-0.98a 64
diff --git a/media-gfx/xsane/files/0.98b.patch b/media-gfx/xsane/files/0.98b.patch
new file mode 100644
index 000000000000..6614f7fd7944
--- /dev/null
+++ b/media-gfx/xsane/files/0.98b.patch
@@ -0,0 +1,11 @@
+--- src/xsane-front-gtk.h 2005-01-22 16:00:23.000000000 +0100
++++ src/xsane-front-gtk.h.new 2005-12-05 09:23:26.000000000 +0100
+@@ -35,7 +35,7 @@
+ extern int xsane_parse_options(char *options, char *argv[]);
+ extern void xsane_get_bounds(const SANE_Option_Descriptor *opt, double *minp, double *maxp);
+ extern double xsane_find_best_resolution(int well_known_option, double dpi);
+-extern int xsane_set_resolution(int well_known_option, double resolution);
++extern double xsane_set_resolution(int well_known_option, double resolution);
+ extern void xsane_set_all_resolutions(void);
+ extern void xsane_define_maximum_output_size();
+ extern void xsane_close_dialog_callback(GtkWidget *widget, gpointer data);
diff --git a/media-gfx/xsane/files/digest-xsane-0.98a-r1 b/media-gfx/xsane/files/digest-xsane-0.98a-r1
new file mode 100644
index 000000000000..fc3269cf979f
--- /dev/null
+++ b/media-gfx/xsane/files/digest-xsane-0.98a-r1
@@ -0,0 +1 @@
+MD5 fec674f4c2e7395a86c2e8211deb99f7 xsane-0.98a.tar.gz 2897623
diff --git a/media-gfx/xsane/xsane-0.98a-r1.ebuild b/media-gfx/xsane/xsane-0.98a-r1.ebuild
new file mode 100644
index 000000000000..a1769b5ff189
--- /dev/null
+++ b/media-gfx/xsane/xsane-0.98a-r1.ebuild
@@ -0,0 +1,77 @@
+# 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.98a-r1.ebuild,v 1.1 2005/12/05 08:39:50 phosphan Exp $
+
+inherit eutils
+
+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_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/0.98b.patch
+}
+
+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 [ x${OLDXSANE} = 'xyes' ]; 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
+}