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