diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-12-11 10:24:20 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-12-11 10:24:20 +0000 |
commit | d4410224d458e6106c12d9c1e70add349e607535 (patch) | |
tree | e6814cf880a756b569c01f1953c53aa72e2ce92e /media-gfx | |
parent | Added Brother support -> closing bug 35572 (diff) | |
download | gentoo-2-d4410224d458e6106c12d9c1e70add349e607535.tar.gz gentoo-2-d4410224d458e6106c12d9c1e70add349e607535.tar.bz2 gentoo-2-d4410224d458e6106c12d9c1e70add349e607535.zip |
Added Brother support -> closing bug 35572
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/sane-backends/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/sane-backends/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/sane-backends/files/digest-sane-backends-1.0.13-r2 | 2 | ||||
-rw-r--r-- | media-gfx/sane-backends/sane-backends-1.0.13-r2.ebuild | 67 |
4 files changed, 80 insertions, 3 deletions
diff --git a/media-gfx/sane-backends/ChangeLog b/media-gfx/sane-backends/ChangeLog index 88575ae137d0..149690cdc8fc 100644 --- a/media-gfx/sane-backends/ChangeLog +++ b/media-gfx/sane-backends/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-gfx/sane-backends # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.27 2003/12/10 10:51:47 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.28 2003/12/11 10:24:13 phosphan Exp $ + +*sane-backends-1.0.13-r2 (11 Dec 2003) + + 11 Dec 2003; Patrick Kursawe <phosphan@gentoo.org> + sane-backends-1.0.13-r2.ebuild: + Added support for Brother MFC 4600 via USB if "usb" is in USE. The patch + originates from http://sourceforge.net/projects/brother-mfc/ but had to be + modified for 1.0.13. 10 Dec 2003; Patrick Kursawe <phosphan@gentoo.org> sane-backends-1.0.11.ebuild, sane-backends-1.0.12-r1.ebuild, diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest index a99feb410400..3d1510694140 100644 --- a/media-gfx/sane-backends/Manifest +++ b/media-gfx/sane-backends/Manifest @@ -1,8 +1,8 @@ MD5 4555ee1b463533584eb96945b9f9ab37 sane-backends-1.0.13.ebuild 1328 MD5 270fe3392e1e75a592fe0245c9402d80 sane-backends-1.0.12-r2.ebuild 1944 MD5 86942f37652e9e7c9aaf861553f16ddd sane-backends-1.0.13-r1.ebuild 1522 -MD5 86fbfa5ee0f0268cfff96bfc8e0b6013 sane-backends-1.0.13-r2.ebuild 1712 -MD5 2ec78d89f016f73b2d4f2572812ee121 ChangeLog 4794 +MD5 aae193ef66b588d27f3e8be5fe45ccfd sane-backends-1.0.13-r2.ebuild 1712 +MD5 71be2637df27b4c12a61b70cc7d9210d ChangeLog 5097 MD5 e3010e884705ab9dfe82a3663438d36b metadata.xml 383 MD5 365f695ec2c079ac06dd5bbf495f87ce files/linux_sg3_err.h 4894 MD5 026dc517ef9d45268cd506ec83519a0e files/canoscan-focus.patch 472 diff --git a/media-gfx/sane-backends/files/digest-sane-backends-1.0.13-r2 b/media-gfx/sane-backends/files/digest-sane-backends-1.0.13-r2 new file mode 100644 index 000000000000..cb161caae78e --- /dev/null +++ b/media-gfx/sane-backends/files/digest-sane-backends-1.0.13-r2 @@ -0,0 +1,2 @@ +MD5 9a158413180a752f8af6f11792154a42 sane-backends-1.0.13.tar.gz 3108639 +MD5 e7938eb280b0377554b1adb4c99c5aaf sane-backends-1.0.13-brothermfc.patch.bz2 9633 diff --git a/media-gfx/sane-backends/sane-backends-1.0.13-r2.ebuild b/media-gfx/sane-backends/sane-backends-1.0.13-r2.ebuild new file mode 100644 index 000000000000..dfd0e5b5fd76 --- /dev/null +++ b/media-gfx/sane-backends/sane-backends-1.0.13-r2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2003 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.13-r2.ebuild,v 1.1 2003/12/11 10:24:13 phosphan Exp $ + +inherit eutils + +IUSE="usb" + +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 )" + +BROTHERMFCDRIVER="sane-backends-1.0.13-brothermfc.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 ~ppc ~sparc ~alpha ~amd64" + + +src_unpack() { + unpack ${A} + 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} +} + +src_compile() { + local myconf + myconf="$(use_enable usb libusb)" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --host=${CHOST} ${myconf} || die + make || die +} + +src_install () { + make prefix=${D}/usr \ + sysconfdir=${D}/etc \ + mandir=${D}/usr/share/man \ + docdir=${D}/usr/share/doc/${PF} \ + install || die + + 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 + +} |