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: Fri, 06 Sep 2019 18:07:23
Message-Id: 1567793180.0a4703cf62de967ad92013b2c50a52e725c811fa.polynomial-c@gentoo
1 commit: 0a4703cf62de967ad92013b2c50a52e725c811fa
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 6 18:06:20 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 6 18:06:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a4703cf
7
8 net-print/cups-filters: Bump to version 1.25.5
9
10 Package-Manager: Portage-2.3.75, Repoman-2.3.17
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.25.5.ebuild | 134 ++++++++++++++++++++++
15 2 files changed, 135 insertions(+)
16
17 diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest
18 index 8c265e1201e..7673124610f 100644
19 --- a/net-print/cups-filters/Manifest
20 +++ b/net-print/cups-filters/Manifest
21 @@ -2,3 +2,4 @@ DIST cups-filters-1.21.6.tar.xz 1474944 BLAKE2B a4c3418accb9d2bf46a366ec6004919d
22 DIST cups-filters-1.22.6.tar.xz 1477584 BLAKE2B 7d833c3e97c510eabcc906bbd01d4d1ef2bf3106d963bdec7f735942e96a830c53ec2c03a4ef580d9fc01f19bae3962c1bd2a98d2af7f03f71988ae374366fee SHA512 6c1c46bd74f700b3ab0a46cb4b5b7ecc93000122e9deb20b43878d876cbe2ceeeb4a3c16ef6de00497b10447d04f2689a5d939d0d49212e7274cc51b4617c296
23 DIST cups-filters-1.25.3.tar.xz 1448840 BLAKE2B d58d93995d1742ceea861896399687717b7791ef6208daaf50e6df715943ac7c5a8709ad93b5d0c66e412ae4832b1969b238f277bdefb1da61b00dd0cb984fc9 SHA512 df3c5fc9e4e0449943abbff19a537057f9def3a18504241581727ed6a39ecad30315d5593bdf31d04d51181dd402a418805185afa15c22dabf34e1e9eea90a81
24 DIST cups-filters-1.25.4.tar.xz 1449676 BLAKE2B 1ba36c013d37d57ebf04a9395638bee8aa3935832ed5f0235f50fcfbc61e4002701dec15f7c45952975fc1e53e7f57fd93f86b9af153a732795745e21e38d329 SHA512 0386c4640249a0325257f9b10a0eee387bc6e8129bde734b6c35704719c0ad60624f9ad44c73cd199768373ffd331fc1b4b4c4c8641f5ec8792ddf8850da510a
25 +DIST cups-filters-1.25.5.tar.xz 1450264 BLAKE2B 126f32604ff4b2599154406177f8aeaf061f9624255177de968f88706a9138ed9fc8f170987bc25bb4c3801b33432c51c304d2b4a1bdc7249b7472d9cbaadca6 SHA512 4e7126f4c439cb7392484dd3531023da5a1c885c7a6c7377260e7cccc2f3f51e3d0aa879965ecdb2625217d6f9ee1ca9c860c4fc05a7959697cd269696f10f59
26
27 diff --git a/net-print/cups-filters/cups-filters-1.25.5.ebuild b/net-print/cups-filters/cups-filters-1.25.5.ebuild
28 new file mode 100644
29 index 00000000000..cdc922f82de
30 --- /dev/null
31 +++ b/net-print/cups-filters/cups-filters-1.25.5.ebuild
32 @@ -0,0 +1,134 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +GENTOO_DEPEND_ON_PERL=no
39 +
40 +inherit perl-module systemd flag-o-matic
41 +
42 +if [[ "${PV}" == "9999" ]] ; then
43 + inherit autotools git-r3
44 + EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git"
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.3.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 + 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 + --enable-imagefilters
94 + --localstatedir="${EPREFIX}"/var
95 + --with-browseremoteprotocols=DNSSD,CUPS
96 + --with-cups-rundir="${EPREFIX}"/run/cups
97 + --with-fontdir="fonts/conf.avail"
98 + --with-pdftops=pdftops
99 + --with-rcdir=no
100 + --without-php
101 + $(use_enable dbus)
102 + $(use_enable foomatic)
103 + $(use_enable ipp_autosetup auto-setup-driverless)
104 + $(use_enable ldap)
105 + $(use_enable pclm)
106 + $(use_enable pdf mutool)
107 + $(use_enable postscript ghostscript)
108 + $(use_enable static-libs static)
109 + $(use_enable zeroconf avahi)
110 + $(use_with jpeg)
111 + $(use_with png)
112 + $(use_with tiff)
113 + )
114 + econf "${myeconfargs[@]}"
115 +}
116 +
117 +src_compile() {
118 + default
119 +
120 + if use perl; then
121 + pushd "${S}/scripting/perl" > /dev/null
122 + perl-module_src_configure
123 + perl-module_src_compile
124 + popd > /dev/null
125 + fi
126 +}
127 +
128 +src_install() {
129 + default
130 +
131 + if use perl; then
132 + pushd "${S}/scripting/perl" > /dev/null
133 + perl-module_src_install
134 + perl_delete_localpod
135 + popd > /dev/null
136 + fi
137 +
138 + if use postscript; then
139 + # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
140 + dosym gstoraster /usr/libexec/cups/filter/pstoraster
141 + dosym gstopxl /usr/libexec/cups/filter/pstopxl
142 + fi
143 +
144 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
145 +
146 + cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die
147 +
148 + if ! use zeroconf ; then
149 + sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
150 + sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
151 + fi
152 +
153 + doinitd "${T}"/cups-browsed
154 + systemd_dounit "${S}/utils/cups-browsed.service"
155 +}
156 +
157 +src_test() {
158 + emake check
159 +}
160 +
161 +pkg_postinst() {
162 + if ! use foomatic ; then
163 + ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely."
164 + ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained."
165 + fi
166 +}