Rev 230 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
184 | kardasa | 1 | # Copyright 1999-2013 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
||
3 | # $Header: |
||
4 | |||
5 | EAPI="4" |
||
6 | |||
7 | inherit rpm versionator multilib |
||
8 | |||
9 | MY_PV="$(get_version_component_range 1-3)" |
||
10 | MY_PVR="$(replace_version_separator 3 -)" |
||
11 | |||
12 | DESCRIPTION="Epson Perfection 4490 PHOTO scanner plugin for SANE 'epkowa' backend." |
||
13 | HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" |
||
14 | SRC_URI=" |
||
15 | x86? ( http://www.kardasa.pl/downloads/avasys/${PN}/${PN}-${MY_PVR}.i386.rpm ) |
||
16 | amd64? ( http://www.kardasa.pl/downloads/avasys/${PN}/${PN}-${MY_PVR}.x86_64.rpm ) |
||
17 | " |
||
18 | |||
19 | LICENSE="AVASYS" |
||
20 | SLOT="0" |
||
21 | KEYWORDS="-* ~amd64 ~x86" |
||
22 | |||
23 | IUSE="" |
||
24 | |||
195 | kardasa | 25 | DEPEND=">=media-gfx/iscan-2.21.0" |
184 | kardasa | 26 | RDEPEND="${DEPEND}" |
27 | |||
28 | S="${WORKDIR}" |
||
29 | |||
193 | kardasa | 30 | QA_PREBUILT="/usr/$(get_libdir)/libesint54.so*" |
184 | kardasa | 31 | |
32 | src_configure() { :; } |
||
33 | src_compile() { :; } |
||
34 | |||
35 | src_install() { |
||
36 | # install scanner firmware |
||
37 | insinto /usr/share/iscan |
||
38 | doins "${WORKDIR}/usr/share/iscan/"* |
||
39 | |||
40 | dodoc usr/share/doc/*/* |
||
41 | |||
42 | # install scanner plugins |
||
194 | kardasa | 43 | exeinto /usr/$(get_libdir)/iscan/ |
184 | kardasa | 44 | doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"* |
45 | } |
||
46 | |||
230 | kardasa | 47 | pkg_postinst() { |
48 | local MY_LIB="/usr/$(get_libdir)" |
||
184 | kardasa | 49 | |
230 | kardasa | 50 | # Needed for scaner to work properly. |
231 | kardasa | 51 | iscan-registry --add interpreter usb 0x04b8 0x0119 "${MY_LIB}/iscan/libesint54 /usr/share/iscan/esfw54.bin" |
184 | kardasa | 52 | elog |
53 | elog "Firmware file esfw54.bin for Epson Perfection 4490 Photo" |
||
54 | elog "has been installed in /usr/share/iscan." |
||
55 | elog |
||
56 | |||
57 | } |