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