Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/iscan-plugin-perfection-v370: metadata.xml iscan-plugin-perfection-v370-1.0.0.2.ebuild ChangeLog
Date: Tue, 26 Feb 2013 16:13:10
Message-Id: 20130226161306.CAECC2171D@flycatcher.gentoo.org
1 flameeyes 13/02/26 16:13:06
2
3 Added: metadata.xml
4 iscan-plugin-perfection-v370-1.0.0.2.ebuild
5 ChangeLog
6 Log:
7 Initial import of plugin for EPSON Perfection V370 scanner.
8
9 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
10
11 Revision Changes Path
12 1.1 media-gfx/iscan-plugin-perfection-v370/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/metadata.xml?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/metadata.xml?rev=1.1&content-type=text/plain
16
17 Index: metadata.xml
18 ===================================================================
19 <?xml version="1.0" encoding="UTF-8"?>
20 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
21 <pkgmetadata>
22 <maintainer>
23 <email>flameeyes@g.o</email>
24 </maintainer>
25 <longdescription lang="en">
26 Proprietary plugin for several EPSON scanner models, to be used
27 with the epkowa SANE backend (provided by
28 <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit.
29
30 Supports the following models:
31
32 Epson GT-F740
33 Epson GT-S640
34 Epson Perfection V37
35 Epson Perfection V370 Photo
36 </longdescription>
37 </pkgmetadata>
38
39
40
41 1.1 media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iscan-plugin-perfection-v370-1.0.0.2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/iscan-plugin-perfection-v370-1.0.0.2.ebuild,v 1.1 2013/02/26 16:13:06 flameeyes Exp $
51
52 EAPI=5
53
54 inherit rpm versionator multilib
55
56 MY_PV="$(get_version_component_range 1-3)"
57 MY_PVR="$(replace_version_separator 3 -)"
58
59 SCANNER="Perfection V370"
60 FIRMWARE="esfwdd.bin"
61
62 DESCRIPTION="Epson ${SCANNER} and similar scanner plugin for SANE 'epkowa' backend."
63 HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
64 SRC_URI="amd64? ( http://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.x86_64.rpm )
65 x86? ( http://dev.gentoo.org/~flameeyes/avasys/${PN}-${MY_PVR}.i386.rpm )"
66
67 LICENSE="AVASYS"
68 SLOT="0"
69 KEYWORDS="-* ~amd64 ~x86"
70
71 IUSE=""
72
73 DEPEND=">=media-gfx/iscan-2.21.0"
74 RDEPEND="${DEPEND}"
75
76 S="${WORKDIR}"
77
78 QA_PREBUILT="/opt/iscan/lib/*"
79
80 src_configure() { :; }
81 src_compile() { :; }
82
83 src_install() {
84 # install scanner firmware
85 insinto /usr/share/iscan
86 doins "${WORKDIR}"/usr/share/iscan/*
87
88 dodoc usr/share/doc/*/*
89
90 # install scanner plugins
91 exeinto /opt/iscan/lib
92 doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
93 }
94
95 pkg_setup() {
96 basecmds=(
97 "iscan-registry --COMMAND interpreter usb 0x04b8 0x014a /opt/iscan/lib/libiscan-plugin-perfection-v370 /usr/share/iscan/${FIRMWARE}"
98 )
99 }
100
101 pkg_postinst() {
102 elog
103 elog "Firmware file ${FIRMWARE} for ${SCANNER}"
104 elog "has been installed in /usr/share/iscan."
105 elog
106
107 # Only register scanner on new installs
108 [[ -n ${REPLACING_VERSIONS} ]] && return
109
110 # Needed for scanner to work properly.
111 if [[ ${ROOT} == "/" ]]; then
112 for basecmd in "${basecmds[@]}"; do
113 eval ${basecmd/COMMAND/add}
114 done
115 elog "New firmware has been registered automatically."
116 elog
117 else
118 ewarn "Unable to register the plugin and firmware when installing outside of /."
119 ewarn "execute the following command yourself:"
120 for basecmd in "${basecmds[@]}"; do
121 ewarn "${basecmd/COMMAND/add}"
122 done
123 fi
124 }
125
126 pkg_prerm() {
127 # Only unregister on on uninstall
128 [[ -n ${REPLACED_BY_VERSION} ]] && return
129
130 if [[ ${ROOT} == "/" ]]; then
131 for basecmd in "${basecmds[@]}"; do
132 eval ${basecmd/COMMAND/remove}
133 done
134 else
135 ewarn "Unable to register the plugin and firmware when installing outside of /."
136 ewarn "execute the following command yourself:"
137 for basecmd in "${basecmds[@]}"; do
138 ewarn "${basecmd/COMMAND/remove}"
139 done
140 fi
141 }
142
143
144
145 1.1 media-gfx/iscan-plugin-perfection-v370/ChangeLog
146
147 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/ChangeLog?rev=1.1&view=markup
148 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/ChangeLog?rev=1.1&content-type=text/plain
149
150 Index: ChangeLog
151 ===================================================================
152 # ChangeLog for media-gfx/iscan-plugin-perfection-v370
153 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
154 # $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-perfection-v370/ChangeLog,v 1.1 2013/02/26 16:13:06 flameeyes Exp $
155
156 *iscan-plugin-perfection-v370-1.0.0.2 (26 Feb 2013)
157
158 26 Feb 2013; Diego E. Pettenò <flameeyes@g.o>
159 +iscan-plugin-perfection-v370-1.0.0.2.ebuild, +metadata.xml:
160 Initial import of plugin for EPSON Perfection V370 scanner.