diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2004-05-10 07:17:04 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2004-05-10 07:17:04 +0000 |
commit | 20c4229160c1c5cec28e79e7659aa7116da97912 (patch) | |
tree | 0e6bb43f035385b7856086fd88c309d9374a00d1 /media-gfx/sane-backends | |
parent | Adding missing libglade dependency (see bug #50451) (Manifest recommit) (diff) | |
download | gentoo-2-20c4229160c1c5cec28e79e7659aa7116da97912.tar.gz gentoo-2-20c4229160c1c5cec28e79e7659aa7116da97912.tar.bz2 gentoo-2-20c4229160c1c5cec28e79e7659aa7116da97912.zip |
Some little fixes for bug #49815
Diffstat (limited to 'media-gfx/sane-backends')
-rw-r--r-- | media-gfx/sane-backends/ChangeLog | 9 | ||||
-rw-r--r-- | media-gfx/sane-backends/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r2 | 2 | ||||
-rw-r--r-- | media-gfx/sane-backends/files/libusbscanner-device.patch | 17 | ||||
-rw-r--r-- | media-gfx/sane-backends/sane-backends-1.0.14-r2.ebuild | 87 |
5 files changed, 117 insertions, 1 deletions
diff --git a/media-gfx/sane-backends/ChangeLog b/media-gfx/sane-backends/ChangeLog index 827b4952b38b..ff56d43a535e 100644 --- a/media-gfx/sane-backends/ChangeLog +++ b/media-gfx/sane-backends/ChangeLog @@ -1,6 +1,13 @@ # 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.34 2004/05/06 13:15:54 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.35 2004/05/10 07:17:04 phosphan Exp $ + +*sane-backends-1.0.14-r2 (10 May 2004) + + 10 May 2004; Patrick Kursawe <phosphan@gentoo.org> + sane-backends-1.0.14-r2.ebuild, files/libusbscanner-device.patch: + Some little fixes for bug #49815 (added scanner group, made script executable, + added device variable workaround) *sane-backends-1.0.14-r1 (06 May 2004) diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest index c548b6f847ae..55aa50c568d7 100644 --- a/media-gfx/sane-backends/Manifest +++ b/media-gfx/sane-backends/Manifest @@ -3,16 +3,19 @@ MD5 776d5d6991d3116fe6aebaf58f7ec373 sane-backends-1.0.13.ebuild 1334 MD5 ef7977957f713021006c126cea468bcb sane-backends-1.0.12-r2.ebuild 1949 MD5 6a619352d6713a066391a2f72a4eaa2e sane-backends-1.0.13-r1.ebuild 1528 MD5 d7ba0173d2aadb285b022cbb18de9fee sane-backends-1.0.13-r3.ebuild 1726 +MD5 2c6ebdd24e50b27f12b169705a8d3ae4 sane-backends-1.0.14-r2.ebuild 2096 MD5 48cea6f7e5d6e35a763664f7e42ad86d sane-backends-1.0.14.ebuild 1757 MD5 3c271e30b38e0577aed279bb021288c8 sane-backends-1.0.13-r2.ebuild 1729 MD5 b89d7e5648d7ba95e89bfa0e23ccbd77 ChangeLog 6350 MD5 e3010e884705ab9dfe82a3663438d36b metadata.xml 383 MD5 365f695ec2c079ac06dd5bbf495f87ce files/linux_sg3_err.h 4894 +MD5 404e59bd083308163c10a0cc2a442c79 files/libusbscanner-device.patch 596 MD5 026dc517ef9d45268cd506ec83519a0e files/canoscan-focus.patch 472 MD5 40af2cfe060d09555e45986b2b6b98bd files/digest-sane-backends-1.0.12-r2 143 MD5 45cd2fdeb9fb53db4b301d508ee8e8b5 files/digest-sane-backends-1.0.13-r1 73 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 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-r2 b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r2 new file mode 100644 index 000000000000..3249e577723f --- /dev/null +++ b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r2 @@ -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/files/libusbscanner-device.patch b/media-gfx/sane-backends/files/libusbscanner-device.patch new file mode 100644 index 000000000000..1cbcea34a885 --- /dev/null +++ b/media-gfx/sane-backends/files/libusbscanner-device.patch @@ -0,0 +1,17 @@ +--- tools/hotplug/libusbscanner 2004-05-10 08:28:34.537782880 +0200 ++++ libusbscanner.new 2004-05-10 08:32:05.998691893 +0200 +@@ -13,6 +13,14 @@ + # DEVICE=/proc/bus/usb/BBB/DDD + # TYPE=usb + ++ ++if [ -z "$DEVICE" ] ; then ++ IF=$(echo $DEVPATH | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\2:') ++ DEV=$(echo $DEVPATH | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\3:') ++ DEV=$(expr $DEV + 1) ++ DEVICE=$(printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV) ++fi ++ + if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then + chown root:scanner "$DEVICE" + chmod 0660 "$DEVICE" diff --git a/media-gfx/sane-backends/sane-backends-1.0.14-r2.ebuild b/media-gfx/sane-backends/sane-backends-1.0.14-r2.ebuild new file mode 100644 index 000000000000..b1d600d5d277 --- /dev/null +++ b/media-gfx/sane-backends/sane-backends-1.0.14-r2.ebuild @@ -0,0 +1,87 @@ +# 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-r2.ebuild,v 1.1 2004/05/10 07:17:04 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 \ + --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 + +} |