Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/
Date: Tue, 15 Dec 2015 20:04:31
Message-Id: 1450209852.88eedeed83a636a4d7fbe6976a79340534fa889d.mrueg@gentoo
1 commit: 88eedeed83a636a4d7fbe6976a79340534fa889d
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 15 20:04:12 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 15 20:04:12 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88eedeed
7
8 net-print/cups-filters: Remove vulnerable
9
10 Package-Manager: portage-2.2.26
11
12 net-print/cups-filters/Manifest | 2 -
13 net-print/cups-filters/cups-filters-1.2.0.ebuild | 122 -----------------------
14 net-print/cups-filters/cups-filters-1.3.0.ebuild | 122 -----------------------
15 3 files changed, 246 deletions(-)
16
17 diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest
18 index 91a3dba..7549705 100644
19 --- a/net-print/cups-filters/Manifest
20 +++ b/net-print/cups-filters/Manifest
21 @@ -1,4 +1,2 @@
22 DIST cups-filters-1.0.71.tar.xz 1339116 SHA256 3180aa209c383402822e568ccef8e1ca43f51e30b3af2039c34ebae919a69c1f SHA512 dc243e88d535c8d7e7fd53074b1093a46fc22742504efa09096d2b216846df875e4d914f25d2f726034692538cfdf1b713bc1ef44d199003a21e242b99f44a01 WHIRLPOOL 4afc7079594563f57af81501192cc0cba19db6cd5c10a9544339858a343e245b485e528fbf80eecd711341b23b8321bde817c49db7ddd2f0b801da2b4b9c580d
23 -DIST cups-filters-1.2.0.tar.xz 1357268 SHA256 31dcb71dc79129056a5b0f6d30880bdb6511ee7acd06a3f5bd4e9d2684801d62 SHA512 1389d45607bee8376f23efc9b723df276002bf47292670e6cc872a8896ffe06d9eb0aa6f2be0c8c0ad86c8831bcc8f3779baa78d52224fb17dc2bf4ce9a97ca2 WHIRLPOOL 40b75a8ea04774f264691b85065a05296653c2c8e1de4b459a1ae995b4ea23ddbdd0b2e5ae7ab651f7486962507eb64f211034c6f8f24a958af15c794e12afc5
24 -DIST cups-filters-1.3.0.tar.xz 1362904 SHA256 61b669809dda352a427546e09de5a68a3d960c7646ef5c590772d4aa1b445995 SHA512 3bff2a836be4f2722e2c06ea1ef8faf994c38eba244482cd1b84c33cef4d156e41470a4c7feda31c96ab01fc3872fcbba411ed4ce71fa4b57e817336d7e11888 WHIRLPOOL 156bbf35c129f64ab3900add54ff89c80ddce1b9bb18d5a66ef8b20b2d2c0243d4ba623fa398c812def575cf27f131e5f228e697f964543e9190f36b3e31dd9d
25 DIST cups-filters-1.4.0.tar.xz 1373724 SHA256 0aa63f82a3feb5c46136b917722ee1565b4c1e2e533db4716f62d31e29c6579a SHA512 c1f8b45ef79747405cbe114fc35f14cf30d3a7f13753bbfb524cb2ce7c7e4f10a4af8cd1df978a231c119d0e893efed946b25183f8898253b5be72ed9c926963 WHIRLPOOL ebce525e81f2ce6b040b154111e71df49f341337073795a156ac20b502352f2711034a651e1910cde7266de2177f02dabcf9efd86ab1d2afc57140dd4a697d9e
26
27 diff --git a/net-print/cups-filters/cups-filters-1.2.0.ebuild b/net-print/cups-filters/cups-filters-1.2.0.ebuild
28 deleted file mode 100644
29 index 52f9132..0000000
30 --- a/net-print/cups-filters/cups-filters-1.2.0.ebuild
31 +++ /dev/null
32 @@ -1,122 +0,0 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI=5
38 -
39 -GENTOO_DEPEND_ON_PERL=no
40 -
41 -inherit base eutils perl-module autotools systemd
42 -
43 -if [[ "${PV}" == "9999" ]] ; then
44 - inherit bzr
45 - EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
46 - KEYWORDS="~arm64"
47 -else
48 - SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
49 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~m68k-mint"
50 -fi
51 -DESCRIPTION="Cups PDF filters"
52 -HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
53 -
54 -LICENSE="MIT GPL-2"
55 -SLOT="0"
56 -IUSE="dbus +foomatic jpeg perl png static-libs tiff zeroconf"
57 -
58 -RDEPEND="
59 - >=app-text/ghostscript-gpl-9.09
60 - app-text/poppler:=[cxx,jpeg?,lcms,tiff?,xpdf-headers(+)]
61 - >=app-text/qpdf-3.0.2:=
62 - media-libs/fontconfig
63 - media-libs/freetype:2
64 - media-libs/lcms:2
65 - >=net-print/cups-1.7.3
66 - !<=net-print/cups-1.5.9999
67 - sys-devel/bc
68 - sys-libs/zlib
69 - dbus? ( sys-apps/dbus )
70 - foomatic? ( !net-print/foomatic-filters )
71 - jpeg? ( virtual/jpeg:0 )
72 - perl? ( dev-lang/perl:= )
73 - png? ( media-libs/libpng:0= )
74 - tiff? ( media-libs/tiff:0 )
75 - zeroconf? ( net-dns/avahi[dbus] )
76 -"
77 -DEPEND="${RDEPEND}
78 - dev-util/gdbus-codegen
79 -"
80 -
81 -src_prepare() {
82 - base_src_prepare
83 - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
84 - eautoreconf
85 -}
86 -
87 -src_configure() {
88 - econf \
89 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
90 - $(use_enable dbus) \
91 - $(use_enable zeroconf avahi) \
92 - $(use_enable static-libs static) \
93 - --with-fontdir="fonts/conf.avail" \
94 - --with-pdftops=pdftops \
95 - --enable-imagefilters \
96 - $(use_with jpeg) \
97 - $(use_with png) \
98 - $(use_with tiff) \
99 - --with-rcdir=no \
100 - --with-browseremoteprotocols=DNSSD,CUPS \
101 - --without-php
102 -}
103 -
104 -src_compile() {
105 - MAKEOPTS=-j1 default
106 -
107 - if use perl; then
108 - pushd "${S}/scripting/perl" > /dev/null
109 - perl-module_src_configure
110 - perl-module_src_compile
111 - popd > /dev/null
112 - fi
113 -}
114 -
115 -src_install() {
116 - default
117 -
118 - if use perl; then
119 - pushd "${S}/scripting/perl" > /dev/null
120 - perl-module_src_install
121 - perl_delete_localpod
122 - popd > /dev/null
123 - fi
124 -
125 - # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
126 - dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster
127 - dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl
128 -
129 - prune_libtool_files --all
130 -
131 - cp "${FILESDIR}"/cups-browsed.init.d "${T}"/cups-browsed || die
132 -
133 - if ! use zeroconf ; then
134 - sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
135 - sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
136 - fi
137 -
138 - if ! use foomatic ; then
139 - # this needs an upstream solution / configure switch
140 - rm -v "${ED}/usr/bin/foomatic-rip" || die
141 - rm -v "${ED}/usr/libexec/cups/filter/foomatic-rip" || die
142 - rm -v "${ED}/usr/share/man/man1/foomatic-rip.1" || die
143 - fi
144 -
145 - doinitd "${T}"/cups-browsed
146 - systemd_dounit "${S}/utils/cups-browsed.service"
147 -}
148 -
149 -pkg_postinst() {
150 - if ! use foomatic ; then
151 - ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely."
152 - ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained."
153 - fi
154 -}
155
156 diff --git a/net-print/cups-filters/cups-filters-1.3.0.ebuild b/net-print/cups-filters/cups-filters-1.3.0.ebuild
157 deleted file mode 100644
158 index 52f9132..0000000
159 --- a/net-print/cups-filters/cups-filters-1.3.0.ebuild
160 +++ /dev/null
161 @@ -1,122 +0,0 @@
162 -# Copyright 1999-2015 Gentoo Foundation
163 -# Distributed under the terms of the GNU General Public License v2
164 -# $Id$
165 -
166 -EAPI=5
167 -
168 -GENTOO_DEPEND_ON_PERL=no
169 -
170 -inherit base eutils perl-module autotools systemd
171 -
172 -if [[ "${PV}" == "9999" ]] ; then
173 - inherit bzr
174 - EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
175 - KEYWORDS="~arm64"
176 -else
177 - SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
178 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~m68k-mint"
179 -fi
180 -DESCRIPTION="Cups PDF filters"
181 -HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
182 -
183 -LICENSE="MIT GPL-2"
184 -SLOT="0"
185 -IUSE="dbus +foomatic jpeg perl png static-libs tiff zeroconf"
186 -
187 -RDEPEND="
188 - >=app-text/ghostscript-gpl-9.09
189 - app-text/poppler:=[cxx,jpeg?,lcms,tiff?,xpdf-headers(+)]
190 - >=app-text/qpdf-3.0.2:=
191 - media-libs/fontconfig
192 - media-libs/freetype:2
193 - media-libs/lcms:2
194 - >=net-print/cups-1.7.3
195 - !<=net-print/cups-1.5.9999
196 - sys-devel/bc
197 - sys-libs/zlib
198 - dbus? ( sys-apps/dbus )
199 - foomatic? ( !net-print/foomatic-filters )
200 - jpeg? ( virtual/jpeg:0 )
201 - perl? ( dev-lang/perl:= )
202 - png? ( media-libs/libpng:0= )
203 - tiff? ( media-libs/tiff:0 )
204 - zeroconf? ( net-dns/avahi[dbus] )
205 -"
206 -DEPEND="${RDEPEND}
207 - dev-util/gdbus-codegen
208 -"
209 -
210 -src_prepare() {
211 - base_src_prepare
212 - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
213 - eautoreconf
214 -}
215 -
216 -src_configure() {
217 - econf \
218 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
219 - $(use_enable dbus) \
220 - $(use_enable zeroconf avahi) \
221 - $(use_enable static-libs static) \
222 - --with-fontdir="fonts/conf.avail" \
223 - --with-pdftops=pdftops \
224 - --enable-imagefilters \
225 - $(use_with jpeg) \
226 - $(use_with png) \
227 - $(use_with tiff) \
228 - --with-rcdir=no \
229 - --with-browseremoteprotocols=DNSSD,CUPS \
230 - --without-php
231 -}
232 -
233 -src_compile() {
234 - MAKEOPTS=-j1 default
235 -
236 - if use perl; then
237 - pushd "${S}/scripting/perl" > /dev/null
238 - perl-module_src_configure
239 - perl-module_src_compile
240 - popd > /dev/null
241 - fi
242 -}
243 -
244 -src_install() {
245 - default
246 -
247 - if use perl; then
248 - pushd "${S}/scripting/perl" > /dev/null
249 - perl-module_src_install
250 - perl_delete_localpod
251 - popd > /dev/null
252 - fi
253 -
254 - # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
255 - dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster
256 - dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl
257 -
258 - prune_libtool_files --all
259 -
260 - cp "${FILESDIR}"/cups-browsed.init.d "${T}"/cups-browsed || die
261 -
262 - if ! use zeroconf ; then
263 - sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
264 - sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
265 - fi
266 -
267 - if ! use foomatic ; then
268 - # this needs an upstream solution / configure switch
269 - rm -v "${ED}/usr/bin/foomatic-rip" || die
270 - rm -v "${ED}/usr/libexec/cups/filter/foomatic-rip" || die
271 - rm -v "${ED}/usr/share/man/man1/foomatic-rip.1" || die
272 - fi
273 -
274 - doinitd "${T}"/cups-browsed
275 - systemd_dounit "${S}/utils/cups-browsed.service"
276 -}
277 -
278 -pkg_postinst() {
279 - if ! use foomatic ; then
280 - ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely."
281 - ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained."
282 - fi
283 -}