commit:     4408fe38ab148d50307f42567077128daf12c6e3
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  7 21:18:17 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 21:18:17 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4408fe38

net-print/kyocera-mita-ppds: Migrate from LINGUAS to L10N.

Bump to EAPI 6. Add REQUIRED_USE condition, in order to have at least
one language enabled.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 ...-8.4.ebuild => kyocera-mita-ppds-8.4-r1.ebuild} | 30 +++++++---------------
 1 file changed, 9 insertions(+), 21 deletions(-)

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
similarity index 71%
rename from net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild
rename to net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4-r1.ebuild
index 38dcd4472e5..8c66696feaf 100644
--- 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
@@ -1,6 +1,8 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+EAPI=6
+
 DESCRIPTION="PPD description files for (some) Kyocera Mita Printers"
 HOMEPAGE="http://www.kyoceramita.it/";
 SRC_URI="Linux_PPDs_KSL${PV/\./_}.zip"
@@ -8,20 +10,15 @@ SRC_URI="Linux_PPDs_KSL${PV/\./_}.zip"
 LICENSE="kyocera-mita-ppds"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE_LINGUAS="en fr de it pt es"
-
-IUSE=""
-for lingua in $IUSE_LINGUAS; do
-       IUSE="${IUSE} linguas_$lingua"
-done
+IUSE="l10n_de +l10n_en l10n_es l10n_fr l10n_it l10n_pt"
+REQUIRED_USE="|| ( l10n_de l10n_en l10n_es l10n_fr l10n_it l10n_pt )"
+RESTRICT="fetch bindist"
 
 RDEPEND="net-print/cups"
 DEPEND="app-arch/unzip"
 
 S="${WORKDIR}/PPD's_KSL_${PV}"
 
-RESTRICT="fetch"
-
 pkg_nofetch() {
        einfo "Please download ${A} from the following URL:"
        einfo 
"http://www.kyoceramita.it/index/Service_Departement__/Richiesta_di_Supporto_Tecnico/download_center.false.driver.FS1020D._.IT.html";
@@ -30,21 +27,11 @@ pkg_nofetch() {
        einfo "number of printers in six languages."
 }
 
-src_compile() { :; }
-
 src_install() {
        insinto /usr/share/cups/model/KyoceraMita
 
-       local installall=yes
-       for lingua in $IUSE_LINGUAS; do
-               if use linguas_$lingua; then
-                       installall=no
-                       break;
-               fi
-       done
-
        inslanguage() {
-               if [[ ${installall} == yes ]] || use linguas_$1; then
+               if use l10n_$1; then
                        doins $2/*.ppd || die "failed to install $2 ppds"
                fi
        }
@@ -56,5 +43,6 @@ src_install() {
        inslanguage pt Portuguese
        inslanguage es Spanish
 
-       dohtml ReadMe.htm || die
+       docinto html
+       dodoc ReadMe.htm
 }

Reply via email to