Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/
Date: Tue, 22 Dec 2015 16:54:34
Message-Id: 1450803254.941715ad561fa6e19f6a368003ac43e2dc1f1943.mrueg@gentoo
1 commit: 941715ad561fa6e19f6a368003ac43e2dc1f1943
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 16:54:14 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 16:54:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941715ad
7
8 net-print/cups-filters: Version bumpy
9
10 Package-Manager: portage-2.2.26
11
12 net-print/cups-filters/Manifest | 1 +
13 net-print/cups-filters/cups-filters-1.5.0.ebuild | 122 +++++++++++++++++++++++
14 2 files changed, 123 insertions(+)
15
16 diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest
17 index 7549705..3ff6c96 100644
18 --- a/net-print/cups-filters/Manifest
19 +++ b/net-print/cups-filters/Manifest
20 @@ -1,2 +1,3 @@
21 DIST cups-filters-1.0.71.tar.xz 1339116 SHA256 3180aa209c383402822e568ccef8e1ca43f51e30b3af2039c34ebae919a69c1f SHA512 dc243e88d535c8d7e7fd53074b1093a46fc22742504efa09096d2b216846df875e4d914f25d2f726034692538cfdf1b713bc1ef44d199003a21e242b99f44a01 WHIRLPOOL 4afc7079594563f57af81501192cc0cba19db6cd5c10a9544339858a343e245b485e528fbf80eecd711341b23b8321bde817c49db7ddd2f0b801da2b4b9c580d
22 DIST cups-filters-1.4.0.tar.xz 1373724 SHA256 0aa63f82a3feb5c46136b917722ee1565b4c1e2e533db4716f62d31e29c6579a SHA512 c1f8b45ef79747405cbe114fc35f14cf30d3a7f13753bbfb524cb2ce7c7e4f10a4af8cd1df978a231c119d0e893efed946b25183f8898253b5be72ed9c926963 WHIRLPOOL ebce525e81f2ce6b040b154111e71df49f341337073795a156ac20b502352f2711034a651e1910cde7266de2177f02dabcf9efd86ab1d2afc57140dd4a697d9e
23 +DIST cups-filters-1.5.0.tar.xz 1375588 SHA256 f22a8864e8d5b693795605a31345c08cc68f85120ebde9a0aa7bc27639815932 SHA512 81574f8368aaef61aeee4369caa394f2c8cdc717b03687d8a17c7927892f07cff68f1efb8d674757cb97001b55fd58fa5c14784a510ce9d31e385b1a73cd18c7 WHIRLPOOL 4201d08a2bb76d349a6b9f7220eb48dea86bb81c0cedbe8dcb8796c49ce26f67f6a7c49677b4fc7b6f865eb20e3c806746f565668e9f9e1e3935630621d032cd
24
25 diff --git a/net-print/cups-filters/cups-filters-1.5.0.ebuild b/net-print/cups-filters/cups-filters-1.5.0.ebuild
26 new file mode 100644
27 index 0000000..7c54732
28 --- /dev/null
29 +++ b/net-print/cups-filters/cups-filters-1.5.0.ebuild
30 @@ -0,0 +1,122 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +GENTOO_DEPEND_ON_PERL=no
38 +
39 +inherit base eutils perl-module autotools systemd
40 +
41 +if [[ "${PV}" == "9999" ]] ; then
42 + inherit bzr
43 + EBZR_REPO_URI="http://bzr.linuxfoundation.org/openprinting/cups-filters"
44 + KEYWORDS=""
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 PDF filters"
50 +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat"
51 +
52 +LICENSE="MIT GPL-2"
53 +SLOT="0"
54 +IUSE="dbus +foomatic jpeg perl png static-libs tiff zeroconf"
55 +
56 +RDEPEND="
57 + >=app-text/ghostscript-gpl-9.09
58 + app-text/poppler:=[cxx,jpeg?,lcms,tiff?,xpdf-headers(+)]
59 + >=app-text/qpdf-3.0.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 + perl? ( dev-lang/perl:= )
71 + png? ( media-libs/libpng:0= )
72 + tiff? ( media-libs/tiff:0 )
73 + zeroconf? ( net-dns/avahi[dbus] )
74 +"
75 +DEPEND="${RDEPEND}
76 + dev-util/gdbus-codegen
77 +"
78 +
79 +src_prepare() {
80 + base_src_prepare
81 + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + econf \
87 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
88 + $(use_enable dbus) \
89 + $(use_enable zeroconf avahi) \
90 + $(use_enable static-libs static) \
91 + --with-fontdir="fonts/conf.avail" \
92 + --with-pdftops=pdftops \
93 + --enable-imagefilters \
94 + $(use_with jpeg) \
95 + $(use_with png) \
96 + $(use_with tiff) \
97 + --with-rcdir=no \
98 + --with-browseremoteprotocols=DNSSD,CUPS \
99 + --without-php
100 +}
101 +
102 +src_compile() {
103 + MAKEOPTS=-j1 default
104 +
105 + if use perl; then
106 + pushd "${S}/scripting/perl" > /dev/null
107 + perl-module_src_configure
108 + perl-module_src_compile
109 + popd > /dev/null
110 + fi
111 +}
112 +
113 +src_install() {
114 + default
115 +
116 + if use perl; then
117 + pushd "${S}/scripting/perl" > /dev/null
118 + perl-module_src_install
119 + perl_delete_localpod
120 + popd > /dev/null
121 + fi
122 +
123 + # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
124 + dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster
125 + dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl
126 +
127 + prune_libtool_files --all
128 +
129 + cp "${FILESDIR}"/cups-browsed.init.d "${T}"/cups-browsed || die
130 +
131 + if ! use zeroconf ; then
132 + sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die
133 + sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
134 + fi
135 +
136 + if ! use foomatic ; then
137 + # this needs an upstream solution / configure switch
138 + rm -v "${ED}/usr/bin/foomatic-rip" || die
139 + rm -v "${ED}/usr/libexec/cups/filter/foomatic-rip" || die
140 + rm -v "${ED}/usr/share/man/man1/foomatic-rip.1" || die
141 + fi
142 +
143 + doinitd "${T}"/cups-browsed
144 + systemd_dounit "${S}/utils/cups-browsed.service"
145 +}
146 +
147 +pkg_postinst() {
148 + if ! use foomatic ; then
149 + ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely."
150 + ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained."
151 + fi
152 +}