1 |
alexxy 10/02/23 14:59:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gutenprint-5.2.5-r1.ebuild |
5 |
Log: |
6 |
[net-print/gutenprint] Revbump to eapi2 |
7 |
(Portage version: 2.2_rc63/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.10 net-print/gutenprint/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/gutenprint/ChangeLog?rev=1.10&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/gutenprint/ChangeLog?rev=1.10&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/gutenprint/ChangeLog?r1=1.9&r2=1.10 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-print/gutenprint/ChangeLog,v |
19 |
retrieving revision 1.9 |
20 |
retrieving revision 1.10 |
21 |
diff -u -r1.9 -r1.10 |
22 |
--- ChangeLog 23 Feb 2010 12:51:49 -0000 1.9 |
23 |
+++ ChangeLog 23 Feb 2010 14:59:03 -0000 1.10 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-print/gutenprint |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/ChangeLog,v 1.9 2010/02/23 12:51:49 alexxy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/ChangeLog,v 1.10 2010/02/23 14:59:03 alexxy Exp $ |
29 |
+ |
30 |
+*gutenprint-5.2.5-r1 (23 Feb 2010) |
31 |
+ |
32 |
+ 23 Feb 2010; Alexey Shvetsov <alexxy@g.o> |
33 |
+ +gutenprint-5.2.5-r1.ebuild: |
34 |
+ Revbump to EAPI2 |
35 |
|
36 |
23 Feb 2010; Alexey Shvetsov <alexxy@g.o> gutenprint-5.2.5.ebuild: |
37 |
Fix typo in ebuild |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-print/gutenprint/gutenprint-5.2.5-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: gutenprint-5.2.5-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-print/gutenprint/gutenprint-5.2.5-r1.ebuild,v 1.1 2010/02/23 14:59:03 alexxy Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit autotools flag-o-matic eutils multilib |
55 |
|
56 |
IUSE="cups foomaticdb gimp gtk readline ppds" |
57 |
|
58 |
DESCRIPTION="Ghostscript and cups printer drivers" |
59 |
HOMEPAGE="http://gutenprint.sourceforge.net" |
60 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
61 |
SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2" |
62 |
RESTRICT="test" |
63 |
|
64 |
RDEPEND="cups? ( >=net-print/cups-1.1.14 ) |
65 |
app-text/ghostscript-gpl |
66 |
sys-libs/readline |
67 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
68 |
gimp? ( >=media-gfx/gimp-2.2 >=x11-libs/gtk+-2.0 ) |
69 |
dev-lang/perl |
70 |
foomaticdb? ( net-print/foomatic-db-engine )" |
71 |
DEPEND="${RDEPEND} |
72 |
gtk? ( dev-util/pkgconfig )" |
73 |
|
74 |
LICENSE="GPL-2" |
75 |
SLOT="0" |
76 |
|
77 |
src_prepare() { |
78 |
# Respect gentoo CFLAGS |
79 |
epatch "${FILESDIR}/${PN}-5.2.4-CFLAGS.patch" |
80 |
# IJS Patch |
81 |
sed -i -e "s:<ijs\([^/]\):<ijs/ijs\1:g" src/ghost/ijsgutenprint.c || die "sed failed" |
82 |
# Regen configure |
83 |
mkdir m4local |
84 |
AT_M4DIR="m4extra" eautoreconf |
85 |
} |
86 |
|
87 |
src_configure() { |
88 |
if use cups && use ppds; then |
89 |
myconf="${myconf} --enable-cups-ppds --enable-cups-level3-ppds" |
90 |
else |
91 |
myconf="${myconf} --disable-cups-ppds" |
92 |
fi |
93 |
|
94 |
if use gtk || use gimp; then |
95 |
myconf="${myconf} --enable-libgutenprintui2" |
96 |
else |
97 |
myconf="${myconf} --disable-libgutenprintui2" |
98 |
fi |
99 |
|
100 |
use foomaticdb \ |
101 |
&& myconf="${myconf} --with-foomatic3" \ |
102 |
|| myconf="${myconf} --without-foomatic" |
103 |
|
104 |
econf \ |
105 |
--enable-test \ |
106 |
--enable-epson \ |
107 |
--with-ghostscript \ |
108 |
--with-user-guide \ |
109 |
--with-samples \ |
110 |
--with-escputil \ |
111 |
--disable-translated-cups-ppds \ |
112 |
--enable-nls \ |
113 |
$(use_with readline) \ |
114 |
$(use_with gimp gimp2) \ |
115 |
$(use_with gimp gimp2-as-gutenprint) \ |
116 |
$(use_with cups) \ |
117 |
${myconf} || die "econf failed" |
118 |
} |
119 |
|
120 |
src_install () { |
121 |
emake DESTDIR="${D}" install || die "emake install failed" |
122 |
|
123 |
dodoc AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} |
124 |
dohtml doc/FAQ.html |
125 |
dohtml -r doc/users_guide/html doc/developer/developer-html |
126 |
rm -fR "${D}"/usr/share/gutenprint/doc |
127 |
if ! use gtk && ! use gimp; then |
128 |
rm -f "${D}"/usr/$(get_libdir)/pkgconfig/gutenprintui2.pc |
129 |
rm -rf "${D}"/usr/include/gutenprintui2 |
130 |
fi |
131 |
} |
132 |
|
133 |
pkg_postinst() { |
134 |
if [ "${ROOT}" == "/" ] && [ -x /usr/sbin/cups-genppdupdate ]; then |
135 |
elog "Updating installed printer ppd files" |
136 |
elog $(/usr/sbin/cups-genppdupdate) |
137 |
else |
138 |
elog "You need to update installed ppds manually using cups-genppdupdate" |
139 |
fi |
140 |
} |