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