From 6a84e414622fd99c22318ce656a77bb2a0433fc7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Jan 2023 14:07:44 +0000 Subject: gentoo auto-resync : 25:01:2023 - 14:07:44 --- net-print/Manifest.gz | Bin 5749 -> 5753 bytes net-print/cups-filters/Manifest | 2 + net-print/cups-filters/cups-filters-1.28.17.ebuild | 147 +++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 net-print/cups-filters/cups-filters-1.28.17.ebuild (limited to 'net-print') diff --git a/net-print/Manifest.gz b/net-print/Manifest.gz index 9ce06dd44ed3..5b1ce3ea320d 100644 Binary files a/net-print/Manifest.gz and b/net-print/Manifest.gz differ diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest index 31eeea9167c6..ff0be1fc7c9e 100644 --- a/net-print/cups-filters/Manifest +++ b/net-print/cups-filters/Manifest @@ -1,6 +1,8 @@ AUX cups-browsed.init.d-r2 150 BLAKE2B c2098766ae08b38dead0a5bab2e30e1728ab93aa98e74edb6e20f8a885b62189f1368a041c4430ad24a1b92f0ae9cb317ac3390767db0a54ca1532022d44b0bd SHA512 c8a74ad0e5cfd3b565c12eeca50a55b7a6aa3ac92c689fc6632e2a6df5033e6fa7f16ce6c9c2cbf607ad4bd09453ab7d47448cdd04ad8c7e35f0e584b6d96d38 DIST cups-filters-1.28.15.tar.xz 1511452 BLAKE2B 2ed495f063197955456c07c6c06747093997afce53c15e19d081f2e53e6af9a76a41094d2356a1cd7533c3bb63bfb6257792b71ee14121a0daf5863b3b5cd76f SHA512 cc8d43bba6edb2b839f3be5fcbcdeb7633ed0f0f0c2737bcc6957cf95fb4ded8ee412358cc95fdbf289ae897dd0b7f32e689f02d191a8f15930eb4d2deefd74c DIST cups-filters-1.28.16.tar.xz 1512496 BLAKE2B a75a9e09688670332a9fd9a8e4d9004650c6b0fb571a1f48a02e8e4af56d08b7d312d65fdbd66caf82907005dd336de90e2c8bbb46b1ba13d86d8715340f8ce6 SHA512 0369f96a8ae5e33bf75c8765947d5ad7285b3532e9d9b0ded7e206798834c9ade3a2ac3f1d16e0fdd43346f2bc7852c541130e935cbb20f9c1239a53118d1239 +DIST cups-filters-1.28.17.tar.xz 1516052 BLAKE2B 87258391901d55d9e59b06d54603d014e54d224a373529bd70fcd38cded9dc96c88ca73bcea63d7633c065caea3f9e3274cd450aec5f1bd90130d9a88c0d3421 SHA512 320544a48206165581adafb28dbef58f39c66bebd3641be3d180a692605349d9e6af6d464044db9f7bda17a67f4a079370d8cc880cd7873d684b2209882deb35 EBUILD cups-filters-1.28.15-r1.ebuild 3287 BLAKE2B bcc2f0b85f735c1a7c10c1e32a9bd3c6fb975c22e00a33bb082188f9136cb77319d461dc40706b61b601376469b4a16be7826f05fe86f6092330fe8c5bf26f2b SHA512 d0d2117ea64feacc1eb3e6683099f8f79dbe47b060de4dce9e31f784db6b9668d1d993c641747c8ce52d03fcf757f7999e1344aeb636ca725a1e342436c008e8 EBUILD cups-filters-1.28.16-r3.ebuild 3573 BLAKE2B e37e273626d683f80efc41ea10c900b9ff3dea6292474548202f69ac0f05984c31c24e2e47690abc226489982a49f924f1c372af61939473991deaf8ab2bc8e8 SHA512 c5be99203b591b5ddee2c8eea95b81876db4f1f387debd9aee7ca1630b034b1d29d760b0acaaee8d2b6cfe587c9d78e6501805c60fbd8a315167d1ec9b8b6ff5 +EBUILD cups-filters-1.28.17.ebuild 3665 BLAKE2B a5eef3c747cca21d793727bb73ba285923959ea8ba92285814b692de926f0c4e7a65f2c08f3246db3a14ba62faaaf67e96a7a71852de13c2949038e50bd2802c SHA512 02abd7eab72b574ae54f3dcc6180973b812f9558f0510b2418b55dee102d78e65bf1408d2c042253ca49c2d2f5ae872632ea3b358737f7ec3aba546e764ad725 MISC metadata.xml 513 BLAKE2B b265a1645fe0da46a309086d9495564020ea15b7546237dc040589cba2e5d79540860301f8f72484081b726066414ad0414963b7c7c2ce3f08af898502c32521 SHA512 b9234992f05d59bffafb31f3d035e554389f250d8f3b951bb507e300f7cd3a6806406df60b1cae038ab330b3513934ec1250dcf0c9bfdba1bb033e6545727597 diff --git a/net-print/cups-filters/cups-filters-1.28.17.ebuild b/net-print/cups-filters/cups-filters-1.28.17.ebuild new file mode 100644 index 000000000000..343170ff2a30 --- /dev/null +++ b/net-print/cups-filters/cups-filters-1.28.17.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +GENTOO_DEPEND_ON_PERL=no +inherit perl-module systemd flag-o-matic + +DESCRIPTION="Cups filters" +HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters" +SRC_URI=" + https://github.com/OpenPrinting/cups-filters/releases/download/${PV}/${P}.tar.xz + https://www.openprinting.org/download/${PN}/${P}.tar.xz +" + +LICENSE="MIT GPL-2" +SLOT="0" +IUSE="dbus exif +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-text/poppler-0.32[cxx,jpeg?,lcms,tiff?,utils] + >=app-text/qpdf-8.3.0:= + dev-libs/glib:2 + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:2 + >=net-print/cups-1.7.3 + !<=net-print/cups-1.5.9999 + sys-devel/bc + sys-libs/zlib + exif? ( media-libs/libexif ) + dbus? ( sys-apps/dbus ) + foomatic? ( !net-print/foomatic-filters ) + jpeg? ( media-libs/libjpeg-turbo:= ) + ldap? ( net-nds/openldap:= ) + pdf? ( app-text/mupdf:= ) + perl? ( dev-lang/perl:= ) + png? ( media-libs/libpng:= ) + postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) + tiff? ( media-libs/tiff:= ) + zeroconf? ( net-dns/avahi[dbus] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/gdbus-codegen + >=sys-devel/gettext-0.18.3 + virtual/pkgconfig + test? ( media-fonts/dejavu ) +" + +src_configure() { + # (As of 1.28.15, still defaults upstream to c++0x, so it's still needed, + # probably.) + # Bug #626800 + append-cxxflags -std=c++11 + + local myeconfargs=( + --enable-imagefilters + --localstatedir="${EPREFIX}"/var + --with-browseremoteprotocols=DNSSD,CUPS + --with-cups-rundir="${EPREFIX}"/run/cups + --with-fontdir="fonts/conf.avail" + --with-pdftops=pdftops + --with-rcdir=no + --without-php + + $(use_enable exif) + $(use_enable dbus) + $(use_enable foomatic) + $(use_enable ldap) + $(use_enable pclm) + $(use_enable pdf mutool) + $(use_enable postscript ghostscript) + $(use_enable zeroconf avahi) + $(use_with jpeg) + $(use_with png) + $(use_with tiff) + ) + + econf "${myeconfargs[@]}" + + if use perl; then + pushd "${S}"/scripting/perl > /dev/null || die + perl-module_src_configure + popd > /dev/null || die + fi +} + +src_compile() { + default + + if use perl; then + pushd "${S}"/scripting/perl > /dev/null || die + perl-module_src_compile + popd > /dev/null || die + fi +} + +src_test() { + # Avoid perl-module_src_test + default + + if use perl; then + pushd "${S}/scripting/perl" > /dev/null || die + perl-module_src_test + popd > /dev/null || die + fi +} + +src_install() { + default + + if use perl; then + pushd "${S}"/scripting/perl > /dev/null || die + perl-module_src_install + perl_delete_localpod + popd > /dev/null || die + fi + + if use postscript; then + # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 + dosym gstoraster /usr/libexec/cups/filter/pstoraster + dosym gstopxl /usr/libexec/cups/filter/pstopxl + fi + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die + + cp "${FILESDIR}"/cups-browsed.init.d-r2 "${T}"/cups-browsed || die + + if ! use zeroconf ; then + sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die + sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die + fi + + doinitd "${T}"/cups-browsed + systemd_dounit "${S}"/utils/cups-browsed.service +} + +pkg_postinst() { + if ! use foomatic ; then + ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely" + ewarn "necessary. net-print/foomatic-filters as a replacement is deprecated and unmaintained." + fi +} -- cgit v1.2.3