commit:     5186f0bd9f69fbe6bfb29a7ac4e8df72fb79e902
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 15:31:05 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 15:35:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5186f0bd

net-print/kyocera-1x2x-mfp-driver: EAPI 6 -> 8, fix fetch instructions

Closes: https://bugs.gentoo.org/934456
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 ...ld => kyocera-1x2x-mfp-driver-1.1203-r2.ebuild} | 48 ++++++++--------------
 1 file changed, 17 insertions(+), 31 deletions(-)

diff --git 
a/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r1.ebuild 
b/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild
similarity index 76%
rename from 
net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r1.ebuild
rename to 
net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild
index a575ee6097e4..ee73cd5036fb 100644
--- a/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r1.ebuild
+++ b/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 DESCRIPTION="Printer descriptions (PPDs) and filters for Kyocera 1x2x MFP"
 HOMEPAGE="http://www.kyoceradocumentsolutions.eu";
@@ -9,49 +9,35 @@ SRC_URI="LinuxDrv_${PV}_FS-1x2xMFP.zip"
 
 LICENSE="GPL-2 kyocera-mita-ppds"
 SLOT="0"
-
 KEYWORDS="-* ~amd64"
 
-IUSE_L10N=(en ar cs de el es fr he hu it ko pl pt ro ru th tr vi zh-CN zh-TW)
+IUSE_L10N=( en ar cs de el es fr he hu it ko pl pt ro ru th tr vi zh-CN zh-TW )
 IUSE="+rastertokpsl-fix +${IUSE_L10N[@]/#/l10n_}"
 REQUIRED_USE="|| ( ${IUSE_L10N[@]/#/l10n_} )"
+RESTRICT="fetch mirror"
 
 RDEPEND="net-print/cups"
-DEPEND="app-arch/unzip"
-RESTRICT="fetch mirror"
+BDEPEND="app-arch/unzip"
+
 QA_PREBUILT="/usr/libexec/cups/filter/rastertokpsl"
 
 get_tarball_name() {
        # Note the capitalization inconsistency. Don't "fix" that.
-       case "$1" in
-               ar) echo arabic ;;
-               cs) echo czech ;;
-               de) echo German ;;
-               el) echo greek ;;
-               en) echo English ;;
-               es) echo Spanish ;;
-               fr) echo French ;;
-               he) echo hebrew ;;
-               hu) echo hungarian ;;
-               it) echo Italian ;;
-               ko) echo Korean ;;
-               pl) echo polish ;;
-               pt) echo Portuguese ;;
-               ro) echo romanian ;;
-               ru) echo russian ;;
-               th) echo thai ;;
-               tr) echo turkish ;;
-               vi) echo vietnamese ;;
-               zh-CN) echo simplified ;;
-               zh-TW) echo traditional ;;
-               *) die ;;
-       esac
+       declare -A animals=(
+               [ar]=arabic [cs]=czech [de]=German [el]=greek [en]=English
+               [es]=Spanish [fr]=French [he]=hebrew [hu]=hungarian [it]=Italian
+               [ko]=Korean [pl]=polish [pt]=Portuguese [ro]=romanian 
[ru]=russian
+               [th]=thai [tr]=turkish [vi]=vietnamese [zh-CN]=simplified 
[zh-TW]=traditional
+       )
+       echo "${animals[$1]}"
 }
 
 pkg_nofetch() {
-       einfo "Please, navigate your browser to the following URL and manually"
+       einfo "Please, navigate your browser to the following URL, select"
+       einfo "'Support - Downloads' in the menu, select 'FS-1025MFP',"
+       einfo "select 'Linux print driver (${PV})', accept EULA, and manually"
        einfo "download the file named '${A}', then put it into your DISTDIR."
-       einfo 
"https://www.kyoceradocumentsolutions.eu/index/service/dlc.false.driver.FS1025MFP._.EN.html";
+       einfo 
"https://www.kyoceradocumentsolutions.eu/en/support/downloads.name-L2V1L2VuL21mcC9GUzExMjVNRlA=.html";
        einfo
        einfo "Consider keeping a local copy of the file since there're chances"
        einfo "the company is going to eventually stop hosting it for whatever"

Reply via email to