1 |
commit: f3cc70d13375a337da5c35557940bc15d8ce0896 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 12:11:01 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 12:11:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3cc70d1 |
7 |
|
8 |
net-print/cups-filters: Bump to version 1.20.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
11 |
|
12 |
net-print/cups-filters/Manifest | 1 + |
13 |
net-print/cups-filters/cups-filters-1.20.2.ebuild | 137 ++++++++++++++++++++++ |
14 |
2 files changed, 138 insertions(+) |
15 |
|
16 |
diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest |
17 |
index 5d9a26ecca9..95e78192cc6 100644 |
18 |
--- a/net-print/cups-filters/Manifest |
19 |
+++ b/net-print/cups-filters/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST cups-filters-1.17.9.tar.xz 1454068 BLAKE2B 7c4b1c1a017cbaaf5d413071195ce53e |
21 |
DIST cups-filters-1.19.0.tar.xz 1465524 BLAKE2B 044ab5906f73a9405de55df953c76f7efd09ac4f7800df538c8c3cfd1651de6ed4ea6e3de9378221fef69d983f070b6dcab68dfd2b822fe59aa7f804a8c27907 SHA512 4b580734f7bac78c9d48aad7d8bb9e47227134e594fba76b1c82632fd8dd3e885f3897f7efd1a4b56647b74741f452f4e36d0157591c7fd5d626001028903d30 |
22 |
DIST cups-filters-1.20.0.tar.xz 1465820 BLAKE2B 3ddc0ca7017776a8b69266dc7c19484626f0f6f70a44cefc9c6e1137a7c90123beb1e4d98e75906f5dfe156af01a7725ae8f1ce668f7194f07d4595f6cbba300 SHA512 b71722cc14f81cf8cbed5b8e980c9689adc2daf6cfa72e4174b6842bd89574090831f0e986b5e32a0e9fc4e29836f04e74e72c48918d7f3a8f65faa3a6c077af |
23 |
DIST cups-filters-1.20.1.tar.xz 1467060 BLAKE2B 1d7e8537376fa1d8a574ff90aa6474cf567d67172b796b44d7d144ac9df19c7b080ca5559c09d2fc2c0200c6698438d90e873d91706d792bcc86ee5adb88b1c0 SHA512 9c0fc3c821a24db99a55b0d5e1750946b294e3b265edae4d4701b4bb3ff9d0f19cb282ff44ec8880a0f643a2703ea3419b03d3d32a5e045d86a2d37031cef108 |
24 |
+DIST cups-filters-1.20.2.tar.xz 1468792 BLAKE2B 75153e659aebf3b987bddac60c850a8b21038263bdb2a77772fa2d41295b36b6c35d9244e09efe19e29e19e7a6f1af5adb7be26197890d8a1e642e39b013ee28 SHA512 94cc2a452b8dc1ed5f03b98e0530d7489dd5a369413b0ab0e7b054fcb198e8fee283507de2ef836df8ce9fb7f217794737fa4851baba72e5b79e38ad02ee61ea |
25 |
|
26 |
diff --git a/net-print/cups-filters/cups-filters-1.20.2.ebuild b/net-print/cups-filters/cups-filters-1.20.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..be4ec7dfe0f |
29 |
--- /dev/null |
30 |
+++ b/net-print/cups-filters/cups-filters-1.20.2.ebuild |
31 |
@@ -0,0 +1,137 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+GENTOO_DEPEND_ON_PERL=no |
38 |
+ |
39 |
+inherit perl-module systemd flag-o-matic |
40 |
+ |
41 |
+if [[ "${PV}" == "9999" ]] ; then |
42 |
+ inherit bzr autotools |
43 |
+ EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters" |
44 |
+else |
45 |
+ SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz" |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~m68k-mint" |
47 |
+fi |
48 |
+DESCRIPTION="Cups filters" |
49 |
+HOMEPAGE="https://wiki.linuxfoundation.org/openprinting/cups-filters" |
50 |
+ |
51 |
+LICENSE="MIT GPL-2" |
52 |
+SLOT="0" |
53 |
+IUSE="dbus +foomatic ipp_autosetup jpeg ldap pclm pdf perl png +postscript static-libs test tiff zeroconf" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils] |
57 |
+ >=app-text/qpdf-3.0.2:= |
58 |
+ dev-libs/glib:2 |
59 |
+ media-libs/fontconfig |
60 |
+ media-libs/freetype:2 |
61 |
+ media-libs/lcms:2 |
62 |
+ >=net-print/cups-1.7.3 |
63 |
+ !<=net-print/cups-1.5.9999 |
64 |
+ sys-devel/bc |
65 |
+ sys-libs/zlib |
66 |
+ dbus? ( sys-apps/dbus ) |
67 |
+ foomatic? ( !net-print/foomatic-filters ) |
68 |
+ jpeg? ( virtual/jpeg:0 ) |
69 |
+ ldap? ( net-nds/openldap ) |
70 |
+ pclm? ( >=app-text/qpdf-7.0_beta1 ) |
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 |
+ dev-util/gdbus-codegen |
80 |
+ test? ( media-fonts/dejavu ) |
81 |
+" |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ [[ "${PV}" == "9999" ]] && eautoreconf |
86 |
+ |
87 |
+ # Bug #626800 |
88 |
+ append-cxxflags -std=c++11 |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ local myeconfargs=( |
93 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" |
94 |
+ --enable-imagefilters |
95 |
+ --localstatedir="${EPREFIX}"/var |
96 |
+ --with-browseremoteprotocols=DNSSD,CUPS |
97 |
+ --with-cups-rundir="${EPREFIX}"/run/cups |
98 |
+ --with-fontdir="fonts/conf.avail" |
99 |
+ --with-pdftops=pdftops |
100 |
+ --with-rcdir=no |
101 |
+ --without-php |
102 |
+ $(use_enable dbus) |
103 |
+ $(use_enable foomatic) |
104 |
+ $(use_enable ipp_autosetup auto-setup-driverless) |
105 |
+ $(use_enable ldap) |
106 |
+ $(use_enable pclm) |
107 |
+ $(use_enable pdf mutool) |
108 |
+ $(use_enable postscript ghostscript) |
109 |
+ $(use_enable postscript ijs) |
110 |
+ $(use_enable static-libs static) |
111 |
+ $(use_enable zeroconf avahi) |
112 |
+ $(use_with jpeg) |
113 |
+ $(use_with png) |
114 |
+ $(use_with tiff) |
115 |
+ ) |
116 |
+ econf "${myeconfargs[@]}" |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ default |
121 |
+ |
122 |
+ if use perl; then |
123 |
+ pushd "${S}/scripting/perl" > /dev/null |
124 |
+ perl-module_src_configure |
125 |
+ perl-module_src_compile |
126 |
+ popd > /dev/null |
127 |
+ fi |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ default |
132 |
+ |
133 |
+ if use perl; then |
134 |
+ pushd "${S}/scripting/perl" > /dev/null |
135 |
+ perl-module_src_install |
136 |
+ perl_delete_localpod |
137 |
+ popd > /dev/null |
138 |
+ fi |
139 |
+ |
140 |
+ if use postscript; then |
141 |
+ # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 |
142 |
+ dosym gstoraster /usr/libexec/cups/filter/pstoraster |
143 |
+ dosym gstopxl /usr/libexec/cups/filter/pstopxl |
144 |
+ fi |
145 |
+ |
146 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
147 |
+ |
148 |
+ cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die |
149 |
+ |
150 |
+ if ! use zeroconf ; then |
151 |
+ sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die |
152 |
+ sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die |
153 |
+ fi |
154 |
+ |
155 |
+ doinitd "${T}"/cups-browsed |
156 |
+ systemd_dounit "${S}/utils/cups-browsed.service" |
157 |
+} |
158 |
+ |
159 |
+src_test() { |
160 |
+ emake check |
161 |
+} |
162 |
+ |
163 |
+pkg_postinst() { |
164 |
+ if ! use foomatic ; then |
165 |
+ ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely." |
166 |
+ ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained." |
167 |
+ fi |
168 |
+} |