From ccaccfe4f1da8c11d9fa110f6e4eb847358769d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jun 2024 00:10:02 +0100 Subject: gentoo auto-resync : 18:06:2024 - 00:10:02 --- net-print/kyocera-1x2x-mfp-driver/Manifest | 2 +- .../kyocera-1x2x-mfp-driver-1.1203-r1.ebuild | 129 --------------------- .../kyocera-1x2x-mfp-driver-1.1203-r2.ebuild | 115 ++++++++++++++++++ 3 files changed, 116 insertions(+), 130 deletions(-) delete mode 100644 net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r1.ebuild create mode 100644 net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild (limited to 'net-print/kyocera-1x2x-mfp-driver') diff --git a/net-print/kyocera-1x2x-mfp-driver/Manifest b/net-print/kyocera-1x2x-mfp-driver/Manifest index f3e3fc0490fb..58aa4b8f3d10 100644 --- a/net-print/kyocera-1x2x-mfp-driver/Manifest +++ b/net-print/kyocera-1x2x-mfp-driver/Manifest @@ -1,4 +1,4 @@ AUX rastertokpsl-fix.sh 399 BLAKE2B 14376b73ad961b4dba3064403c079be18492a2e0091f113ed127c3f18668a6abcd0cfdc587dc2991269ce3549049d5b367ed96da623ec851353c9a5b7a4dbdb5 SHA512 7d757297b737a4fcebfd91bde4457674b738bf227480d5bcbf5049eb332c215395bca7798cd1931592ada217b5d85806fe567bd1741d8fadc23b572642901d09 DIST LinuxDrv_1.1203_FS-1x2xMFP.zip 5392941 BLAKE2B d39140d6bbf5d08d248739f2689ccd45d066b5568c3ba27bdcea34f2ed348e91d0b95d64c7e789dd08094ebda43a5fb6911efb9cdfcc43cf1fefd4af32fb18bb SHA512 afbe237d25d784a6202be01669ccb5e1f0f9a6349b6b74227723905529f23da6d7880b25420b289277020450286d02f579722add5c0d48c839ac44152a60d1ab -EBUILD kyocera-1x2x-mfp-driver-1.1203-r1.ebuild 3431 BLAKE2B f764815ab3b6f3a5e873016d183ae4b081e7de93fc9972f556caaf8342e4194d5bc740eb63701e690b86a0650b937dafe28c3ee9116a5f7fd4e83137acc19955 SHA512 4d1103d77579f41bded3ee5bd2c38c6aec04ed88e59cf3be31d80e30bb9510c3940a52ed8cb6dbf2e9b2fc183b9f4af6c5a550be6bf9ac8244567a5d96c836ea +EBUILD kyocera-1x2x-mfp-driver-1.1203-r2.ebuild 3416 BLAKE2B 1692a4596af184c99d532c849e56917e2aeae7aef938142a8328c76fb79ce003e89d2a0223b9bf3daed45ca3fc60db33016cc1524610712d46e2d4c156a22c3f SHA512 11a5f90fdf9d87bf8fb554e9c756a0001f01644a754e2821ba03cbac9b2ca8a2c7e0602d76617ed0c6b92740d41799f925b1a14c60ae1ccdf4dde954db9b485b MISC metadata.xml 559 BLAKE2B 3fbb9d675d4ebcf59e1925cb0aae03019151418fa91bc8e2612a3b5d1be935462a3b6558a32398940bf2b6e1aa0517bbe7c38985349c4cf03b0ed73aa28921d9 SHA512 46fddd98531b0bbc20ff39dee43cdf926c60609e1684f92fceb5ac57b199e0d86372731663e6609717ee16d58ddbbe48bcce3530f28d893486d78e9461cf572b 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-r1.ebuild deleted file mode 100644 index a575ee6097e4..000000000000 --- a/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r1.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Printer descriptions (PPDs) and filters for Kyocera 1x2x MFP" -HOMEPAGE="http://www.kyoceradocumentsolutions.eu" -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="+rastertokpsl-fix +${IUSE_L10N[@]/#/l10n_}" -REQUIRED_USE="|| ( ${IUSE_L10N[@]/#/l10n_} )" - -RDEPEND="net-print/cups" -DEPEND="app-arch/unzip" -RESTRICT="fetch mirror" -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 -} - -pkg_nofetch() { - einfo "Please, navigate your browser to the following URL 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 - 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" - einfo "reason." -} - -src_unpack() { - unpack ${A} - S="${WORKDIR}/Linux/$(usex amd64 64bit 32bit)/Global" - - cd "${S}" || die - local l10n - for l10n in ${L10N}; do - local language="$(get_tarball_name "${l10n}")" - unpack "./${language}.tar.gz" - done -} - -src_prepare() { - eapply_user - - # Original PPD files need patching, since they expect their filter - # program to reside under /usr/lib, but Gentoo uses /usr/libexec. - - local orig="/usr/lib/cups/filter/rastertokpsl" - local repl="/usr/libexec/cups/filter/rastertokpsl" - if use rastertokpsl-fix; then - repl+="-fix.sh" - fi - - sed -i "s|${orig}|${repl}|g" ./*/Kyocera*.ppd || die -} - -src_install() { - insinto /usr/share/cups/model/KyoceraMita - - install_with_l10n_suffix() { - local l10n="$1"; shift - local file - for file; do - local bn="${file}" - bn="${bn##*/}" - bn="${bn%.ppd}" - newins "${file}" "${bn}_${l10n}.ppd" - done - } - - local l10n - for l10n in ${L10N}; do - local language="$(get_tarball_name "${l10n}")" - install_with_l10n_suffix "${l10n}" "./${language}"/Kyocera*.ppd - done - - exeinto /usr/libexec/cups/filter - - # Each unpacked tarball contains an exact copy of 'rastertokpsl', - # just take any of them. - local rasterfile="$(find -name rastertokpsl -print -quit)" - [[ $? -eq 0 && -n "${rasterfile}" ]] || die - doexe "${rasterfile}" - - if use rastertokpsl-fix; then - doexe "${FILESDIR}/rastertokpsl-fix.sh" - fi - - dodoc ../../Readme.htm - - elog "This packages installs Kyocera's 'Readme.htm' file (see package" - elog "documentation directory) which lists several common problems and" - elog "workarounds. You might want to have a look on it." - elog "(Merging the package with 'rastertokpsl-fix' USE flag can save you" - elog "from getting some of these problems.)" - elog - elog "Hint: try socket:// protocol when configuring network printing." -} diff --git a/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild b/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild new file mode 100644 index 000000000000..ee73cd5036fb --- /dev/null +++ b/net-print/kyocera-1x2x-mfp-driver/kyocera-1x2x-mfp-driver-1.1203-r2.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Printer descriptions (PPDs) and filters for Kyocera 1x2x MFP" +HOMEPAGE="http://www.kyoceradocumentsolutions.eu" +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="+rastertokpsl-fix +${IUSE_L10N[@]/#/l10n_}" +REQUIRED_USE="|| ( ${IUSE_L10N[@]/#/l10n_} )" +RESTRICT="fetch mirror" + +RDEPEND="net-print/cups" +BDEPEND="app-arch/unzip" + +QA_PREBUILT="/usr/libexec/cups/filter/rastertokpsl" + +get_tarball_name() { + # Note the capitalization inconsistency. Don't "fix" that. + 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, 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/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" + einfo "reason." +} + +src_unpack() { + unpack ${A} + S="${WORKDIR}/Linux/$(usex amd64 64bit 32bit)/Global" + + cd "${S}" || die + local l10n + for l10n in ${L10N}; do + local language="$(get_tarball_name "${l10n}")" + unpack "./${language}.tar.gz" + done +} + +src_prepare() { + eapply_user + + # Original PPD files need patching, since they expect their filter + # program to reside under /usr/lib, but Gentoo uses /usr/libexec. + + local orig="/usr/lib/cups/filter/rastertokpsl" + local repl="/usr/libexec/cups/filter/rastertokpsl" + if use rastertokpsl-fix; then + repl+="-fix.sh" + fi + + sed -i "s|${orig}|${repl}|g" ./*/Kyocera*.ppd || die +} + +src_install() { + insinto /usr/share/cups/model/KyoceraMita + + install_with_l10n_suffix() { + local l10n="$1"; shift + local file + for file; do + local bn="${file}" + bn="${bn##*/}" + bn="${bn%.ppd}" + newins "${file}" "${bn}_${l10n}.ppd" + done + } + + local l10n + for l10n in ${L10N}; do + local language="$(get_tarball_name "${l10n}")" + install_with_l10n_suffix "${l10n}" "./${language}"/Kyocera*.ppd + done + + exeinto /usr/libexec/cups/filter + + # Each unpacked tarball contains an exact copy of 'rastertokpsl', + # just take any of them. + local rasterfile="$(find -name rastertokpsl -print -quit)" + [[ $? -eq 0 && -n "${rasterfile}" ]] || die + doexe "${rasterfile}" + + if use rastertokpsl-fix; then + doexe "${FILESDIR}/rastertokpsl-fix.sh" + fi + + dodoc ../../Readme.htm + + elog "This packages installs Kyocera's 'Readme.htm' file (see package" + elog "documentation directory) which lists several common problems and" + elog "workarounds. You might want to have a look on it." + elog "(Merging the package with 'rastertokpsl-fix' USE flag can save you" + elog "from getting some of these problems.)" + elog + elog "Hint: try socket:// protocol when configuring network printing." +} -- cgit v1.2.3