summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-01-07 22:18:17 +0100
committerUlrich Müller <ulm@gentoo.org>2018-01-07 22:18:17 +0100
commit4408fe38ab148d50307f42567077128daf12c6e3 (patch)
treef18667cfa32ad866e99ad3e700a28dc645ddce89
parentnet-misc/electrum-ltc: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-4408fe38ab148d50307f42567077128daf12c6e3.tar.gz
gentoo-4408fe38ab148d50307f42567077128daf12c6e3.tar.bz2
gentoo-4408fe38ab148d50307f42567077128daf12c6e3.zip
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
-rw-r--r--net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4-r1.ebuild (renamed from net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild)30
1 files 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
index 38dcd4472e55..8c66696feaf6 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
}