diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2021-11-24 18:34:13 +0100 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2021-11-24 18:35:22 +0100 |
commit | 64cb1d6b5ea49ec23e6818345b419d0e3ff318a6 (patch) | |
tree | 688258ff4bef84ed46f7d8040cc4d7ed3964e2f5 /net-print | |
parent | x11-wm/icewm: Stabilize 2.8.0 ppc, #827030 (diff) | |
download | gentoo-64cb1d6b5ea49ec23e6818345b419d0e3ff318a6.tar.gz gentoo-64cb1d6b5ea49ec23e6818345b419d0e3ff318a6.tar.bz2 gentoo-64cb1d6b5ea49ec23e6818345b419d0e3ff318a6.zip |
net-print/lexmark-upd-ppd: add new ebuild
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/lexmark-upd-ppd/Manifest | 1 | ||||
-rw-r--r-- | net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild | 42 | ||||
-rw-r--r-- | net-print/lexmark-upd-ppd/metadata.xml | 8 |
3 files changed, 51 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..f86132e51e33 --- /dev/null +++ b/net-print/lexmark-upd-ppd/Manifest @@ -0,0 +1 @@ +DIST lexmark-upd-ppd-1.0.0.20210304.tar.Z 1023065 BLAKE2B 5731f76651b108f77c1cf20462b7375a3ed4fd71a8ef358e0941614dbaec3f1337d5d16d3d2c00f69ecea364e9ddc97d0f9c6c6dc32c0d7fff3f4e8e12c6918c SHA512 5b14f2db399152490cb6ad149ce3c4e5fc4bf90464af124cea0a4b2f23a03241e31fe0ca99bf3c4ec5c47523edeb3759cb5ec097066c94fe070bd1c73e254306 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..b7a2747c19a3 --- /dev/null +++ b/net-print/lexmark-upd-ppd/lexmark-upd-ppd-1.0.0.20210304.ebuild @@ -0,0 +1,42 @@ +# 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" + +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 + +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> |