1 |
commit: 5053b3238c2bc8bd89f3a8e6d0972bb912b8ec59 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 30 17:35:27 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 21:55:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5053b323 |
7 |
|
8 |
net-print/fax4cups: Port to EAPI 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/819273 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
net-print/fax4cups/fax4cups-1.29-r1.ebuild | 23 +++++++++++------------ |
14 |
1 file changed, 11 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/net-print/fax4cups/fax4cups-1.29-r1.ebuild b/net-print/fax4cups/fax4cups-1.29-r1.ebuild |
17 |
index fe10769ae33..37f2f9ce8f7 100644 |
18 |
--- a/net-print/fax4cups/fax4cups-1.29-r1.ebuild |
19 |
+++ b/net-print/fax4cups/fax4cups-1.29-r1.ebuild |
20 |
@@ -1,16 +1,16 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=5 |
26 |
+EAPI=8 |
27 |
|
28 |
DESCRIPTION="Fax backend for CUPS" |
29 |
HOMEPAGE="http://vigna.dsi.unimi.it/fax4CUPS/" |
30 |
SRC_URI="http://vigna.dsi.unimi.it/fax4CUPS/fax4CUPS-${PV}.tar.gz" |
31 |
-LICENSE="GPL-2" |
32 |
+S="${WORKDIR}/fax4CUPS-${PV}" |
33 |
|
34 |
+LICENSE="GPL-2" |
35 |
SLOT="0" |
36 |
KEYWORDS="amd64 ~ppc x86" |
37 |
- |
38 |
IUSE="+hylafax mgetty-fax efax" |
39 |
REQUIRED_USE="|| ( hylafax mgetty-fax efax )" |
40 |
|
41 |
@@ -23,27 +23,26 @@ RDEPEND="${DEPEND} |
42 |
) |
43 |
app-admin/sudo |
44 |
" |
45 |
- |
46 |
-S=${WORKDIR}/fax4CUPS-${PV} |
47 |
+BDEPEND="net-print/cups" |
48 |
|
49 |
src_install() { |
50 |
doman fax4CUPS.1 |
51 |
|
52 |
- exeinto $(cups-config --serverbin)/backend |
53 |
+ exeinto $(cups-config --serverbin || die)/backend |
54 |
insinto /usr/share/cups/model |
55 |
|
56 |
+ local i |
57 |
for i in hylafax efax mgetty-fax; do |
58 |
- if use $i |
59 |
- then |
60 |
+ if use ${i}; then |
61 |
# Backend |
62 |
- doexe $i |
63 |
+ doexe ${i} |
64 |
# PPD |
65 |
- doins $i.ppd |
66 |
+ doins ${i}.ppd |
67 |
fi |
68 |
done |
69 |
} |
70 |
|
71 |
pkg_postinst() { |
72 |
- elog "Please execute '/etc/init.d/cups restart'" |
73 |
+ elog "Please execute '${EROOT}/etc/init.d/cups restart'" |
74 |
elog "to get the *.ppd files working properly" |
75 |
} |