1 |
commit: 94bb49a9a28a2531bab1062e258c2d7b43b51663 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 4 17:34:43 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 4 17:35:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94bb49a9 |
7 |
|
8 |
net-print/gutenprint: Add pre-release version (no keywords) |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
net-print/gutenprint/Manifest | 1 + |
13 |
net-print/gutenprint/gutenprint-5.3.0_pre1.ebuild | 94 +++++++++++++++++++++++ |
14 |
2 files changed, 95 insertions(+) |
15 |
|
16 |
diff --git a/net-print/gutenprint/Manifest b/net-print/gutenprint/Manifest |
17 |
index 40c3c132f06..3e54b8fd6af 100644 |
18 |
--- a/net-print/gutenprint/Manifest |
19 |
+++ b/net-print/gutenprint/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST gutenprint-5.2.12.tar.bz2 6898738 BLAKE2B 753fee4b2fad6fdcb3ed5c6bfd8bebf4c1459c86a8e2e6bd5922b367b887b0100b9f3c8562283f7b850fd6b616353e2455c8ccdae3455c537e4ccce04222cf86 SHA512 38dd34ca1946a37d0bdaa7d69f65b11651097b6d7f2b451387afd72b32fc92c3670bf54b46df226ca7a64d78f50117a648e2d6194ebaf2e86627cb29fb0e958e |
22 |
DIST gutenprint-5.2.13-pre1.tar.bz2 6971542 BLAKE2B 50ea5051760ea5a03e2d72c1ae390803e16bd8ec18cd9884f3ef1ae9ddef66fce72823f4c0622f156f013a642acf3a5a60d7fa312b9e35fe198ef755a44ccf02 SHA512 86c04136fa783391abd47aeefe4ce405f2940728ffccf55196f683f1977843f96a0e6d66bc1fe4d7eef7d3fcac3860fa6125d74ae4be088e95450e05b7f855b2 |
23 |
DIST gutenprint-5.2.13.tar.bz2 6995005 BLAKE2B 7f9fe4bfee907fa6fe6de9bde674368701a221ea12459438053c231cc0e181601eb4fc700a95531135aecff2de6b2f41c2c78d89ad4445773efe0c11a8f45a35 SHA512 6a60a5e462bfd754ac4389b7e926715c06847c660df17e40d48cd57ece99a7ea6098bfd16c067cb27d8aef7ef705a2fdca9f05209d1f3ebf168b0ab16af4e36e |
24 |
+DIST gutenprint-5.3.0-pre1.tar.bz2 6979423 BLAKE2B 39093c48b8212da7b1bf1e9fb4c9b8b79a0a5bb67b2846b2ba7c94bbb35e6d0cb03e951984ecaa2e3e8c785c70e5fdf52eadc553b18494edc229026b73974227 SHA512 0b72a76f48351f49eea35338e04a533d9419333339f5eb2c20bc0535a337ce2f77b7f1a1050d0de3e1b3220504fa1ce3b39fa6eee7013b7b3a45fc347b3ee83d |
25 |
|
26 |
diff --git a/net-print/gutenprint/gutenprint-5.3.0_pre1.ebuild b/net-print/gutenprint/gutenprint-5.3.0_pre1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..46cbfb56c28 |
29 |
--- /dev/null |
30 |
+++ b/net-print/gutenprint/gutenprint-5.3.0_pre1.ebuild |
31 |
@@ -0,0 +1,94 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools |
37 |
+ |
38 |
+DESCRIPTION="Ghostscript and cups printer drivers" |
39 |
+HOMEPAGE="http://gutenprint.sourceforge.net" |
40 |
+ |
41 |
+MY_P="${P/_/-}" |
42 |
+S="${WORKDIR}/${MY_P}" |
43 |
+SRC_URI="mirror://sourceforge/gimp-print/${MY_P}.tar.bz2" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
48 |
+ |
49 |
+IUSE="cups gimp gtk nls readline ppds static-libs" |
50 |
+REQUIRED_USE="gimp? ( gtk )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-lang/perl |
54 |
+ readline? ( sys-libs/readline:0= ) |
55 |
+ cups? ( >=net-print/cups-1.1.14 ) |
56 |
+ gimp? ( >=media-gfx/gimp-2.2 x11-libs/gtk+:2 ) |
57 |
+ gtk? ( x11-libs/gtk+:2 ) |
58 |
+ nls? ( virtual/libintl ) |
59 |
+" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ virtual/pkgconfig |
62 |
+ nls? ( sys-devel/gettext ) |
63 |
+" |
64 |
+ |
65 |
+RESTRICT="test" |
66 |
+ |
67 |
+DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} ) |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/${PN}-5.2.4-CFLAGS.patch |
71 |
+ "${FILESDIR}"/${PN}-5.2.10-genppd.patch # bug 382927 |
72 |
+) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ sed -i "s:m4local:m4extra:" Makefile.am || die |
78 |
+ |
79 |
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \ |
80 |
+ -e "s/AM_PROG_CC_STDC/AC_PROG_CC/" \ |
81 |
+ -i configure.ac || die |
82 |
+ |
83 |
+ eautoreconf |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local myeconfargs=( |
88 |
+ --enable-test |
89 |
+ --disable-translated-cups-ppds |
90 |
+ $(use_enable gtk libgutenprintui2) |
91 |
+ $(use_with gimp gimp2) |
92 |
+ $(use_with gimp gimp2-as-gutenprint) |
93 |
+ $(use_with cups) |
94 |
+ $(use_enable nls) |
95 |
+ $(use_with readline) |
96 |
+ $(use_enable static-libs static) |
97 |
+ ) |
98 |
+ |
99 |
+ if use cups && use ppds; then |
100 |
+ myeconfargs+=( --enable-cups-ppds --enable-cups-level3-ppds ) |
101 |
+ else |
102 |
+ myeconfargs+=( --disable-cups-ppds ) |
103 |
+ fi |
104 |
+ |
105 |
+ econf "${myeconfargs[@]}" |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ default |
110 |
+ |
111 |
+ dodoc doc/FAQ.html |
112 |
+ dodoc -r doc/gutenprintui2/html |
113 |
+ rm -r "${ED}"/usr/share/gutenprint/doc || die |
114 |
+ |
115 |
+ find "${ED}" -name '*.la' -exec rm -f '{}' + || die |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ if [[ ${ROOT} == / ]] && [[ -x /usr/sbin/cups-genppdupdate ]]; then |
120 |
+ elog "Updating installed printer ppd files" |
121 |
+ elog $(/usr/sbin/cups-genppdupdate) |
122 |
+ else |
123 |
+ elog "You need to update installed ppds manually using cups-genppdupdate" |
124 |
+ fi |
125 |
+} |