1 |
commit: 8569783794a33936e3e034fe2d3ef262d70524f2 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 17 09:15:05 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 17 09:31:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85697837 |
7 |
|
8 |
net-print/cups-filters: Bump to version 1.27.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
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.27.1.ebuild | 139 ++++++++++++++++++++++ |
15 |
2 files changed, 140 insertions(+) |
16 |
|
17 |
diff --git a/net-print/cups-filters/Manifest b/net-print/cups-filters/Manifest |
18 |
index d08bd15c89b..f8f8f173502 100644 |
19 |
--- a/net-print/cups-filters/Manifest |
20 |
+++ b/net-print/cups-filters/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST cups-filters-1.25.11.tar.xz 1482792 BLAKE2B 67801904dbe025933d1209817e23ff7 |
22 |
DIST cups-filters-1.25.13.tar.xz 1485860 BLAKE2B 03fbbbefdd36e8f619fabf17e6e13d051f48f68f87260747a181f6976ff88728d7d01b646227cd5f054e0321f6fe0e64e4c6b1bdba631d9d703304ad98a625eb SHA512 4b5ef647870235436276db68f3ef1879b578807338a025100a1d43115a7330a8f506be631df9c43edb2f1ec15f9a42f15f7cdc725bb5d39612b37bae04631611 |
23 |
DIST cups-filters-1.26.1.tar.xz 1489804 BLAKE2B 8a5b18cdd192b2847889b4a5ab865152653b443ea01246b52a12fc20b022d6d0d09187cb9c2483d684452a8d7308ae60cb8217efe3e2e13de5001f43b727fe8d SHA512 0aaad7ceeb763aa3da4f961c99f85c0200cf4fcd071617506daf97dad4914de38fa744ae692b6fbc1d00a0eec62b4de4d7c5f865fd0e32e4155ab3f0c5a21ede |
24 |
DIST cups-filters-1.26.2.tar.xz 1490192 BLAKE2B 6bc5033c648e42a4590a941fd089c3bf3a901a36e26f12b3cdc892ea41943071903b2df2ef5730b7948270f4f59419083c9423af9482e032958360144fb04e9b SHA512 59a5eaba00e0f384f2b1498e58ea3d7272e42923a69eaa0c107ac103dc539c9bf14a94b7a91a73e7185d8a347b4ac7f4a7a655b1ffc373983da807c582e10264 |
25 |
+DIST cups-filters-1.27.1.tar.xz 1492256 BLAKE2B 30e4915bfc9a4f308defdcf13acc246330499008648edbce4df3efcf29fc960ac2c9a868ebe7cafcffb16b07763a2235ddd3d29a849ea18892b8da1d0f167775 SHA512 3fde635735138fa5ef511466b07f396f96860efcc51d9a01f5b95e86fc71ef48b9d17ba1bbe2eeb29585c3afc8bf26370b8f07df76a3adea2335be90e3fdb91b |
26 |
|
27 |
diff --git a/net-print/cups-filters/cups-filters-1.27.1.ebuild b/net-print/cups-filters/cups-filters-1.27.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7d3a3240e73 |
30 |
--- /dev/null |
31 |
+++ b/net-print/cups-filters/cups-filters-1.27.1.ebuild |
32 |
@@ -0,0 +1,139 @@ |
33 |
+# Copyright 1999-2020 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 ~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 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils] |
60 |
+ >=app-text/qpdf-8.3.0:= |
61 |
+ dev-libs/glib:2 |
62 |
+ media-libs/fontconfig |
63 |
+ media-libs/freetype:2 |
64 |
+ media-libs/lcms:2 |
65 |
+ >=net-print/cups-1.7.3 |
66 |
+ !<=net-print/cups-1.5.9999 |
67 |
+ sys-devel/bc |
68 |
+ sys-libs/zlib |
69 |
+ dbus? ( sys-apps/dbus ) |
70 |
+ foomatic? ( !net-print/foomatic-filters ) |
71 |
+ jpeg? ( virtual/jpeg:0 ) |
72 |
+ ldap? ( net-nds/openldap ) |
73 |
+ pdf? ( app-text/mupdf ) |
74 |
+ perl? ( dev-lang/perl:= ) |
75 |
+ png? ( media-libs/libpng:0= ) |
76 |
+ postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) |
77 |
+ tiff? ( media-libs/tiff:0 ) |
78 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
79 |
+" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+BDEPEND=" |
82 |
+ dev-util/gdbus-codegen |
83 |
+ >=sys-devel/gettext-0.18.3 |
84 |
+ virtual/pkgconfig |
85 |
+ test? ( media-fonts/dejavu ) |
86 |
+" |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ [[ "${PV}" == "9999" ]] && eautoreconf |
91 |
+ |
92 |
+ # Bug #626800 |
93 |
+ append-cxxflags -std=c++11 |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ local myeconfargs=( |
98 |
+ --enable-imagefilters |
99 |
+ --localstatedir="${EPREFIX}"/var |
100 |
+ --with-browseremoteprotocols=DNSSD,CUPS |
101 |
+ --with-cups-rundir="${EPREFIX}"/run/cups |
102 |
+ --with-fontdir="fonts/conf.avail" |
103 |
+ --with-pdftops=pdftops |
104 |
+ --with-rcdir=no |
105 |
+ --without-php |
106 |
+ $(use_enable dbus) |
107 |
+ $(use_enable foomatic) |
108 |
+ $(use_enable ipp_autosetup auto-setup-driverless) |
109 |
+ $(use_enable ldap) |
110 |
+ $(use_enable pclm) |
111 |
+ $(use_enable pdf mutool) |
112 |
+ $(use_enable postscript ghostscript) |
113 |
+ $(use_enable static-libs static) |
114 |
+ $(use_enable zeroconf avahi) |
115 |
+ $(use_with jpeg) |
116 |
+ $(use_with png) |
117 |
+ $(use_with tiff) |
118 |
+ ) |
119 |
+ econf "${myeconfargs[@]}" |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ default |
124 |
+ |
125 |
+ if use perl; then |
126 |
+ pushd "${S}/scripting/perl" > /dev/null |
127 |
+ perl-module_src_configure |
128 |
+ perl-module_src_compile |
129 |
+ popd > /dev/null |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ default |
135 |
+ |
136 |
+ if use perl; then |
137 |
+ pushd "${S}/scripting/perl" > /dev/null |
138 |
+ perl-module_src_install |
139 |
+ perl_delete_localpod |
140 |
+ popd > /dev/null |
141 |
+ fi |
142 |
+ |
143 |
+ if use postscript; then |
144 |
+ # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831 |
145 |
+ dosym gstoraster /usr/libexec/cups/filter/pstoraster |
146 |
+ dosym gstopxl /usr/libexec/cups/filter/pstopxl |
147 |
+ fi |
148 |
+ |
149 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
150 |
+ |
151 |
+ cp "${FILESDIR}"/cups-browsed.init.d-r1 "${T}"/cups-browsed || die |
152 |
+ |
153 |
+ if ! use zeroconf ; then |
154 |
+ sed -i -e 's:need cupsd avahi-daemon:need cupsd:g' "${T}"/cups-browsed || die |
155 |
+ sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die |
156 |
+ fi |
157 |
+ |
158 |
+ doinitd "${T}"/cups-browsed |
159 |
+ systemd_dounit "${S}/utils/cups-browsed.service" |
160 |
+} |
161 |
+ |
162 |
+src_test() { |
163 |
+ emake check |
164 |
+} |
165 |
+ |
166 |
+pkg_postinst() { |
167 |
+ if ! use foomatic ; then |
168 |
+ ewarn "You are disabling the foomatic code in cups-filters. Please do that ONLY if absolutely." |
169 |
+ ewarn "necessary. net-print/foomatic-filters as replacement is deprecated and unmaintained." |
170 |
+ fi |
171 |
+} |