1 |
commit: 4408fe38ab148d50307f42567077128daf12c6e3 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 7 21:18:17 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 7 21:18:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4408fe38 |
7 |
|
8 |
net-print/kyocera-mita-ppds: Migrate from LINGUAS to L10N. |
9 |
|
10 |
Bump to EAPI 6. Add REQUIRED_USE condition, in order to have at least |
11 |
one language enabled. |
12 |
|
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
...-8.4.ebuild => kyocera-mita-ppds-8.4-r1.ebuild} | 30 +++++++--------------- |
16 |
1 file changed, 9 insertions(+), 21 deletions(-) |
17 |
|
18 |
diff --git a/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild b/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4-r1.ebuild |
19 |
similarity index 71% |
20 |
rename from net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild |
21 |
rename to net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4-r1.ebuild |
22 |
index 38dcd4472e5..8c66696feaf 100644 |
23 |
--- a/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild |
24 |
+++ b/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4-r1.ebuild |
25 |
@@ -1,6 +1,8 @@ |
26 |
-# Copyright 1999-2011 Gentoo Foundation |
27 |
+# Copyright 1999-2018 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
+EAPI=6 |
31 |
+ |
32 |
DESCRIPTION="PPD description files for (some) Kyocera Mita Printers" |
33 |
HOMEPAGE="http://www.kyoceramita.it/" |
34 |
SRC_URI="Linux_PPDs_KSL${PV/\./_}.zip" |
35 |
@@ -8,20 +10,15 @@ SRC_URI="Linux_PPDs_KSL${PV/\./_}.zip" |
36 |
LICENSE="kyocera-mita-ppds" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
-IUSE_LINGUAS="en fr de it pt es" |
40 |
- |
41 |
-IUSE="" |
42 |
-for lingua in $IUSE_LINGUAS; do |
43 |
- IUSE="${IUSE} linguas_$lingua" |
44 |
-done |
45 |
+IUSE="l10n_de +l10n_en l10n_es l10n_fr l10n_it l10n_pt" |
46 |
+REQUIRED_USE="|| ( l10n_de l10n_en l10n_es l10n_fr l10n_it l10n_pt )" |
47 |
+RESTRICT="fetch bindist" |
48 |
|
49 |
RDEPEND="net-print/cups" |
50 |
DEPEND="app-arch/unzip" |
51 |
|
52 |
S="${WORKDIR}/PPD's_KSL_${PV}" |
53 |
|
54 |
-RESTRICT="fetch" |
55 |
- |
56 |
pkg_nofetch() { |
57 |
einfo "Please download ${A} from the following URL:" |
58 |
einfo "http://www.kyoceramita.it/index/Service_Departement__/Richiesta_di_Supporto_Tecnico/download_center.false.driver.FS1020D._.IT.html" |
59 |
@@ -30,21 +27,11 @@ pkg_nofetch() { |
60 |
einfo "number of printers in six languages." |
61 |
} |
62 |
|
63 |
-src_compile() { :; } |
64 |
- |
65 |
src_install() { |
66 |
insinto /usr/share/cups/model/KyoceraMita |
67 |
|
68 |
- local installall=yes |
69 |
- for lingua in $IUSE_LINGUAS; do |
70 |
- if use linguas_$lingua; then |
71 |
- installall=no |
72 |
- break; |
73 |
- fi |
74 |
- done |
75 |
- |
76 |
inslanguage() { |
77 |
- if [[ ${installall} == yes ]] || use linguas_$1; then |
78 |
+ if use l10n_$1; then |
79 |
doins $2/*.ppd || die "failed to install $2 ppds" |
80 |
fi |
81 |
} |
82 |
@@ -56,5 +43,6 @@ src_install() { |
83 |
inslanguage pt Portuguese |
84 |
inslanguage es Spanish |
85 |
|
86 |
- dohtml ReadMe.htm || die |
87 |
+ docinto html |
88 |
+ dodoc ReadMe.htm |
89 |
} |