1 |
jlec 12/12/26 13:36:43 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gdal-1.9.2.ebuild |
5 |
Log: |
6 |
sci-libs/gdal: Version Bump, #440716; Respect AR and RANLIB, #444034; do not restrict python to version 2*, #439710; correct dep for USE=pdf and pododof, #433790; respect LDFLAGS with USE=perl, #332101 |
7 |
|
8 |
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 sci-libs/gdal/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/metadata.xml?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/metadata.xml?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/metadata.xml?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/metadata.xml,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- metadata.xml 7 Oct 2012 09:07:32 -0000 1.10 |
24 |
+++ metadata.xml 26 Dec 2012 13:36:43 -0000 1.11 |
25 |
@@ -1,20 +1,20 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>sci-geosciences</herd> |
30 |
- <longdescription>GDAL is the Geospatial Data Abstraction Library, a set of tools for converting between geospatial raster data formats (includes OGR for vector data).</longdescription> |
31 |
- <use> |
32 |
- <flag name="armadillo">Use <pkg>sci-libs/armadillo</pkg> for faster TPS transform computation</flag> |
33 |
- <flag name="aux_xml">Enable Portable Auxilliary Metadata generation</flag> |
34 |
- <flag name="ecwj2k">Enable support for alternate jpeg2k library <pkg>sci-libs/libecwj2</pkg></flag> |
35 |
- <flag name="fits">Enable support for NASA's <pkg>sci-libs/cfitsio</pkg> library</flag> |
36 |
- <flag name="geos">Add support for geometry engine (<pkg>sci-libs/geos</pkg></flag> |
37 |
- <flag name="gml">Enable support for <pkg>dev-libs/xerces-c</pkg> C++ API</flag> |
38 |
- <flag name="hdf">Add support for the Hierarchical Data Format v. 4 (<pkg>sci-libs/hdf</pkg>)</flag> |
39 |
- <flag name="mdb">Enable support for Microsoft Access database</flag> |
40 |
- <flag name="spatialite">Enable Spatial DBMS over sqlite <pkg>dev-db/spatialite</pkg></flag> |
41 |
- <flag name="opencl">Enable OpenCL support</flag> |
42 |
- <flag name="ogdi">Enable support for the open geographic datastore interface (<pkg>sci-libs/ogdi</pkg>)</flag> |
43 |
- <flag name="xls">Add the <pkg>dev-libs/freexl</pkg> library for xls import support</flag> |
44 |
- </use> |
45 |
+ <herd>sci-geosciences</herd> |
46 |
+ <longdescription>GDAL is the Geospatial Data Abstraction Library, a set of tools for converting between geospatial raster data formats (includes OGR for vector data).</longdescription> |
47 |
+ <use> |
48 |
+ <flag name="armadillo">Use <pkg>sci-libs/armadillo</pkg> for faster TPS transform computation</flag> |
49 |
+ <flag name="aux_xml">Enable Portable Auxilliary Metadata generation</flag> |
50 |
+ <flag name="ecwj2k">Enable support for alternate jpeg2k library <pkg>sci-libs/libecwj2</pkg></flag> |
51 |
+ <flag name="fits">Enable support for NASA's <pkg>sci-libs/cfitsio</pkg> library</flag> |
52 |
+ <flag name="geos">Add support for geometry engine (<pkg>sci-libs/geos</pkg></flag> |
53 |
+ <flag name="gml">Enable support for <pkg>dev-libs/xerces-c</pkg> C++ API</flag> |
54 |
+ <flag name="hdf">Add support for the Hierarchical Data Format v. 4 (<pkg>sci-libs/hdf</pkg>)</flag> |
55 |
+ <flag name="mdb">Enable support for Microsoft Access database</flag> |
56 |
+ <flag name="spatialite">Enable Spatial DBMS over sqlite <pkg>dev-db/spatialite</pkg></flag> |
57 |
+ <flag name="opencl">Enable OpenCL support</flag> |
58 |
+ <flag name="ogdi">Enable support for the open geographic datastore interface (<pkg>sci-libs/ogdi</pkg>)</flag> |
59 |
+ <flag name="xls">Add the <pkg>dev-libs/freexl</pkg> library for xls import support</flag> |
60 |
+ </use> |
61 |
</pkgmetadata> |
62 |
|
63 |
|
64 |
|
65 |
1.133 sci-libs/gdal/ChangeLog |
66 |
|
67 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.133&view=markup |
68 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.133&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.132&r2=1.133 |
70 |
|
71 |
Index: ChangeLog |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v |
74 |
retrieving revision 1.132 |
75 |
retrieving revision 1.133 |
76 |
diff -u -r1.132 -r1.133 |
77 |
--- ChangeLog 4 Dec 2012 09:44:24 -0000 1.132 |
78 |
+++ ChangeLog 26 Dec 2012 13:36:43 -0000 1.133 |
79 |
@@ -1,6 +1,14 @@ |
80 |
# ChangeLog for sci-libs/gdal |
81 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
82 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.132 2012/12/04 09:44:24 jlec Exp $ |
83 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.133 2012/12/26 13:36:43 jlec Exp $ |
84 |
+ |
85 |
+*gdal-1.9.2 (26 Dec 2012) |
86 |
+ |
87 |
+ 26 Dec 2012; Justin Lecher <jlec@g.o> +gdal-1.9.2.ebuild, |
88 |
+ metadata.xml: |
89 |
+ Version Bump, #440716; Respect AR and RANLIB, #444034; do not restrict python |
90 |
+ to version 2*, #439710; correct dep for USE=pdf and pododof, #433790; respect |
91 |
+ LDFLAGS with USE=perl, #332101 |
92 |
|
93 |
04 Dec 2012; Justin Lecher <jlec@g.o> gdal-1.9.1.ebuild: |
94 |
Correct USE-dep for sci-libs/armadillo, #445546 |
95 |
|
96 |
|
97 |
|
98 |
1.1 sci-libs/gdal/gdal-1.9.2.ebuild |
99 |
|
100 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild?rev=1.1&view=markup |
101 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild?rev=1.1&content-type=text/plain |
102 |
|
103 |
Index: gdal-1.9.2.ebuild |
104 |
=================================================================== |
105 |
# Copyright 1999-2012 Gentoo Foundation |
106 |
# Distributed under the terms of the GNU General Public License v2 |
107 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild,v 1.1 2012/12/26 13:36:43 jlec Exp $ |
108 |
|
109 |
EAPI=5 |
110 |
|
111 |
WANT_AUTOCONF="2.5" |
112 |
|
113 |
PYTHON_DEPEND="python? *" |
114 |
|
115 |
inherit autotools eutils libtool perl-module python toolchain-funcs java-pkg-opt-2 |
116 |
|
117 |
DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
118 |
HOMEPAGE="http://www.gdal.org/" |
119 |
SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz" |
120 |
|
121 |
SLOT="0" |
122 |
LICENSE="MIT" |
123 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
124 |
IUSE="armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc opencl ogdi pdf perl png postgres python ruby spatialite sqlite threads xls" |
125 |
|
126 |
RDEPEND=" |
127 |
dev-libs/expat |
128 |
media-libs/tiff |
129 |
sci-libs/libgeotiff |
130 |
|| ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) |
131 |
armadillo? ( sci-libs/armadillo[lapack] ) |
132 |
curl? ( net-misc/curl ) |
133 |
ecwj2k? ( sci-libs/libecwj2 ) |
134 |
fits? ( sci-libs/cfitsio ) |
135 |
geos? ( >=sci-libs/geos-2.2.1 ) |
136 |
gif? ( media-libs/giflib ) |
137 |
gml? ( >=dev-libs/xerces-c-3 ) |
138 |
hdf5? ( >=sci-libs/hdf5-1.6.4[szip] ) |
139 |
java? ( >=virtual/jre-1.6 ) |
140 |
jpeg? ( virtual/jpeg ) |
141 |
jpeg2k? ( media-libs/jasper ) |
142 |
mysql? ( virtual/mysql ) |
143 |
netcdf? ( sci-libs/netcdf ) |
144 |
odbc? ( dev-db/unixODBC ) |
145 |
ogdi? ( sci-libs/ogdi ) |
146 |
opencl? ( virtual/opencl ) |
147 |
pdf? ( app-text/poppler ) |
148 |
perl? ( dev-lang/perl ) |
149 |
png? ( media-libs/libpng ) |
150 |
postgres? ( >=dev-db/postgresql-base-8.4 ) |
151 |
python? ( dev-python/numpy ) |
152 |
ruby? ( dev-lang/ruby:1.9 ) |
153 |
sqlite? ( dev-db/sqlite:3 ) |
154 |
spatialite? ( dev-db/spatialite ) |
155 |
xls? ( dev-libs/freexl ) |
156 |
" |
157 |
|
158 |
SWIG_DEP=">=dev-lang/swig-2.0.2" |
159 |
DEPEND="${RDEPEND} |
160 |
doc? ( app-doc/doxygen ) |
161 |
java? ( >=virtual/jdk-1.6 ) |
162 |
perl? ( ${SWIG_DEP} ) |
163 |
python? ( ${SWIG_DEP} ) |
164 |
ruby? ( ${SWIG_DEP} )" |
165 |
|
166 |
AT_M4DIR="${S}/m4" |
167 |
MAKEOPTS+=" -j1" |
168 |
|
169 |
REQUIRED_USE=" |
170 |
spatialite? ( sqlite ) |
171 |
mdb? ( java ) |
172 |
" |
173 |
|
174 |
pkg_setup() { |
175 |
use python && python_pkg_setup |
176 |
} |
177 |
|
178 |
src_unpack() { |
179 |
# prevent ruby-ng.eclass from messing with the src path |
180 |
default |
181 |
} |
182 |
|
183 |
src_prepare() { |
184 |
# fix datadir and docdir placement |
185 |
sed -i \ |
186 |
-e "s:@datadir@:@datadir@/gdal:" \ |
187 |
-e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
188 |
"${S}"/GDALmake.opt.in || die |
189 |
|
190 |
# the second sed expression should fix bug 371075 |
191 |
sed -i \ |
192 |
-e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \ |
193 |
-e "s:--prefix=\$(DESTDIR):--prefix=:" \ |
194 |
"${S}"/swig/python/GNUmakefile || die |
195 |
|
196 |
epatch "${FILESDIR}"/${PN}-1.9.1-ruby-makefile.patch |
197 |
|
198 |
# -soname is only accepted by GNU ld/ELF |
199 |
[[ ${CHOST} == *-darwin* ]] \ |
200 |
&& epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \ |
201 |
|| epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch |
202 |
|
203 |
# Update for zlib header changes (see bug #383569) |
204 |
epatch "${FILESDIR}"/${PN}-1.8.1-zlib_header_fix.patch |
205 |
|
206 |
# Fix spatialite/sqlite include issue |
207 |
sed -i \ |
208 |
-e 's:spatialite/sqlite3.h:sqlite3.h:g' \ |
209 |
ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die |
210 |
|
211 |
# Fix freexl configure check |
212 |
sed -i \ |
213 |
-e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \ |
214 |
configure.in || die |
215 |
|
216 |
sed \ |
217 |
-e "s: /usr/: \"${EPREFIX}\"/usr/:g" \ |
218 |
-i configure.in || die |
219 |
|
220 |
sed \ |
221 |
-e 's:^ar:$(AR):g' \ |
222 |
-i ogr/ogrsf_frmts/sdts/install-libs.sh || die |
223 |
|
224 |
tc-export AR RANLIB |
225 |
|
226 |
eautoreconf |
227 |
} |
228 |
|
229 |
src_configure() { |
230 |
local myopts="" |
231 |
|
232 |
if use ruby; then |
233 |
RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')" |
234 |
echo "Ruby module dir is: $RUBY_MOD_DIR" |
235 |
fi |
236 |
|
237 |
if use python; then |
238 |
myopts+=" |
239 |
--with-pymoddir="${EPREFIX}"/$(python_get_sitedir) |
240 |
" |
241 |
fi |
242 |
|
243 |
if use java; then |
244 |
myopts+=" |
245 |
--with-java=$(java-config --jdk-home 2>/dev/null) |
246 |
$(use_with mdb)" |
247 |
else |
248 |
myopts+=" --without-java --without-mdb" |
249 |
use mdb && ewarn "mdb requires java use enabled. disabling" |
250 |
fi |
251 |
|
252 |
# pcidsk is internal, because there is no such library yet released |
253 |
# also that thing is developed by the gdal people |
254 |
# kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore |
255 |
# bsb - legal issues |
256 |
# oracle - disabled, i dont have and can't test |
257 |
# ingres - same story as oracle oci |
258 |
# podofo - we use poppler instead they are exclusive for each other |
259 |
# tiff is a hard dep |
260 |
econf \ |
261 |
--enable-shared \ |
262 |
--disable-static \ |
263 |
--with-expat \ |
264 |
--without-grass \ |
265 |
--without-hdf4 \ |
266 |
--without-fme \ |
267 |
--without-pcraster \ |
268 |
--without-kakadu \ |
269 |
--without-mrsid \ |
270 |
--without-jp2mrsid \ |
271 |
--without-msg \ |
272 |
--without-bsb \ |
273 |
--without-dods-root \ |
274 |
--without-oci \ |
275 |
--without-ingres \ |
276 |
--without-dwgdirect \ |
277 |
--without-epsilon \ |
278 |
--without-idb \ |
279 |
--without-podofo \ |
280 |
--without-sde \ |
281 |
--without-libtool \ |
282 |
--with-libz="${EPREFIX}/usr/" \ |
283 |
--with-ogr \ |
284 |
--with-grib \ |
285 |
--with-vfk \ |
286 |
--with-libtiff=external \ |
287 |
--with-geotiff=external \ |
288 |
$(use_enable debug) \ |
289 |
$(use_with armadillo) \ |
290 |
$(use_with postgres pg) \ |
291 |
$(use_with fits cfitsio) \ |
292 |
$(use_with netcdf) \ |
293 |
$(use_with png) \ |
294 |
$(use_with jpeg) \ |
295 |
$(use_with jpeg pcidsk) \ |
296 |
$(use_with gif) \ |
297 |
$(use_with hdf5) \ |
298 |
$(use_with jpeg2k jasper) \ |
299 |
$(use_with ecwj2k ecw) \ |
300 |
$(use_with gml xerces) \ |
301 |
$(use_with odbc) \ |
302 |
$(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
303 |
$(use_with opencl) \ |
304 |
$(use_with curl) \ |
305 |
$(use_with sqlite sqlite3 "${EPREFIX}"/usr) \ |
306 |
$(use_with spatialite) \ |
307 |
$(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \ |
308 |
$(use_with geos) \ |
309 |
$(use_with aux_xml pam) \ |
310 |
$(use_with pdf poppler) \ |
311 |
$(use_with perl) \ |
312 |
$(use_with ruby) \ |
313 |
$(use_with python) \ |
314 |
$(use_with threads) \ |
315 |
$(use_with xls freexl) \ |
316 |
${myopts} |
317 |
|
318 |
# mysql-config puts this in (and boy is it a PITA to get it out) |
319 |
if use mysql; then |
320 |
sed -i \ |
321 |
-e "s: -rdynamic : :" \ |
322 |
GDALmake.opt || die "sed LIBS failed" |
323 |
fi |
324 |
|
325 |
# updated for newer swig (must specify the path to input files) |
326 |
if use python; then |
327 |
sed -i \ |
328 |
-e "s: gdal_array.i: ../include/gdal_array.i:" \ |
329 |
-e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
330 |
swig/python/GNUmakefile || die "sed python makefile failed" |
331 |
sed -i \ |
332 |
-e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \ |
333 |
swig/python/setup.cfg || die "sed python setup.cfg failed" |
334 |
fi |
335 |
} |
336 |
|
337 |
src_compile() { |
338 |
local i |
339 |
for i in perl ruby python; do |
340 |
if use $i; then |
341 |
rm "${S}"/swig/$i/*_wrap.cpp |
342 |
emake -C "${S}"/swig/$i generate |
343 |
fi |
344 |
done |
345 |
|
346 |
default |
347 |
|
348 |
if use perl ; then |
349 |
pushd "${S}"/swig/perl > /dev/null |
350 |
perl-module_src_prep |
351 |
perl-module_src_compile |
352 |
popd > /dev/null |
353 |
fi |
354 |
|
355 |
use doc && emake docs |
356 |
} |
357 |
|
358 |
src_install() { |
359 |
if use perl ; then |
360 |
pushd "${S}"/swig/perl > /dev/null |
361 |
perl-module_src_install |
362 |
popd > /dev/null |
363 |
sed -i \ |
364 |
-e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \ |
365 |
GDALmake.opt || die |
366 |
fi |
367 |
|
368 |
default |
369 |
|
370 |
if use ruby ; then |
371 |
# weird reinstall collision; needs manual intervention... |
372 |
pushd "${S}"/swig/ruby > /dev/null |
373 |
rm -rf "${D}"${RUBY_MOD_DIR}/gdal |
374 |
exeinto ${RUBY_MOD_DIR}/gdal |
375 |
doexe *.so || die "doins ruby modules failed" |
376 |
popd > /dev/null |
377 |
fi |
378 |
|
379 |
use perl && fixlocalpod |
380 |
|
381 |
dodoc Doxyfile HOWTO-RELEASE NEWS |
382 |
|
383 |
if use doc ; then |
384 |
dohtml html/* |
385 |
docinto ogr |
386 |
dohtml ogr/html/* |
387 |
fi |
388 |
|
389 |
if use python; then |
390 |
newdoc swig/python/README.txt README-python.txt |
391 |
insinto /usr/share/${PN}/samples |
392 |
doins swig/python/samples/* |
393 |
fi |
394 |
} |
395 |
|
396 |
pkg_postinst() { |
397 |
if use python; then |
398 |
python_need_rebuild |
399 |
python_mod_optimize osgeo |
400 |
fi |
401 |
echo |
402 |
elog "Check available image and data formats after building with" |
403 |
elog "gdalinfo and ogrinfo (using the --formats switch)." |
404 |
} |
405 |
|
406 |
pkg_postrm() { |
407 |
if use python; then |
408 |
python_mod_cleanup osgeo |
409 |
fi |
410 |
} |