1 |
commit: 61cd037fd7588b7418579bb3810beb267aeb64f4 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Fri May 7 08:56:02 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 10:53:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61cd037f |
7 |
|
8 |
net-print/gutenprint: bump to 5.3.4 |
9 |
|
10 |
This release drops 2 patches, these named files/5.3.3-* |
11 |
|
12 |
Closes: https://bugs.gentoo.org/674078 |
13 |
Closes: https://bugs.gentoo.org/788880 |
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
15 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/20715 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
net-print/gutenprint/Manifest | 1 + |
20 |
net-print/gutenprint/gutenprint-5.3.4.ebuild | 82 ++++++++++++++++++++++++++++ |
21 |
2 files changed, 83 insertions(+) |
22 |
|
23 |
diff --git a/net-print/gutenprint/Manifest b/net-print/gutenprint/Manifest |
24 |
index 88c4bc61669..f709b3a038b 100644 |
25 |
--- a/net-print/gutenprint/Manifest |
26 |
+++ b/net-print/gutenprint/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST gutenprint-5.3.3.tar.xz 5050624 BLAKE2B dbcf74169d0756d991bbdad7338a6e6f995f8eeedc2610677b327abee6aecc787d1cc35949f73c1d93ad274de7d467542b72a5fe0abf58fbc4ec6f21667cbad7 SHA512 d2c47eb4ccc3c46ccb2f1042682edf7443f5c57439ead72f49ecd10537cf967251bacf7ca7da29fb8dceecc7eebd55ed021f2594ff9fb6509bab543fab1dc8d6 |
29 |
+DIST gutenprint-5.3.4.tar.xz 5341824 BLAKE2B 134e59c7dbf9c0ba95b91c717f1e6841f35520b55105feb1ba40b82785c825b8e2a2429990e78186a1455e5c6de9880f911438d514c53c56d05575dd4e2d68a4 SHA512 63de0b62edbe255a7efaaeab1dcd22577b7b46d7e0e48441b79977f19e76bf3862e4e8e18c55dd1f2e7392d555f9e8ee875ea53b90c689852d2343491a8fbcc8 |
30 |
|
31 |
diff --git a/net-print/gutenprint/gutenprint-5.3.4.ebuild b/net-print/gutenprint/gutenprint-5.3.4.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..261ffa287c9 |
34 |
--- /dev/null |
35 |
+++ b/net-print/gutenprint/gutenprint-5.3.4.ebuild |
36 |
@@ -0,0 +1,82 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+inherit autotools |
43 |
+ |
44 |
+DESCRIPTION="Ghostscript and cups printer drivers" |
45 |
+HOMEPAGE="http://gutenprint.sourceforge.net" |
46 |
+ |
47 |
+MY_P="${P/_/-}" |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.xz" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
54 |
+ |
55 |
+IUSE="cups gimp gtk nls readline ppds static-libs" |
56 |
+RESTRICT="test" |
57 |
+REQUIRED_USE="gimp? ( gtk )" |
58 |
+ |
59 |
+BDEPEND=" |
60 |
+ virtual/pkgconfig |
61 |
+ nls? ( sys-devel/gettext ) |
62 |
+" |
63 |
+ |
64 |
+# gimp restriction: https://sourceforge.net/p/gimp-print/bugs/725/ |
65 |
+RDEPEND=" |
66 |
+ dev-lang/perl |
67 |
+ cups? ( >=net-print/cups-1.1.14 ) |
68 |
+ gimp? ( |
69 |
+ media-gfx/gimp:0/2 |
70 |
+ x11-libs/gtk+:2 |
71 |
+ ) |
72 |
+ gtk? ( x11-libs/gtk+:2 ) |
73 |
+ readline? ( sys-libs/readline:0= ) |
74 |
+" |
75 |
+ |
76 |
+DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} ) |
77 |
+PATCHES=( "${FILESDIR}"/${PN}-5.3.1-cflags.patch ) |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local myeconfargs=( |
81 |
+ --enable-test |
82 |
+ --disable-translated-cups-ppds |
83 |
+ $(use_enable gtk libgutenprintui2) |
84 |
+ $(use_with gimp gimp2) |
85 |
+ $(use_with gimp gimp2-as-gutenprint) |
86 |
+ $(use_with cups) |
87 |
+ $(use_enable nls) |
88 |
+ $(use_with readline) |
89 |
+ $(use_enable static-libs static) |
90 |
+ ) |
91 |
+ |
92 |
+ if use cups && use ppds; then |
93 |
+ myeconfargs+=( --enable-cups-ppds --enable-cups-level3-ppds ) |
94 |
+ else |
95 |
+ myeconfargs+=( --disable-cups-ppds ) |
96 |
+ fi |
97 |
+ |
98 |
+ econf "${myeconfargs[@]}" |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ default |
103 |
+ |
104 |
+ dodoc doc/FAQ.html |
105 |
+ dodoc -r doc/gutenprintui2/html |
106 |
+ rm -r "${ED}"/usr/share/gutenprint/doc || die |
107 |
+ |
108 |
+ find "${ED}" -name '*.la' -delete || die |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ if [[ -x /usr/sbin/cups-genppdupdate ]]; then |
113 |
+ elog "Updating installed printer ppd files" |
114 |
+ elog $(/usr/sbin/cups-genppdupdate) |
115 |
+ else |
116 |
+ elog "You need to update installed ppds manually using cups-genppdupdate" |
117 |
+ fi |
118 |
+} |