diff options
Diffstat (limited to 'net-print/lexmark-upd-ppd')
-rw-r--r-- | net-print/lexmark-upd-ppd/Manifest | 3 | ||||
-rw-r--r-- | net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild | 45 | ||||
-rw-r--r-- | net-print/lexmark-upd-ppd/metadata.xml | 8 |
3 files changed, 56 insertions, 0 deletions
diff --git a/net-print/lexmark-upd-ppd/Manifest b/net-print/lexmark-upd-ppd/Manifest new file mode 100644 index 000000000000..a8fb27c4b3ed --- /dev/null +++ b/net-print/lexmark-upd-ppd/Manifest @@ -0,0 +1,3 @@ +DIST lexmark-upd-ppd-1.0.0.20210304.tar.Z 1023065 BLAKE2B 5731f76651b108f77c1cf20462b7375a3ed4fd71a8ef358e0941614dbaec3f1337d5d16d3d2c00f69ecea364e9ddc97d0f9c6c6dc32c0d7fff3f4e8e12c6918c SHA512 5b14f2db399152490cb6ad149ce3c4e5fc4bf90464af124cea0a4b2f23a03241e31fe0ca99bf3c4ec5c47523edeb3759cb5ec097066c94fe070bd1c73e254306 +EBUILD lexmark-upd-ppd-1.0.0.20210304.ebuild 1190 BLAKE2B 11bc6e39a65af93ff1aad667de766dabd998703f0362c28b3cbbee32e94f7e5d200333f2ee5bde0aa5a5fb0959bb80e29b08bf26b207ffd769857b0736271bcf SHA512 fb5907ba3e5e9f728a6e2f6719db009e034cfd1ba73cdb921b568f5d0b1a7607859d534fce29cbabd7ad9a5bfeba859ee63e79e3975557b2b5d88cd5856de4bb +MISC metadata.xml 245 BLAKE2B c146502191378e07b2d7d4d97bcb6daa8eb65f6c0b0d947b8214c19e5302fefc9921d9f8d13516c8bf31d9f642782d098a5d8aa67f45ed4fb33f65c25b1ef8ed SHA512 e901bb8274c666979c1a357a6681d5a0a0f73d5e1d6a4e87eb2f23b16e2ba28592b7d5bd9e2a3e37cf5aec66c159707deaf68619d0cda5e51e1ca98b73253c3a diff --git a/net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild b/net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild new file mode 100644 index 000000000000..cd7b80b6f7a7 --- /dev/null +++ b/net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Lexmark universal printer driver PPDs" +HOMEPAGE="https://www.lexmark.com/en_us/support/universal-print-driver.html" +SRC_URI="https://downloads.lexmark.com/downloads/drivers/Lexmark-UPD-PPD-Files.tar.Z -> ${P}.tar.Z" +RESTRICT="mirror" + +LICENSE="Lexmark-EU2-0111" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND=" + >=net-print/cups-1.4 + net-dns/avahi +" +BDEPEND="" + +# TODO: add IUSE for foomatic and install those files too + +S="${WORKDIR}"/ppd_files + +QA_FLAGS_IGNORED="usr/libexec/cups/filter/LexCommandFileFilterG2" + +src_prepare() { + default + sed -i 's:/usr/lib/cups/filter/:/usr/libexec/cups/filter/:g' GlobalPPD_1.4/Lexmark_UPD_Series.ppd || die "Unable to patch hard coded PPD paths" +} + +src_install() { + local filterdir + if use amd64; then filterdir="lib64"; + elif use x86; then filterdir="lib"; + else die "No filter for architecture"; fi + + insinto /usr/share/cups/model + exeinto /usr/libexec/cups/filter + + doins "${S}"/GlobalPPD_1.4/Lexmark_UPD_Series.ppd + doexe "${S}"/GlobalPPD_1.4/$filterdir/LexCommandFileFilterG2 + doexe "${S}"/GlobalPPD_1.4/LexFaxPnHFilter +} diff --git a/net-print/lexmark-upd-ppd/metadata.xml b/net-print/lexmark-upd-ppd/metadata.xml new file mode 100644 index 000000000000..78a9d6b02d0f --- /dev/null +++ b/net-print/lexmark-upd-ppd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>zx2c4@gentoo.org</email> +<name>Jason A. Donenfeld</name> +</maintainer> +</pkgmetadata> |