Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/gutenprint/, net-print/gutenprint/files/
Date: Thu, 01 Sep 2016 06:07:52
Message-Id: 1472710049.e779b82ca1b5984980561c3e17af70201ae7a71d.radhermit@gentoo
1 commit: e779b82ca1b5984980561c3e17af70201ae7a71d
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 06:02:56 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 06:07:29 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e779b82c
7
8 net-print/gutenprint: version bump to 5.2.11
9
10 net-print/gutenprint/Manifest | 1 +
11 ...rint-switch-from-ijs-config-to-pkg-config.patch | 60 +++++++++++++
12 net-print/gutenprint/gutenprint-5.2.11.ebuild | 97 ++++++++++++++++++++++
13 3 files changed, 158 insertions(+)
14
15 diff --git a/net-print/gutenprint/Manifest b/net-print/gutenprint/Manifest
16 index 46db193..a38c2d3 100644
17 --- a/net-print/gutenprint/Manifest
18 +++ b/net-print/gutenprint/Manifest
19 @@ -1,2 +1,3 @@
20 DIST gutenprint-5.2.10.tar.bz2 6241585 SHA256 431f352b412dfb9809d126a85a37a1fcd1c1826275ace8cdcd4fd9a6ee360e59 SHA512 bb71fd5c127748730dde01471b09907d500b72c35401abaf92c631d04156bacafd4b1a9baef61f48db6c4a622fd612a1e2834ed30207b5b178767ea9d9d5e1ac WHIRLPOOL 4d809f99df3515fc878d3be5df4f48b66fc764eea1f62db15e75d6ca7326c24c6c228bd975575c20f3e7bc8398c1e492e1025784e64a4534f82ad89c7ba92990
21 +DIST gutenprint-5.2.11.tar.bz2 6570118 SHA256 c1a34cd2e02527de4d2a9bf6c14732cb9aa11b333f771eb6043fdc974de24df9 SHA512 f4010e489dd6763b19113abf1d55e84cea8d36b920d03dbe204dba30ab0d3fb3e3391e739cd1a56e2f63581c8ce4a856a7f747deb6e7b18d7e1f7a3d87901c60 WHIRLPOOL 0c6a0495d59ef720da74b610f6c26515ea5d0748e78f1b8eb4bb12277dca874b428ef17f9cf668f0449362900580ecefe35c2d1ebf6f6025519c886fc8a83b9e
22 DIST gutenprint-5.2.9.tar.bz2 5720450 SHA256 4b27e4f06f32d30271df89ecb6089bb11bcf2caec5f60b0909e083095354bca0 SHA512 082990e09c49247baab9575b34882026770923915eb1c4ff6f75475cd341691263c7567a430542ead868e80ee6ea82e00ad12c89be0611913f934d66a10a9549 WHIRLPOOL d466288983c4a194c76f505a5adc16af00a651c07a584ff860919b1cf0e2ca870091eac76c6b7d466d9508f3e77a4c6095efe593c0350feeb41dd761adb6e92a
23
24 diff --git a/net-print/gutenprint/files/gutenprint-switch-from-ijs-config-to-pkg-config.patch b/net-print/gutenprint/files/gutenprint-switch-from-ijs-config-to-pkg-config.patch
25 new file mode 100644
26 index 00000000..99ef9b7
27 --- /dev/null
28 +++ b/net-print/gutenprint/files/gutenprint-switch-from-ijs-config-to-pkg-config.patch
29 @@ -0,0 +1,60 @@
30 +From 233a909a77dd4c18d359bf32cd8ef99ed1b7b459 Mon Sep 17 00:00:00 2001
31 +From: speachy <>
32 +Date: Fri, 29 Jan 2016 12:41:21 +0000
33 +Subject: [PATCH] Apply patch from Brian Norris to switch from 'ijs-config' to
34 + 'pkg-config' for IJS support, as the former does not work for
35 + cross-compilation.
36 +
37 +---
38 + configure.ac | 10 ++++------
39 + src/ghost/ijsgutenprint.c | 4 ++--
40 + 2 files changed, 6 insertions(+), 8 deletions(-)
41 +
42 +diff --git a/configure.ac b/configure.ac
43 +index 800794b..fac8361 100644
44 +--- a/configure.ac
45 ++++ b/configure.ac
46 +@@ -371,9 +371,9 @@ if test "$BUILD_FOOMATIC_3" = "yes" ; then
47 + BUILD_FOOMATIC=yes
48 + fi
49 +
50 +-AC_PATH_PROG(IJS_CONFIG, ijs-config)
51 ++PKG_CHECK_MODULES(IJS, ijs, [HAVE_IJS=yes], [HAVE_IJS=no])
52 +
53 +-if test -z "${IJS_CONFIG}" ; then
54 ++if test "x${HAVE_IJS}" = "xno" ; then
55 + BUILD_GHOSTSCRIPT="no"
56 + else
57 + BUILD_GHOSTSCRIPT="yes"
58 +@@ -620,11 +620,9 @@ fi
59 +
60 + dnl ijs checks
61 + if test x${BUILD_GHOSTSCRIPT} = xyes ; then
62 +- if test -z "$IJS_CONFIG" ; then
63 +- AC_MSG_ERROR(Cannot find ijs-config; please ensure Ghostscript 6.53 or above is installed);
64 ++ if test -z "$HAVE_IJS" ; then
65 ++ AC_MSG_ERROR(Cannot find ijs; please ensure Ghostscript 6.53 or above is installed);
66 + fi
67 +- IJS_CFLAGS=`$IJS_CONFIG --cflags`
68 +- IJS_LIBS=`$IJS_CONFIG --libs`
69 + fi
70 +
71 + GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION}
72 +diff --git a/src/ghost/ijsgutenprint.c b/src/ghost/ijsgutenprint.c
73 +index a3621a2..69aadf1 100644
74 +--- a/src/ghost/ijsgutenprint.c
75 ++++ b/src/ghost/ijsgutenprint.c
76 +@@ -35,8 +35,8 @@
77 + #include <string.h>
78 + #include <unistd.h>
79 + #include <locale.h>
80 +-#include <ijs.h>
81 +-#include <ijs_server.h>
82 ++#include <ijs/ijs.h>
83 ++#include <ijs/ijs_server.h>
84 + #include <errno.h>
85 + #include <gutenprint/gutenprint-intl-internal.h>
86 +
87 +--
88 +2.7.3
89 +
90
91 diff --git a/net-print/gutenprint/gutenprint-5.2.11.ebuild b/net-print/gutenprint/gutenprint-5.2.11.ebuild
92 new file mode 100644
93 index 00000000..bd53819
94 --- /dev/null
95 +++ b/net-print/gutenprint/gutenprint-5.2.11.ebuild
96 @@ -0,0 +1,97 @@
97 +# Copyright 1999-2016 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +# $Id$
100 +
101 +EAPI=6
102 +
103 +inherit autotools
104 +
105 +DESCRIPTION="Ghostscript and cups printer drivers"
106 +HOMEPAGE="http://gutenprint.sourceforge.net"
107 +SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2"
108 +
109 +LICENSE="GPL-2"
110 +SLOT="0"
111 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
112 +IUSE="cups foomaticdb gimp gtk nls readline ppds static-libs"
113 +REQUIRED_USE="gimp? ( gtk )"
114 +
115 +RDEPEND="app-text/ghostscript-gpl
116 + dev-lang/perl
117 + readline? ( sys-libs/readline:0= )
118 + cups? ( >=net-print/cups-1.1.14 )
119 + foomaticdb? ( net-print/foomatic-db-engine )
120 + gimp? ( >=media-gfx/gimp-2.2 x11-libs/gtk+:2 )
121 + gtk? ( x11-libs/gtk+:2 )
122 + nls? ( virtual/libintl )"
123 +DEPEND="${RDEPEND}
124 + virtual/pkgconfig
125 + nls? ( sys-devel/gettext )"
126 +
127 +RESTRICT="test"
128 +
129 +DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} )
130 +
131 +PATCHES=(
132 + "${FILESDIR}"/${PN}-5.2.4-CFLAGS.patch
133 + "${FILESDIR}"/${PN}-5.2.10-genppd.patch # bug 382927
134 + "${FILESDIR}"/${PN}-switch-from-ijs-config-to-pkg-config.patch # bug 587916
135 +)
136 +
137 +src_prepare() {
138 + default
139 +
140 + sed -i "s:m4local:m4extra:" Makefile.am || die
141 +
142 + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \
143 + -e "s/AM_PROG_CC_STDC/AC_PROG_CC/" \
144 + -i configure.ac || die
145 +
146 + eautoreconf
147 +}
148 +
149 +src_configure() {
150 + local myeconfargs=(
151 + --enable-test
152 + --with-ghostscript
153 + --disable-translated-cups-ppds
154 + $(use_enable gtk libgutenprintui2)
155 + $(use_with gimp gimp2)
156 + $(use_with gimp gimp2-as-gutenprint)
157 + $(use_with cups)
158 + $(use_enable nls)
159 + $(use_with readline)
160 + $(use_enable static-libs static)
161 + )
162 +
163 + if use cups && use ppds; then
164 + myeconfargs+=( --enable-cups-ppds --enable-cups-level3-ppds )
165 + else
166 + myeconfargs+=( --disable-cups-ppds )
167 + fi
168 +
169 + use foomaticdb \
170 + && myeconfargs+=( --with-foomatic3 ) \
171 + || myeconfargs+=( --without-foomatic )
172 +
173 + econf "${myeconfargs[@]}"
174 +}
175 +
176 +src_install() {
177 + default
178 +
179 + dodoc doc/FAQ.html
180 + dodoc -r doc/gutenprintui2/html
181 + rm -r "${ED}"/usr/share/gutenprint/doc || die
182 +
183 + find "${ED}" -name '*.la' -exec rm -f '{}' + || die
184 +}
185 +
186 +pkg_postinst() {
187 + if [[ ${ROOT} == / ]] && [[ -x /usr/sbin/cups-genppdupdate ]]; then
188 + elog "Updating installed printer ppd files"
189 + elog $(/usr/sbin/cups-genppdupdate)
190 + else
191 + elog "You need to update installed ppds manually using cups-genppdupdate"
192 + fi
193 +}