diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2004-09-22 13:37:25 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2004-09-22 13:37:25 +0000 |
commit | 74606515d71411506061d8dc598da0756d61ef10 (patch) | |
tree | f886853246c52e01788bb5b44b6ba3ceeecf72da /media-gfx | |
parent | Change mono mask to only mask the NPTL enabled mono (diff) | |
download | gentoo-2-74606515d71411506061d8dc598da0756d61ef10.tar.gz gentoo-2-74606515d71411506061d8dc598da0756d61ef10.tar.bz2 gentoo-2-74606515d71411506061d8dc598da0756d61ef10.zip |
Fixing #64376
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/sane-backends/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/sane-backends/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r6 | 3 | ||||
-rw-r--r-- | media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild | 111 |
4 files changed, 123 insertions, 1 deletions
diff --git a/media-gfx/sane-backends/ChangeLog b/media-gfx/sane-backends/ChangeLog index 670de6801c8e..67ef10256253 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 Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.48 2004/08/30 17:58:50 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.49 2004/09/22 13:37:25 phosphan Exp $ + +*sane-backends-1.0.14-r6 (22 Sep 2004) + + 22 Sep 2004; Patrick Kursawe <phosphan@gentoo.org> + +sane-backends-1.0.14-r6.ebuild: + Using ipv6 USE flag now, see bug #64376. *sane-backends-1.0.14-r5 (30 Aug 2004) diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest index 1ebd808b2e86..405b173220fb 100644 --- a/media-gfx/sane-backends/Manifest +++ b/media-gfx/sane-backends/Manifest @@ -1,3 +1,4 @@ +MD5 6b5c1ed5b2d401a49002d5a15758fcaf sane-backends-1.0.14-r6.ebuild 2801 MD5 c8a5f35a59293001a852dc67603ea652 sane-backends-1.0.14-r3.ebuild 2473 MD5 ed295c5fbe0c33ddc1e4b6f859c0cda7 sane-backends-1.0.14-r5.ebuild 2777 MD5 41ccd3ca88b24476e6d95ef32d5f5111 sane-backends-1.0.13-r3.ebuild 1717 @@ -14,3 +15,4 @@ MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14-r2 160 MD5 38efb4d762b212d339caa112194dbf56 files/digest-sane-backends-1.0.14-r3 160 MD5 e8109e4fa602f9e29257c4abea88f69d files/digest-sane-backends-1.0.14-r4 229 MD5 e8109e4fa602f9e29257c4abea88f69d files/digest-sane-backends-1.0.14-r5 229 +MD5 e8109e4fa602f9e29257c4abea88f69d files/digest-sane-backends-1.0.14-r6 229 diff --git a/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r6 b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r6 new file mode 100644 index 000000000000..df429dcc0a62 --- /dev/null +++ b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r6 @@ -0,0 +1,3 @@ +MD5 7ae5bf91aea34ef7956df6f53cf073bd sane-backends-1.0.14.tar.gz 3198777 +MD5 1b2f83dcb5dae520ef845d071bceb4f5 backend-20040723_1.tar.gz 31201 +MD5 643de6a8321df8ef561170610b91b538 sane-backends-1.0.13-brothermfc-r1.patch.bz2 9727 diff --git a/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild b/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild new file mode 100644 index 000000000000..8cebb2065ceb --- /dev/null +++ b/media-gfx/sane-backends/sane-backends-1.0.14-r6.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2004 Gentoo Foundation +# 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-r6.ebuild,v 1.1 2004/09/22 13:37:25 phosphan Exp $ + +inherit eutils + +IUSE="usb gphoto2 ipv6" + +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://sourceforge/hp3300backend/backend-20040723_1.tar.gz ) + usb? ( mirror://gentoo/${BROTHERMFCDRIVER}.bz2 )" +SLOT="0" +LICENSE="GPL-2 public-domain" +KEYWORDS="~x86 ~sparc ~ppc ~ppc64" + + +src_unpack() { + unpack ${A} + use usb && unpack ${BROTHERMFCDRIVER}.bz2 + cp ${FILESDIR}/linux_sg3_err.h ${S}/sanei + + cd ${S} + + epatch ${FILESDIR}/canoscan-focus.patch + + #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-r1.patch + + if use usb; then + #patch sane-backends for NIASH chip support + einfo "Applying NIASH chip support patch" + cd ${WORKDIR}/backend + chmod +x patch-sane.sh + ./patch-sane.sh ${S} + fi +} + +src_compile() { + local myconf + myconf="$(use_enable usb libusb) $(use_with gphoto2) $(use_enable ipv6)" + ./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 () { + + + 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 + +} + +pkg_preinst() { + enewgroup scanner +} + +pkg_postinst() { + if use usb; then + einfo "There are some problems with the hotplug script when" + einfo "restarting hotplug with some kernel versions." + einfo "If you have trouble, please edit" + einfo "/etc/hotplug/usb/libusbscanner" + einfo "and see bug #50934 for details." + fi +} |