summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-05-11 15:47:14 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-05-11 15:47:14 +0000
commitd748dd467fac08664af22afe1e5d5ffefeebcac9 (patch)
tree7109d9c93ee86c58d891e8d36cf55dd4979ad1b7
parentchanged comments to be more descriptive (diff)
downloadgentoo-2-d748dd467fac08664af22afe1e5d5ffefeebcac9.tar.gz
gentoo-2-d748dd467fac08664af22afe1e5d5ffefeebcac9.tar.bz2
gentoo-2-d748dd467fac08664af22afe1e5d5ffefeebcac9.zip
Adding parport directio support
-rw-r--r--media-gfx/sane-backends/ChangeLog8
-rw-r--r--media-gfx/sane-backends/Manifest2
-rw-r--r--media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r32
-rw-r--r--media-gfx/sane-backends/sane-backends-1.0.14-r3.ebuild88
4 files changed, 99 insertions, 1 deletions
diff --git a/media-gfx/sane-backends/ChangeLog b/media-gfx/sane-backends/ChangeLog
index ff56d43a535e..445207c93fe7 100644
--- a/media-gfx/sane-backends/ChangeLog
+++ b/media-gfx/sane-backends/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/sane-backends
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.35 2004/05/10 07:17:04 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.36 2004/05/11 15:47:14 phosphan Exp $
+
+*sane-backends-1.0.14-r3 (11 May 2004)
+
+ 11 May 2004; Patrick Kursawe <phosphan@gentoo.org>
+ sane-backends-1.0.14-r3.ebuild:
+ Adding parport direct io support
*sane-backends-1.0.14-r2 (10 May 2004)
diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest
index b68a77619e95..8839e91873d8 100644
--- a/media-gfx/sane-backends/Manifest
+++ b/media-gfx/sane-backends/Manifest
@@ -1,6 +1,7 @@
MD5 e1409b30dc77729b44369c728a056abe sane-backends-1.0.14-r1.ebuild 1994
MD5 776d5d6991d3116fe6aebaf58f7ec373 sane-backends-1.0.13.ebuild 1334
MD5 ef7977957f713021006c126cea468bcb sane-backends-1.0.12-r2.ebuild 1949
+MD5 586d49128af4fa591f711bd385b7795c sane-backends-1.0.14-r3.ebuild 2190
MD5 6a619352d6713a066391a2f72a4eaa2e sane-backends-1.0.13-r1.ebuild 1528
MD5 d7ba0173d2aadb285b022cbb18de9fee sane-backends-1.0.13-r3.ebuild 1726
MD5 d45fc67882b41fb4216736e05e68a067 sane-backends-1.0.14-r2.ebuild 2160
@@ -17,5 +18,6 @@ MD5 aaa487bfd9548bb623e44db14bce3d0e files/digest-sane-backends-1.0.13-r2 157
MD5 01607471a4380f74f7b9da650e5ca5ad files/digest-sane-backends-1.0.13-r3 160
MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14-r1 160
MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14-r2 160
+MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14-r3 160
MD5 45cd2fdeb9fb53db4b301d508ee8e8b5 files/digest-sane-backends-1.0.13 73
MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14 160
diff --git a/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3 b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3
new file mode 100644
index 000000000000..3249e577723f
--- /dev/null
+++ b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3
@@ -0,0 +1,2 @@
+MD5 7ae5bf91aea34ef7956df6f53cf073bd sane-backends-1.0.14.tar.gz 3198777
+MD5 643de6a8321df8ef561170610b91b538 sane-backends-1.0.13-brothermfc-r1.patch.bz2 9727
diff --git a/media-gfx/sane-backends/sane-backends-1.0.14-r3.ebuild b/media-gfx/sane-backends/sane-backends-1.0.14-r3.ebuild
new file mode 100644
index 000000000000..d79786dbfea3
--- /dev/null
+++ b/media-gfx/sane-backends/sane-backends-1.0.14-r3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.14-r3.ebuild,v 1.1 2004/05/11 15:47:14 phosphan Exp $
+
+inherit eutils
+
+IUSE="usb gphoto2"
+
+DESCRIPTION="Scanner Access Now Easy - Backends"
+HOMEPAGE="http://www.mostang.com/sane/"
+
+DEPEND=">=media-libs/jpeg-6b
+ x86? ( sys-libs/libieee1284 )
+ =sys-apps/sed-4*
+ usb? ( dev-libs/libusb )
+ gphoto2? ( media-gfx/gphoto2 )"
+
+BROTHERMFCDRIVER="sane-backends-1.0.13-brothermfc-r1.patch"
+
+SRC_URI="ftp://ftp.mostang.com/pub/sane/${P}/${P}.tar.gz
+ ftp://ftp.mostang.com/pub/sane/old-versions/${P}/${P}.tar.gz
+ usb? ( mirror://gentoo/${BROTHERMFCDRIVER}.bz2 )"
+SLOT="0"
+LICENSE="GPL-2 public-domain"
+KEYWORDS="~x86"
+
+
+src_unpack() {
+ unpack ${A}
+ use usb && unpack ${BROTHERMFCDRIVER}.bz2
+ cp ${FILESDIR}/linux_sg3_err.h ${S}/sanei
+
+ cd ${S}
+
+ #only generate the .ps and not the fonts
+ sed -i -e 's:$(DVIPS) sane.dvi -o sane.ps:$(DVIPS) sane.dvi -M1 -o sane.ps:' \
+ doc/Makefile.in
+ #compile errors when using NDEBUG otherwise
+ sed -i -e 's:function_name:__FUNCTION__:g' backend/artec_eplus48u.c
+ use usb && epatch ${WORKDIR}/${BROTHERMFCDRIVER}
+ use usb && epatch ${FILESDIR}/libusbscanner-device.patch
+}
+
+src_compile() {
+ local myconf
+ myconf="$(use_enable usb libusb) $(use_with gphoto2)"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --enable-parport-directio \
+ --host=${CHOST} ${myconf} || die
+ make || die
+ if use usb; then
+ cd tools/hotplug
+ grep < libsane.usermap -v '^$' > libsane.usermap.new
+ mv libsane.usermap.new libsane.usermap
+ fi
+}
+
+src_install () {
+
+ enewgroup scanner
+
+ make prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ mandir=${D}/usr/share/man \
+ docdir=${D}/usr/share/doc/${PF} \
+ install || die
+
+ if use usb; then
+ cd tools/hotplug
+ insinto /etc/hotplug/usb
+ exeinto /etc/hotplug/usb
+ doins libsane.usermap
+ doexe libusbscanner
+ newdoc README README.hotplug
+ cd ../..
+ fi
+
+ docinto backend
+ cd backend
+ dodoc GUIDE *.README *.BUGS *.CHANGES *.FAQ *.TODO
+
+ echo "SANE_CONFIG_DIR=/etc/sane.d" > 30sane
+ insinto /etc/env.d
+ doins 30sane
+
+}