1 |
commit: 727e2f40ff61701e8438883befb97b9eaebeb292 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 25 07:25:32 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 25 07:27:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=727e2f40 |
7 |
|
8 |
net-print/cups-filters: add 1.28.16 |
9 |
|
10 |
- Add USE=exif |
11 |
- Don't call perl-module_src_configure in src_compile |
12 |
- Run Perl tests too |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
net-print/cups-filters/Manifest | 1 + |
17 |
net-print/cups-filters/cups-filters-1.28.16.ebuild | 144 +++++++++++++++++++++ |
18 |
2 files changed, 145 insertions(+) |
19 |
|
20 |
diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest |
21 |
index 1093167a1966..a80d54825f57 100644 |
22 |
--- a/net-print/cups-filters/Manifest |
23 |
+++ b/net-print/cups-filters/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST cups-filters-1.28.15.tar.xz 1511452 BLAKE2B 2ed495f063197955456c07c6c06747093997afce53c15e19d081f2e53e6af9a76a41094d2356a1cd7533c3bb63bfb6257792b71ee14121a0daf5863b3b5cd76f SHA512 cc8d43bba6edb2b839f3be5fcbcdeb7633ed0f0f0c2737bcc6957cf95fb4ded8ee412358cc95fdbf289ae897dd0b7f32e689f02d191a8f15930eb4d2deefd74c |
26 |
+DIST cups-filters-1.28.16.tar.xz 1512496 BLAKE2B a75a9e09688670332a9fd9a8e4d9004650c6b0fb571a1f48a02e8e4af56d08b7d312d65fdbd66caf82907005dd336de90e2c8bbb46b1ba13d86d8715340f8ce6 SHA512 0369f96a8ae5e33bf75c8765947d5ad7285b3532e9d9b0ded7e206798834c9ade3a2ac3f1d16e0fdd43346f2bc7852c541130e935cbb20f9c1239a53118d1239 |
27 |
|
28 |
diff --git a/net-print/cups-filters/cups-filters-1.28.16.ebuild b/net-print/cups-filters/cups-filters-1.28.16.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..a7f8fbc47ef5 |
31 |
--- /dev/null |
32 |
+++ b/net-print/cups-filters/cups-filters-1.28.16.ebuild |
33 |
@@ -0,0 +1,144 @@ |
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 |
+inherit perl-module systemd flag-o-matic |
41 |
+ |
42 |
+DESCRIPTION="Cups filters" |
43 |
+HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters" |
44 |
+SRC_URI="https://www.openprinting.org/download/${PN}/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="MIT GPL-2" |
47 |
+SLOT="0" |
48 |
+IUSE="dbus exif +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
50 |
+ |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=app-text/poppler-0.32[cxx,jpeg?,lcms,tiff?,utils] |
55 |
+ >=app-text/qpdf-8.3.0:= |
56 |
+ dev-libs/glib:2 |
57 |
+ media-libs/fontconfig |
58 |
+ media-libs/freetype:2 |
59 |
+ media-libs/lcms:2 |
60 |
+ >=net-print/cups-1.7.3 |
61 |
+ !<=net-print/cups-1.5.9999 |
62 |
+ sys-devel/bc |
63 |
+ sys-libs/zlib |
64 |
+ exif? ( media-libs/libexif ) |
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 |
+ # (As of 1.28.15, still defaults upstream to c++0x, so it's still needed, |
86 |
+ # probably.) |
87 |
+ # Bug #626800 |
88 |
+ append-cxxflags -std=c++11 |
89 |
+ |
90 |
+ local myeconfargs=( |
91 |
+ --enable-imagefilters |
92 |
+ --localstatedir="${EPREFIX}"/var |
93 |
+ --with-browseremoteprotocols=DNSSD,CUPS |
94 |
+ --with-cups-rundir="${EPREFIX}"/run/cups |
95 |
+ --with-fontdir="fonts/conf.avail" |
96 |
+ --with-pdftops=pdftops |
97 |
+ --with-rcdir=no |
98 |
+ --without-php |
99 |
+ |
100 |
+ $(use_enable exif) |
101 |
+ $(use_enable dbus) |
102 |
+ $(use_enable foomatic) |
103 |
+ $(use_enable ldap) |
104 |
+ $(use_enable pclm) |
105 |
+ $(use_enable pdf mutool) |
106 |
+ $(use_enable postscript ghostscript) |
107 |
+ $(use_enable zeroconf avahi) |
108 |
+ $(use_with jpeg) |
109 |
+ $(use_with png) |
110 |
+ $(use_with tiff) |
111 |
+ ) |
112 |
+ |
113 |
+ econf "${myeconfargs[@]}" |
114 |
+ |
115 |
+ if use perl; then |
116 |
+ pushd "${S}"/scripting/perl > /dev/null || die |
117 |
+ perl-module_src_configure |
118 |
+ popd > /dev/null || die |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ default |
124 |
+ |
125 |
+ if use perl; then |
126 |
+ pushd "${S}"/scripting/perl > /dev/null || die |
127 |
+ perl-module_src_compile |
128 |
+ popd > /dev/null || die |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+src_test() { |
133 |
+ # Avoid perl-module_src_test |
134 |
+ default |
135 |
+ |
136 |
+ if use perl; then |
137 |
+ pushd "${S}/scripting/perl" > /dev/null || die |
138 |
+ perl-module_src_test |
139 |
+ popd > /dev/null || die |
140 |
+ fi |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ default |
145 |
+ |
146 |
+ if use perl; then |
147 |
+ pushd "${S}"/scripting/perl > /dev/null || die |
148 |
+ perl-module_src_install |
149 |
+ perl_delete_localpod |
150 |
+ popd > /dev/null || die |
151 |
+ fi |
152 |
+ |
153 |
+ if use postscript; then |
154 |
+ # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 |
155 |
+ dosym gstoraster /usr/libexec/cups/filter/pstoraster |
156 |
+ dosym gstopxl /usr/libexec/cups/filter/pstopxl |
157 |
+ fi |
158 |
+ |
159 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
160 |
+ |
161 |
+ cp "${FILESDIR}"/cups-browsed.init.d-r2 "${T}"/cups-browsed || die |
162 |
+ |
163 |
+ if ! use zeroconf ; then |
164 |
+ sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die |
165 |
+ sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die |
166 |
+ fi |
167 |
+ |
168 |
+ doinitd "${T}"/cups-browsed |
169 |
+ systemd_dounit "${S}"/utils/cups-browsed.service |
170 |
+} |
171 |
+ |
172 |
+pkg_postinst() { |
173 |
+ if ! use foomatic ; then |
174 |
+ ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely" |
175 |
+ ewarn "necessary. net-print/foomatic-filters as a replacement is deprecated and unmaintained." |
176 |
+ fi |
177 |
+} |