initial commit.
authorStefan Briesenick <sbriesen@gentoo.org>
Thu, 24 Nov 2005 23:50:53 +0000 (23:50 +0000)
committerStefan Briesenick <sbriesen@gentoo.org>
Thu, 24 Nov 2005 23:50:53 +0000 (23:50 +0000)
Package-Manager: portage-2.0.53_rc6

media-gfx/iscan/ChangeLog [new file with mode: 0644]
media-gfx/iscan/Manifest [new file with mode: 0644]
media-gfx/iscan/files/digest-iscan-1.17.0 [new file with mode: 0644]
media-gfx/iscan/iscan-1.17.0.ebuild [new file with mode: 0644]
media-gfx/iscan/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/iscan/ChangeLog b/media-gfx/iscan/ChangeLog
new file mode 100644 (file)
index 0000000..7c75bdb
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/iscan
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/ChangeLog,v 1.1 2005/11/24 23:50:53 sbriesen Exp $
+
+*iscan-1.17.0 (24 Nov 2005)
+
+  24 Nov 2005; Stefan Briesenick <sbriesen@gentoo.org> +metadata.xml,
+  +iscan-1.17.0.ebuild:
+  initial commit.
+
diff --git a/media-gfx/iscan/Manifest b/media-gfx/iscan/Manifest
new file mode 100644 (file)
index 0000000..8b9384d
--- /dev/null
@@ -0,0 +1,4 @@
+MD5 9ef2fc109f8c5572eda57c3bf8efe968 ChangeLog 347
+MD5 92332de64b20f65587282bcef809b9c7 files/digest-iscan-1.17.0 70
+MD5 85ff53d3187214b4f8cf8efefbdaf0bf iscan-1.17.0.ebuild 2950
+MD5 ba682f5946d2063873acfa9c5390dfcb metadata.xml 674
diff --git a/media-gfx/iscan/files/digest-iscan-1.17.0 b/media-gfx/iscan/files/digest-iscan-1.17.0
new file mode 100644 (file)
index 0000000..3773b3a
--- /dev/null
@@ -0,0 +1 @@
+MD5 9e54262594f11e7d17f1a6121e9e38fc iscan-1.17.0-1.c2.tar.gz 1971196
diff --git a/media-gfx/iscan/iscan-1.17.0.ebuild b/media-gfx/iscan/iscan-1.17.0.ebuild
new file mode 100644 (file)
index 0000000..ee631a1
--- /dev/null
@@ -0,0 +1,106 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/iscan-1.17.0.ebuild,v 1.1 2005/11/24 23:50:53 sbriesen Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)"
+HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html"
+SRC_URI="http://lx1.avasys.jp/iscan/v${PV//./}/${P}-1.c2.tar.gz"
+LICENSE="GPL-2 x86? ( EAPL EPSON )"
+SLOT="0"
+
+KEYWORDS="~x86 ~amd64"
+IUSE="X gimp unicode"
+
+# -> non-free modules are x86 only
+# -> isane frontend needs non-free modules
+# -> sane-epkowa should be usable on every arch
+
+DEPEND=">=dev-libs/libusb-0.1.6
+       media-gfx/sane-backends
+       media-libs/libpng
+       media-libs/jpeg
+       x86? (
+               X? (
+                       sys-devel/gettext
+                       >=x11-libs/gtk+-2.0
+                       gimp? ( media-gfx/gimp )
+               )
+       )"
+
+pkg_setup() {
+       if ! use x86 && use X; then
+               ewarn "The iscan application needs CSS x86-only libs and"
+               ewarn "thus can't be built currently. You can still use"
+               ewarn "'xscanimage', 'xsane' or 'kooka' with sane-epkowa"
+               ewarn "backend. But some low-end scanners are also not"
+               ewarn "supported, because they need these x86 libs, too."
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       if use unicode; then
+               einfo "Converting docs to UTF-8"
+               for i in {NEWS,README}.ja non-free/{EAPL,LICENSE.EPSON}.ja.txt; do
+                       iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+               done
+       fi
+
+       if ! ( use x86 && use X ); then  # disable iscan frontend
+               sed -i -e 's:^\([[:space:]]\)frontend[[:space:]]*\\:\1\\:g' \
+                       -e 's:^\([[:space:]]\)po[[:space:]]*\\:\1\\:g' Makefile.in
+               sed -i -e 's:iscan.1::g' doc/Makefile.in
+       fi
+
+       if ! use x86; then  # disable non-free modules (x86-only)
+               sed -i -e 's:^\([[:space:]]\)non-free[[:space:]]*\\:\1\\:g' Makefile.in
+       fi
+}
+
+src_compile() {
+       econf --enable-jpeg --enable-png --with-pic || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+
+       # --disable-static doesn't work, so we just remove static lib
+       rm -f "${D}/usr/$(get_libdir)/sane/libsane-epkowa.a"
+
+       # install docs
+       dodoc AUTHORS {NEWS,README}*
+
+       # install hotplug stuff 
+       insinto /etc/hotplug/usb
+       exeinto /etc/hotplug/usb
+       doins utils/hotplug/iscan.usermap
+       doexe utils/hotplug/iscan-device
+
+       # install sane config
+       insinto /etc/sane.d
+       doins backend/epkowa.conf
+
+       # link iscan so it is seen as a plugin in gimp
+       if use x86 && use X && 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/iscan "${plugindir}"
+       fi
+
+       # install desktop entry
+       if use x86 && use X; then
+               make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner.png
+       fi
+}
diff --git a/media-gfx/iscan/metadata.xml b/media-gfx/iscan/metadata.xml
new file mode 100644 (file)
index 0000000..14452cd
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>sbriesen@gentoo.org</email>
+               <name>Stefan Briesenick</name>
+       </maintainer>
+       <longdescription lang="en">
+               Image Scan! is a graphical scanner utility for people that do not need all
+               the bells and whistles provided by several of the other utilities out there
+               (xsane, QuiteInsane, Kooka). At the moment it only supports SEIKO EPSON
+               scanners and all-in-ones. However, the scanner driver it provides can
+               be used by any other SANE standard compliant scanner utility.
+       </longdescription>
+</pkgmetadata>