Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/
Date: Sat, 12 Jun 2021 05:07:53
Message-Id: 1623473728.1e79b14e58f43ec8074889ce0b42d8fe03e6f93c.sam@gentoo
1 commit: 1e79b14e58f43ec8074889ce0b42d8fe03e6f93c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 12 04:55:28 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 04:55:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e79b14e
7
8 net-print/cups-filters: add 1.28.8
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-print/cups-filters/Manifest | 1 +
13 net-print/cups-filters/cups-filters-1.28.8.ebuild | 148 ++++++++++++++++++++++
14 2 files changed, 149 insertions(+)
15
16 diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest
17 index f6598a7fd15..9a0303b1da2 100644
18 --- a/net-print/cups-filters/Manifest
19 +++ b/net-print/cups-filters/Manifest
20 @@ -1,2 +1,3 @@
21 DIST cups-filters-1.28.3.tar.xz 1501824 BLAKE2B b4f493681ac2a701648b3b9b071f4ebfb432dd4660b610579ff2ed6cba4f6cd4351d5a1f28f5c096b3ba20d9c45dc87837bf127b9bc98680a98dec58dd0a68ea SHA512 ac139ae7452342bd46e464bff3438d437f1c9a2e719a7b32b7abc22c2667acaa93dfb976decb277a02572e688ecd86289e01fca817bef93018dff2076fb2a30c
22 DIST cups-filters-1.28.7.tar.xz 1503052 BLAKE2B b9d3280871faa79a7c277731bf6eb1eef161537829d4bc07ec36075ebc12a3617dce66994ed708991757ce7d78fc5ab010925a1d3d9811fd11cf1172f4786442 SHA512 fa94f51ca1c208dcacb1814d8b812c9a72dd09475b7cf836b02c72cb5e3290318f37e475ee3ae8d45351715c3a2ccc0df5ac51ae6fc11462f5acdfa303a04727
23 +DIST cups-filters-1.28.8.tar.xz 1502456 BLAKE2B 21dad6dc9a1d2f967f3938f2fc5e35eebadb67da8b526a9ea61599272bd3f87e8efff376661adc02b62b539798cbe46e0f7c5c25ba262da0561b53bbb3d08d5d SHA512 77b39ce2a30ad44d50aa58964b389fa5dd75b2b4307ccb25996050fd176e1e794ad0a66ddd4de76e95a671683c3bf448a4f471272c97a752f25ff6234f7d8511
24
25 diff --git a/net-print/cups-filters/cups-filters-1.28.8.ebuild b/net-print/cups-filters/cups-filters-1.28.8.ebuild
26 new file mode 100644
27 index 00000000000..4c748c67fe6
28 --- /dev/null
29 +++ b/net-print/cups-filters/cups-filters-1.28.8.ebuild
30 @@ -0,0 +1,148 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +GENTOO_DEPEND_ON_PERL=no
37 +
38 +inherit autotools perl-module systemd flag-o-matic
39 +
40 +if [[ "${PV}" == "9999" ]] ; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git"
43 +else
44 + SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
46 +fi
47 +DESCRIPTION="Cups filters"
48 +HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
49 +
50 +LICENSE="MIT GPL-2"
51 +SLOT="0"
52 +IUSE="dbus +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf"
53 +
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils]
58 + >=app-text/qpdf-8.3.0:=
59 + dev-libs/glib:2
60 + media-libs/fontconfig
61 + media-libs/freetype:2
62 + media-libs/lcms:2
63 + >=net-print/cups-1.7.3
64 + !<=net-print/cups-1.5.9999
65 + sys-devel/bc
66 + sys-libs/zlib
67 + dbus? ( sys-apps/dbus )
68 + foomatic? ( !net-print/foomatic-filters )
69 + jpeg? ( virtual/jpeg:0 )
70 + ldap? ( net-nds/openldap )
71 + pdf? ( app-text/mupdf )
72 + perl? ( dev-lang/perl:= )
73 + png? ( media-libs/libpng:0= )
74 + postscript? ( >=app-text/ghostscript-gpl-9.09[cups] )
75 + tiff? ( media-libs/tiff:0 )
76 + zeroconf? ( net-dns/avahi[dbus] )
77 +"
78 +DEPEND="${RDEPEND}"
79 +BDEPEND="
80 + dev-util/gdbus-codegen
81 + >=sys-devel/gettext-0.18.3
82 + virtual/pkgconfig
83 + test? ( media-fonts/dejavu )
84 +"
85 +
86 +src_prepare() {
87 + local need_eautoreconf=
88 +
89 + default
90 +
91 + if ! use test ; then
92 + eapply "${FILESDIR}"/${PN}-1.28.2-make-missing-testfont-non-fatal.patch
93 + need_eautoreconf=yes
94 + elif [[ "${PV}" == "9999" ]] ; then
95 + need_eautoreconf=yes
96 + fi
97 +
98 + [[ -n ${need_eautoreconf} ]] && eautoreconf
99 +
100 + # Bug #626800
101 + append-cxxflags -std=c++11
102 +}
103 +
104 +src_configure() {
105 + local myeconfargs=(
106 + --enable-imagefilters
107 + --localstatedir="${EPREFIX}"/var
108 + --with-browseremoteprotocols=DNSSD,CUPS
109 + --with-cups-rundir="${EPREFIX}"/run/cups
110 + --with-fontdir="fonts/conf.avail"
111 + --with-pdftops=pdftops
112 + --with-rcdir=no
113 + --without-php
114 + --disable-static
115 + $(use_enable dbus)
116 + $(use_enable foomatic)
117 + $(use_enable ldap)
118 + $(use_enable pclm)
119 + $(use_enable pdf mutool)
120 + $(use_enable postscript ghostscript)
121 + $(use_enable zeroconf avahi)
122 + $(use_with jpeg)
123 + $(use_with png)
124 + $(use_with tiff)
125 + )
126 + econf "${myeconfargs[@]}"
127 +}
128 +
129 +src_compile() {
130 + default
131 +
132 + if use perl; then
133 + pushd "${S}/scripting/perl" > /dev/null || die
134 + perl-module_src_configure
135 + perl-module_src_compile
136 + popd > /dev/null || die
137 + fi
138 +}
139 +
140 +src_test() {
141 + emake check
142 +}
143 +
144 +src_install() {
145 + default
146 +
147 + if use perl; then
148 + pushd "${S}/scripting/perl" > /dev/null || die
149 + perl-module_src_install
150 + perl_delete_localpod
151 + popd > /dev/null || die
152 + fi
153 +
154 + if use postscript; then
155 + # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
156 + dosym gstoraster /usr/libexec/cups/filter/pstoraster
157 + dosym gstopxl /usr/libexec/cups/filter/pstopxl
158 + fi
159 +
160 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
161 +
162 + cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die
163 +
164 + if ! use zeroconf ; then
165 + sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
166 + sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
167 + fi
168 +
169 + doinitd "${T}"/cups-browsed
170 + systemd_dounit "${S}/utils/cups-browsed.service"
171 +}
172 +
173 +pkg_postinst() {
174 + if ! use foomatic ; then
175 + ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely."
176 + ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained."
177 + fi
178 +}