Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/geos: geos-2.2.3.ebuild ChangeLog metadata.xml geos-3.0.0.ebuild
Date: Fri, 04 Jan 2008 17:03:29
Message-Id: E1JApx5-0000mQ-Ep@stork.gentoo.org
1 bicatali 08/01/04 17:03:23
2
3 Modified: geos-2.2.3.ebuild ChangeLog metadata.xml
4 Added: geos-3.0.0.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.4 sci-libs/geos/geos-2.2.3.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild?r1=1.3&r2=1.4
15
16 Index: geos-2.2.3.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- geos-2.2.3.ebuild 16 Apr 2007 07:59:15 -0000 1.3
23 +++ geos-2.2.3.ebuild 4 Jan 2008 17:03:22 -0000 1.4
24 @@ -1,13 +1,13 @@
25 -# Copyright 1999-2007 Gentoo Foundation
26 +# Copyright 1999-2008 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild,v 1.3 2007/04/16 07:59:15 corsair Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-2.2.3.ebuild,v 1.4 2008/01/04 17:03:22 bicatali Exp $
30
31 USE_RUBY="ruby18"
32 RUBY_OPTIONAL="yes"
33
34 inherit eutils distutils ruby toolchain-funcs
35
36 -DESCRIPTION="Geometry Engine - Open Source"
37 +DESCRIPTION="Geometry engine library for Geographic Information Systems"
38 HOMEPAGE="http://geos.refractions.net"
39 SRC_URI="http://geos.refractions.net/${P}.tar.bz2"
40
41 @@ -30,38 +30,37 @@
42 }
43
44 src_compile() {
45 - econf --with-pic --enable-static || die "econf failed"
46 + econf || die "econf failed"
47 emake || die "emake failed"
48
49 if use python; then
50 - einfo "Compilling PyGEOS"
51 - cd "${S}/swig/python"
52 - cp "${FILESDIR}/python.i" "${S}/swig/python/"
53 - rm -f geos_wrap.cxx
54 - swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
55 - distutils_src_compile
56 + einfo "Compilling PyGEOS"
57 + cd "${S}/swig/python"
58 + cp "${FILESDIR}/python.i" "${S}/swig/python/"
59 + rm -f geos_wrap.cxx
60 + swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
61 + distutils_src_compile
62 fi
63 if use ruby; then
64 - einfo "Compilling Ruby bindings"
65 - cd "${S}/swig/ruby"
66 - swig -c++ -ruby -autorename -o geos_wrap.cxx ../geos.i
67 - local CXX=$(tc-getCXX)
68 - local RUBY_ARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')"
69 - ${CXX} ${CXXFLAGS} -I../../source/headers -I${RUBY_ARCHDIR} \
70 + einfo "Compilling Ruby bindings"
71 + cd "${S}"/swig/ruby
72 + swig -c++ -ruby -autorename -o geos_wrap.cxx ../geos.i
73 + local CXX=$(tc-getCXX)
74 + local RUBY_ARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')"
75 + ${CXX} ${CXXFLAGS} -I../../source/headers -I${RUBY_ARCHDIR} \
76 -fPIC -c geos_wrap.cxx
77 - ${CXX} ${CXXFLAGS} -shared -L${S}/source/geom/.libs -lgeos \
78 + ${CXX} ${CXXFLAGS} -shared -L"${S}"/source/geom/.libs -lgeos \
79 -lruby geos_wrap.o -o geos.so
80 fi
81 }
82
83 src_test() {
84 - cd "${S}"
85 emake check || die "Trying make check without success."
86 # I think this test must be made after the PyGEOS installation
87 #export PYTHONPATH=${S}/swig/python
88 if use python; then
89 - cd ${S}/swig/python
90 - python tests/runtests.py -v
91 + cd "${S}"/swig/python
92 + python tests/runtests.py -v
93 fi
94 }
95
96 @@ -69,39 +68,39 @@
97 emake install DESTDIR="${D}" || die "emake install failed"
98
99 if use python; then
100 - einfo "Installing PyGEOS"
101 - cd ${S}/swig/python
102 - distutils_src_install
103 - insinto /usr/share/doc/${PF}/python
104 - doins README.txt tests/*.py
105 - insinto /usr/share/doc/${PF}/python/cases
106 - doins tests/cases/*
107 + einfo "Installing PyGEOS"
108 + cd "${S}"/swig/python
109 + distutils_src_install
110 + insinto /usr/share/doc/${PF}/python
111 + doins README.txt tests/*.py || die
112 + insinto /usr/share/doc/${PF}/python/cases
113 + doins tests/cases/* || die
114 fi
115 if use ruby; then
116 - local RUBY_SITEARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')"
117 - einfo "Installing Ruby bindings in ${RUBY_SITEARCHDIR}/${PN}"
118 - cd ${S}/swig/ruby
119 - insinto ${RUBY_SITEARCHDIR}/${PN}
120 - doins geos.so
121 - insinto /usr/share/doc/${PF}/ruby
122 - doins README.txt test/*.rb
123 - if use doc; then
124 - erubydoc
125 - fi
126 + local RUBY_SITEARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')"
127 + einfo "Installing Ruby bindings in ${RUBY_SITEARCHDIR}/${PN}"
128 + cd "${S}"/swig/ruby
129 + insinto ${RUBY_SITEARCHDIR}/${PN}
130 + doins geos.so || die
131 + insinto /usr/share/doc/${PF}/ruby
132 + doins README.txt test/*.rb || die
133 + if use doc; then
134 + erubydoc
135 + fi
136 fi
137 if use doc; then
138 - cd ${S}/doc
139 - make doxygen-html
140 - dohtml -r doxygen_docs/html/*
141 + cd "${S}"/doc
142 + emake doxygen-html || die "make doxygen docs failed"
143 + dohtml -r doxygen_docs/html/* || die
144 fi
145 cd "${S}"
146 - dodoc AUTHORS NEWS README TODO
147 + dodoc AUTHORS NEWS README TODO || die
148 }
149
150 pkg_postinst() {
151 if use python; then
152 python_version
153 - python_mod_optimize ${ROOT}usr/bin
154 + python_mod_optimize "${ROOT}"usr/bin
155 fi
156 }
157
158
159
160
161 1.25 sci-libs/geos/ChangeLog
162
163 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/ChangeLog?rev=1.25&view=markup
164 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/ChangeLog?rev=1.25&content-type=text/plain
165 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/ChangeLog?r1=1.24&r2=1.25
166
167 Index: ChangeLog
168 ===================================================================
169 RCS file: /var/cvsroot/gentoo-x86/sci-libs/geos/ChangeLog,v
170 retrieving revision 1.24
171 retrieving revision 1.25
172 diff -u -r1.24 -r1.25
173 --- ChangeLog 16 Apr 2007 07:59:15 -0000 1.24
174 +++ ChangeLog 4 Jan 2008 17:03:22 -0000 1.25
175 @@ -1,6 +1,12 @@
176 # ChangeLog for sci-libs/geos
177 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
178 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/ChangeLog,v 1.24 2007/04/16 07:59:15 corsair Exp $
179 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
180 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/ChangeLog,v 1.25 2008/01/04 17:03:22 bicatali Exp $
181 +
182 +*geos-3.0.0 (04 Jan 2008)
183 +
184 + 04 Jan 2008; Sébastien Fabbro <bicatali@g.o> metadata.xml,
185 + geos-2.2.3.ebuild, +geos-3.0.0.ebuild:
186 + Version bump. Closing bug #184391
187
188 16 Apr 2007; Markus Rothe <corsair@g.o> geos-2.2.3.ebuild:
189 Stable on ppc64
190
191
192
193 1.5 sci-libs/geos/metadata.xml
194
195 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/metadata.xml?rev=1.5&view=markup
196 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/metadata.xml?rev=1.5&content-type=text/plain
197 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/metadata.xml?r1=1.4&r2=1.5
198
199 Index: metadata.xml
200 ===================================================================
201 RCS file: /var/cvsroot/gentoo-x86/sci-libs/geos/metadata.xml,v
202 retrieving revision 1.4
203 retrieving revision 1.5
204 diff -u -r1.4 -r1.5
205 --- metadata.xml 12 Feb 2007 16:35:13 -0000 1.4
206 +++ metadata.xml 4 Jan 2008 17:03:22 -0000 1.5
207 @@ -1,6 +1,15 @@
208 <?xml version="1.0" encoding="UTF-8"?>
209 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
210 <pkgmetadata>
211 - <herd>sci-geosciences</herd>
212 - <herd>postgresql</herd>
213 + <herd>sci-geosciences</herd>
214 + <herd>postgresql</herd>
215 + <longdescription lang="en">
216 + Geometric Engine Open Source provides a spatial object model and
217 + fundamental geometric functions. It implements the geometry model
218 + defined in the OpenGIS Consortium Simple Features Specification for
219 + SQL. Functions provided include: spatial predicates (based on the
220 + DE-9IM model), overlay functions (intersection, difference, union,
221 + symmetric difference), buffer, convex hull, area and distance
222 + functions, and topological validity checking.
223 + </longdescription>
224 </pkgmetadata>
225
226
227
228 1.1 sci-libs/geos/geos-3.0.0.ebuild
229
230 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/geos-3.0.0.ebuild?rev=1.1&view=markup
231 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/geos/geos-3.0.0.ebuild?rev=1.1&content-type=text/plain
232
233 Index: geos-3.0.0.ebuild
234 ===================================================================
235 # Copyright 1999-2008 Gentoo Foundation
236 # Distributed under the terms of the GNU General Public License v2
237 # $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-3.0.0.ebuild,v 1.1 2008/01/04 17:03:22 bicatali Exp $
238
239 inherit eutils
240
241 MY_P=${PN}-${PV/_/}
242
243 DESCRIPTION="Geometry engine library for Geographic Information Systems"
244 HOMEPAGE="http://geos.refractions.net"
245 SRC_URI="http://geos.refractions.net/downloads/${MY_P}.tar.bz2"
246
247 LICENSE="GPL-2"
248 SLOT="0"
249 KEYWORDS="~amd64 ~x86 ~ppc ~sparc"
250 IUSE="doc python ruby"
251
252 RDEPEND="ruby? ( virtual/ruby )
253 python? ( virtual/python )"
254 DEPEND="${RDEPEND}
255 doc? ( app-doc/doxygen )\
256 ruby? ( >=dev-lang/swig-1.3.29 )
257 python? ( >=dev-lang/swig-1.3.29 )"
258
259 S="${WORKDIR}/${MY_P}"
260
261 src_compile() {
262 local myconf
263
264 if ! use python && ! use ruby ; then
265 myconf="--disable-swig"
266 fi
267
268 econf ${myconf} \
269 $(use_enable python) \
270 $(use_enable ruby) \
271 || die "econf failed"
272 emake || die "emake failed"
273 }
274
275 src_install() {
276 into /usr
277 emake DESTDIR="${D}" install || die "emake install failed"
278 dodoc AUTHORS NEWS README TODO || die
279 if use doc; then
280 cd "${S}/doc"
281 emake doxygen-html || die "doc generation failed"
282 dohtml -r doxygen_docs/html/*
283 fi
284 }
285
286
287
288 --
289 gentoo-commits@g.o mailing list