Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/
Date: Tue, 16 Jan 2018 11:06:01
Message-Id: 1516100751.fba1d61e23a40749f6bda1b4b857966acf901847.polynomial-c@gentoo
1 commit: fba1d61e23a40749f6bda1b4b857966acf901847
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 16 10:29:41 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 16 11:05:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fba1d61e
7
8 net-print/cups-filters: Bump to version 1.19.0
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 net-print/cups-filters/Manifest | 1 +
13 net-print/cups-filters/cups-filters-1.19.0.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 afafa34a5f3..46334151aac 100644
18 --- a/net-print/cups-filters/Manifest
19 +++ b/net-print/cups-filters/Manifest
20 @@ -1,3 +1,4 @@
21 DIST cups-filters-1.16.4.tar.xz 1440964 BLAKE2B d25525fe9db6e42b244f15550ddb3e9f58bd7048209f9d62b4896245945e11d5fa1658e5882faf0eb0aaa6a465153d222cd1d90cc94d25895522f5313b9089da SHA512 367c2c1d6755800b88f79808ef0c595aa80b080634299d015828bfb8f0e27085aa052c77e3f3f1645833340caca709bec8e00b46070ff4d13b9994fb1400da60
22 DIST cups-filters-1.17.9.tar.xz 1454068 BLAKE2B 7c4b1c1a017cbaaf5d413071195ce53e3088874e55fd98264018f033f0948449b70623adc2c6e136a7441cf4cbef4470811694379bc798aeff81fe3ed80e66ca SHA512 811d2671c660a2129c207d5d8daaa576b027ba14ac4cf4753d0e8c1190866a684e284f1e7439b864aaab332e429befbc13c567bf6c9fc1a502fe2cd7d11e5ed4
23 DIST cups-filters-1.18.0.tar.xz 1457748 BLAKE2B 6db45707d3c0bdd369407023423a02f8909936daeccdecf1be6007d782888352c15c5590f845e074ca8da271ce1d7262c8b98a0ec8df6e383622654c06730d29 SHA512 260f4d4c635b4ca0222a9a90a6675d7ecb1cf8b4f4428431c263f50f9152537331d2c7d77c4fa0f899a12beecd6500f6ca146f4e2d087cc6525919aa0b922647
24 +DIST cups-filters-1.19.0.tar.xz 1465524 BLAKE2B 044ab5906f73a9405de55df953c76f7efd09ac4f7800df538c8c3cfd1651de6ed4ea6e3de9378221fef69d983f070b6dcab68dfd2b822fe59aa7f804a8c27907 SHA512 4b580734f7bac78c9d48aad7d8bb9e47227134e594fba76b1c82632fd8dd3e885f3897f7efd1a4b56647b74741f452f4e36d0157591c7fd5d626001028903d30
25
26 diff --git a/net-print/cups-filters/cups-filters-1.19.0.ebuild b/net-print/cups-filters/cups-filters-1.19.0.ebuild
27 new file mode 100644
28 index 00000000000..be4ec7dfe0f
29 --- /dev/null
30 +++ b/net-print/cups-filters/cups-filters-1.19.0.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 +}