Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libwmf: ChangeLog libwmf-0.2.8.4-r1.ebuild
Date: Sun, 29 Jun 2008 04:07:05
Message-Id: E1KCoBn-0002rX-1a@stork.gentoo.org
1 darkside 08/06/29 04:06:59
2
3 Modified: ChangeLog
4 Added: libwmf-0.2.8.4-r1.ebuild
5 Log:
6 Add code to to update /etc/gtk-2.0/gdk-pixbuf.loaders, copied from librsvg ebuild. Bug #221919, thanks to Maciej Grela <thermal@××.pl> for reporting
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.22-gentoo-r2 i686)
8
9 Revision Changes Path
10 1.56 media-libs/libwmf/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libwmf/ChangeLog?rev=1.56&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libwmf/ChangeLog?rev=1.56&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libwmf/ChangeLog?r1=1.55&r2=1.56
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v
19 retrieving revision 1.55
20 retrieving revision 1.56
21 diff -u -r1.55 -r1.56
22 --- ChangeLog 11 Feb 2008 20:00:04 -0000 1.55
23 +++ ChangeLog 29 Jun 2008 04:06:58 -0000 1.56
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-libs/libwmf
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.55 2008/02/11 20:00:04 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.56 2008/06/29 04:06:58 darkside Exp $
29 +
30 +*libwmf-0.2.8.4-r1 (29 Jun 2008)
31 +
32 + 29 Jun 2008; Jeremy Olexa <darkside@g.o> +libwmf-0.2.8.4-r1.ebuild:
33 + Add code to to update /etc/gtk-2.0/gdk-pixbuf.loaders, copied from librsvg
34 + ebuild. Bug #221919, thanks to Maciej Grela <thermal@××.pl> for reporting
35
36 11 Feb 2008; Raúl Porcel <armin76@g.o> libwmf-0.2.8.4.ebuild:
37 Remove jpeg USE-flag since it's not supposed to build without it, bug #146680
38
39
40
41 1.1 media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libwmf-0.2.8.4-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild,v 1.1 2008/06/29 04:06:58 darkside Exp $
51
52 inherit eutils autotools
53
54 #The configure script finds the 5.50 ghostscript Fontmap file while run.
55 #This will probably work, especially since the real one (6.50) in this case
56 #is empty. However beware in case there is any trouble
57
58 DESCRIPTION="library for converting WMF files"
59 HOMEPAGE="http://wvware.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/wvware/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
65 IUSE="X expat xml debug doc gtk gd"
66
67 RDEPEND="virtual/ghostscript
68 xml? ( !expat? ( dev-libs/libxml2 ) )
69 expat? ( dev-libs/expat )
70 gd? ( media-libs/gd )
71 >=media-libs/freetype-2.0.1
72 sys-libs/zlib
73 media-libs/libpng
74 media-libs/jpeg
75 X? (
76 x11-libs/libICE
77 x11-libs/libSM
78 x11-libs/libX11
79 )
80 gtk? ( >=x11-libs/gtk+-2.1.2 ) "
81 DEPEND="${RDEPEND}
82 dev-util/pkgconfig
83 X? (
84 x11-libs/libXt
85 x11-libs/libXpm
86 )"
87 # plotutils are not really supported yet, so looks like that's it
88
89 src_unpack() {
90 unpack ${A}
91 cd "${S}"
92 if ! use doc ; then
93 sed -e 's:doc::' -i Makefile.am
94 fi
95 if ! use gtk ; then
96 sed -e 's:@LIBWMF_GDK_PIXBUF_TRUE@:#:' -i src/Makefile.in
97 fi
98 epatch "${FILESDIR}"/${P}-intoverflow.patch
99 epatch "${FILESDIR}"/${P}-build.patch
100
101 eautoreconf
102 }
103
104 src_compile() {
105 if use expat && use xml ; then
106 elog "You can specify only one USE flag from expat and xml, to use expat"
107 elog "or libxml2, respectively."
108 elog
109 elog "You have both flags enabled, we will default to expat (like autocheck does)."
110 myconf="${myconf} --with-expat --without-libxml2"
111 else
112 myconf="${myconf} $(use_with expat) $(use_with xml libxml2)"
113 fi
114
115 econf \
116 $(use_enable debug) \
117 $(use_with X x) \
118 $(use_enable gd) \
119 --with-sys-gd \
120 ${myconf} \
121 --with-gsfontdir=/usr/share/ghostscript/fonts \
122 --with-fontdir=/usr/share/libwmf/fonts/ \
123 --with-docdir=/usr/share/doc/${PF} \
124 || die "./configure failed"
125
126 emake || die
127 }
128
129 src_install() {
130 make install DESTDIR="${D}" || die
131 dodoc README AUTHORS CREDITS ChangeLog NEWS TODO
132 }
133
134 set_gtk_confdir() {
135 # An arch specific config directory is used on multilib systems
136 has_multilib_profile && GTK2_CONFDIR="${ROOT}etc/gtk-2.0/${CHOST}"
137 GTK2_CONFDIR="${GTK2_CONFDIR:-/etc/gtk-2.0}"
138 }
139
140 pkg_postinst() {
141 set_gtk_confdir
142 gdk-pixbuf-query-loaders > "${GTK2_CONFDIR}/gdk-pixbuf.loaders"
143 }
144
145 pkg_postrm() {
146 set_gtk_confdir
147 gdk-pixbuf-query-loaders > "${GTK2_CONFDIR}/gdk-pixbuf.loaders"
148 }
149
150
151
152
153 --
154 gentoo-commits@l.g.o mailing list