1 |
commit: 695203894eb9bd0d7be99ec381fadf50ff48a027 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 24 21:19:20 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 25 19:11:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69520389 |
7 |
|
8 |
media-gfx/iscan-plugin-gt-f720: port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../iscan-plugin-gt-f720-0.0.1.2.ebuild | 17 ++++++++--------- |
14 |
1 file changed, 8 insertions(+), 9 deletions(-) |
15 |
|
16 |
diff --git a/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild |
17 |
index a09a64ceb97..89786f1de27 100644 |
18 |
--- a/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild |
19 |
+++ b/media-gfx/iscan-plugin-gt-f720/iscan-plugin-gt-f720-0.0.1.2.ebuild |
20 |
@@ -1,18 +1,19 @@ |
21 |
-# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI="4" |
26 |
+EAPI=7 |
27 |
|
28 |
-inherit multilib versionator rpm |
29 |
+inherit rpm |
30 |
|
31 |
-MY_PV="$(get_version_component_range 1-3)" |
32 |
-MY_PVR="$(replace_version_separator 3 -)" |
33 |
+MY_PV="$(ver_cut 1-3)" |
34 |
+MY_PVR="$(ver_rs 3 -)" |
35 |
MY_P="esci-interpreter-gt-f720-${MY_PVR}" |
36 |
|
37 |
DESCRIPTION="Epson Perfection V300 PHOTO scanner plugin for SANE 'epkowa' backend" |
38 |
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" |
39 |
SRC_URI="amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_P}.x86_64.rpm ) |
40 |
x86? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_P}.i386.rpm )" |
41 |
+S="${WORKDIR}" |
42 |
|
43 |
LICENSE="AVASYS" |
44 |
SLOT="0" |
45 |
@@ -21,8 +22,6 @@ KEYWORDS="-* amd64 x86" |
46 |
DEPEND=">=media-gfx/iscan-2.21.0" |
47 |
RDEPEND="${DEPEND}" |
48 |
|
49 |
-S="${WORKDIR}" |
50 |
- |
51 |
QA_PREBUILT="usr/lib64/esci/libesci-interpreter-gt-f720.so*" |
52 |
|
53 |
src_install() { |
54 |
@@ -42,7 +41,7 @@ pkg_postinst() { |
55 |
local MY_LIB="/usr/$(get_libdir)" |
56 |
|
57 |
# Needed for scaner to work properly. |
58 |
- iscan-registry --add interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin" |
59 |
+ iscan-registry --add interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin" || die |
60 |
elog |
61 |
elog "Firmware file esfw8b.bin for Epson Perfection V300 PHOTO" |
62 |
elog "has been installed in /usr/share/esci and registered for use." |
63 |
@@ -52,5 +51,5 @@ pkg_postinst() { |
64 |
pkg_prerm() { |
65 |
local MY_LIB="/usr/$(get_libdir)" |
66 |
|
67 |
- iscan-registry --remove interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin" |
68 |
+ iscan-registry --remove interpreter usb 0x04b8 0x0131 "${MY_LIB}/esci/libesci-interpreter-gt-f720 /usr/share/esci/esfw8b.bin" || die |
69 |
} |