summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-print')
-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
}