1 |
commit: 2497ad2bba67d4e2e895e57c3e63398250ccf9a0 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 19:52:16 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 19:59:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2497ad2b |
7 |
|
8 |
net-print/cups-filters: Bump to version 1.8.3 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
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.8.3.ebuild | 118 +++++++++++++++++++++ |
15 |
.../cups-filters/files/cups-browsed.init.d-r1 | 9 ++ |
16 |
3 files changed, 128 insertions(+) |
17 |
|
18 |
diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest |
19 |
index 616bd64..afd3694 100644 |
20 |
--- a/net-print/cups-filters/Manifest |
21 |
+++ b/net-print/cups-filters/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST cups-filters-1.5.0.tar.xz 1375588 SHA256 f22a8864e8d5b693795605a31345c08cc6 |
23 |
DIST cups-filters-1.6.0.tar.xz 1377952 SHA256 39e53db81df7aa951507c72ced52b9b0e9e4294c3f83e8b717fb42c03a557c97 SHA512 dd7671dbb13588829337e4ae4d533dc6c1e17f75ca240a6d43bb0a30a2453fffa9a1541d7b041024a6d4cbb939790802a8c3947cd319590fa37c7ce237232b9d WHIRLPOOL 297ec0aeebd336a583f410099711cd6449b7b765fb29099b1ba5fd2d6a4c5dd7fd2824eb7aa26ca59070d7b866a68966d609729a3f58c07e1e13011af7e7e33e |
24 |
DIST cups-filters-1.8.1.tar.xz 1372152 SHA256 4e7d8953f910b7a992471d641590964c20f26da5d94c10de932dde4f5c03e91e SHA512 9b254dbcc90df335b8162495f5c2846f77c8006128458e54753877d0b5e6b1d696ae28378b4b9a8275626d7f537651e1cb55aac67588ee5fa319898912dd9e08 WHIRLPOOL 7a41fdeed84ee1f0f18aa201633ce5e77040499bf7a2ac5cf324f45876ca2a8072ddf5b947d8ac6526839bcd15c351324d556967d4e303d6b96aaf5bd44c2ed3 |
25 |
DIST cups-filters-1.8.2.tar.xz 1372508 SHA256 06d1c2a65e45d92d0e2dc854d13161d01072094efe4fadc23319700c9a259c69 SHA512 71cd08b7955a334fa04834e99365ac8e83d34ba71a4de8a4a3e7cf7fd50768332d1a0588b963b9301f5a88170d3c700c36cf596a45497032202f3e5f18f93f2e WHIRLPOOL eae8c0c7ec83d131e91d89ace89ad12b76ac323e44f395e83cdb39340c9228a1e9436b2ccbe2c32ac02b2b868bce204a28f48261f71d8a2fccd4b7cfaff27814 |
26 |
+DIST cups-filters-1.8.3.tar.xz 1373028 SHA256 e1e786f1fbcd3a203d87ebb4106a0ba8d579953cbe22056d12d4ee8143f5341a SHA512 5c3648670ae141038a373c4e800e81a7584759e3caf8c4e4468cb0da11c0ff521ac80678e603856c7209da6638673400305c38903cb27e3b4d792d17947e2af4 WHIRLPOOL 0c0ff9b767f35a61f4b9b2f57392d1a6afce35decf9216e77f7503b62bd67da0fa05f9ed507518599e03d27de50458823499989bf6bfd8d3a3da162292819157 |
27 |
|
28 |
diff --git a/net-print/cups-filters/cups-filters-1.8.3.ebuild b/net-print/cups-filters/cups-filters-1.8.3.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..a8a9625 |
31 |
--- /dev/null |
32 |
+++ b/net-print/cups-filters/cups-filters-1.8.3.ebuild |
33 |
@@ -0,0 +1,118 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+GENTOO_DEPEND_ON_PERL=no |
41 |
+ |
42 |
+inherit eutils perl-module systemd |
43 |
+ |
44 |
+if [[ "${PV}" == "9999" ]] ; then |
45 |
+ inherit bzr |
46 |
+ EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters" |
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 ldap perl png +postscript static-libs tiff zeroconf" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) |
60 |
+ >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils,xpdf-headers(+)] |
61 |
+ >=app-text/qpdf-3.0.2:= |
62 |
+ dev-libs/glib:2 |
63 |
+ media-libs/fontconfig |
64 |
+ media-libs/freetype:2 |
65 |
+ media-libs/lcms:2 |
66 |
+ >=net-print/cups-1.7.3 |
67 |
+ !<=net-print/cups-1.5.9999 |
68 |
+ sys-devel/bc |
69 |
+ sys-libs/zlib |
70 |
+ dbus? ( sys-apps/dbus ) |
71 |
+ foomatic? ( !net-print/foomatic-filters ) |
72 |
+ jpeg? ( virtual/jpeg:0 ) |
73 |
+ ldap? ( net-nds/openldap ) |
74 |
+ perl? ( dev-lang/perl:= ) |
75 |
+ png? ( media-libs/libpng:0= ) |
76 |
+ tiff? ( media-libs/tiff:0 ) |
77 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
78 |
+" |
79 |
+DEPEND="${RDEPEND} |
80 |
+ dev-util/gdbus-codegen |
81 |
+" |
82 |
+ |
83 |
+src_configure() { |
84 |
+ econf \ |
85 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
86 |
+ --localstatedir="${EPREFIX}"/var \ |
87 |
+ --with-cups-rundir="${EPREFIX}"/run/cups \ |
88 |
+ $(use_enable dbus) \ |
89 |
+ $(use_enable zeroconf avahi) \ |
90 |
+ $(use_enable static-libs static) \ |
91 |
+ $(use_enable foomatic) \ |
92 |
+ $(use_enable ldap) \ |
93 |
+ $(use_enable postscript ghostscript) \ |
94 |
+ $(use_enable postscript ijs) \ |
95 |
+ --with-fontdir="fonts/conf.avail" \ |
96 |
+ --with-pdftops=pdftops \ |
97 |
+ --enable-imagefilters \ |
98 |
+ $(use_with jpeg) \ |
99 |
+ $(use_with png) \ |
100 |
+ $(use_with tiff) \ |
101 |
+ --with-rcdir=no \ |
102 |
+ --with-browseremoteprotocols=DNSSD,CUPS \ |
103 |
+ --without-php |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ MAKEOPTS=-j1 default |
108 |
+ |
109 |
+ if use perl; then |
110 |
+ pushd "${S}/scripting/perl" > /dev/null |
111 |
+ perl-module_src_configure |
112 |
+ perl-module_src_compile |
113 |
+ popd > /dev/null |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ default |
119 |
+ |
120 |
+ if use perl; then |
121 |
+ pushd "${S}/scripting/perl" > /dev/null |
122 |
+ perl-module_src_install |
123 |
+ perl_delete_localpod |
124 |
+ popd > /dev/null |
125 |
+ fi |
126 |
+ |
127 |
+ if use postscript; then |
128 |
+ # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 |
129 |
+ dosym gstoraster /usr/libexec/cups/filter/pstoraster |
130 |
+ dosym gstopxl /usr/libexec/cups/filter/pstopxl |
131 |
+ fi |
132 |
+ |
133 |
+ prune_libtool_files --all |
134 |
+ |
135 |
+ cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die |
136 |
+ |
137 |
+ if ! use zeroconf ; then |
138 |
+ sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die |
139 |
+ sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die |
140 |
+ fi |
141 |
+ |
142 |
+ doinitd "${T}"/cups-browsed |
143 |
+ systemd_dounit "${S}/utils/cups-browsed.service" |
144 |
+} |
145 |
+ |
146 |
+pkg_postinst() { |
147 |
+ if ! use foomatic ; then |
148 |
+ ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely." |
149 |
+ ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained." |
150 |
+ fi |
151 |
+} |
152 |
|
153 |
diff --git a/net-print/cups-filters/files/cups-browsed.init.d-r1 b/net-print/cups-filters/files/cups-browsed.init.d-r1 |
154 |
new file mode 100644 |
155 |
index 0000000..dddfe7b |
156 |
--- /dev/null |
157 |
+++ b/net-print/cups-filters/files/cups-browsed.init.d-r1 |
158 |
@@ -0,0 +1,9 @@ |
159 |
+#!/sbin/openrc-run |
160 |
+ |
161 |
+pidfile="/var/run/cups-browsed.pid" |
162 |
+command="/usr/sbin/cups-browsed" |
163 |
+command_background="true" |
164 |
+ |
165 |
+depend() { |
166 |
+ need cupsd avahi-daemon |
167 |
+} |