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