1 |
patrick 15/07/08 05:36:17 |
2 |
|
3 |
Modified: gdal-1.11.1-r3.ebuild ChangeLog |
4 |
Added: gdal-1.11.2.ebuild |
5 |
Log: |
6 |
Bump, restrict swig dependency to avoid build failure |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 sci-libs/gdal/gdal-1.11.1-r3.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: gdal-1.11.1-r3.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- gdal-1.11.1-r3.ebuild 26 Apr 2015 17:19:23 -0000 1.6 |
24 |
+++ gdal-1.11.1-r3.ebuild 8 Jul 2015 05:36:17 -0000 1.7 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild,v 1.6 2015/04/26 17:19:23 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild,v 1.7 2015/07/08 05:36:17 patrick Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
@@ -59,7 +59,7 @@ |
34 |
xls? ( dev-libs/freexl ) |
35 |
" |
36 |
|
37 |
-SWIG_DEP=">=dev-lang/swig-2.0.2" |
38 |
+SWIG_DEP=">=dev-lang/swig-2.0.2 <=dev-lang/swig-3.0.4" |
39 |
DEPEND="${RDEPEND} |
40 |
doc? ( app-doc/doxygen ) |
41 |
java? ( >=virtual/jdk-1.6 ) |
42 |
|
43 |
|
44 |
|
45 |
1.167 sci-libs/gdal/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.167&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.167&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.166&r2=1.167 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v |
54 |
retrieving revision 1.166 |
55 |
retrieving revision 1.167 |
56 |
diff -u -r1.166 -r1.167 |
57 |
--- ChangeLog 26 Apr 2015 17:19:23 -0000 1.166 |
58 |
+++ ChangeLog 8 Jul 2015 05:36:17 -0000 1.167 |
59 |
@@ -1,6 +1,12 @@ |
60 |
# ChangeLog for sci-libs/gdal |
61 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.166 2015/04/26 17:19:23 pacho Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.167 2015/07/08 05:36:17 patrick Exp $ |
64 |
+ |
65 |
+*gdal-1.11.2 (08 Jul 2015) |
66 |
+ |
67 |
+ 08 Jul 2015; Patrick Lauer <patrick@g.o> +gdal-1.11.2.ebuild, |
68 |
+ gdal-1.11.1-r3.ebuild: |
69 |
+ Bump, restrict swig dependency to avoid build failure |
70 |
|
71 |
26 Apr 2015; Pacho Ramos <pacho@g.o> gdal-1.11.1-r3.ebuild: |
72 |
ppc stable wrt bug #540132 |
73 |
|
74 |
|
75 |
|
76 |
1.1 sci-libs/gdal/gdal-1.11.2.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.2.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.2.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: gdal-1.11.2.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2015 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.2.ebuild,v 1.1 2015/07/08 05:36:17 patrick Exp $ |
86 |
|
87 |
EAPI=5 |
88 |
|
89 |
WANT_AUTOCONF="2.5" |
90 |
|
91 |
GENTOO_DEPEND_ON_PERL="no" |
92 |
PYTHON_COMPAT=( python2_7 python3_{3,4} ) |
93 |
DISTUTILS_OPTIONAL=1 |
94 |
|
95 |
inherit autotools eutils libtool perl-module distutils-r1 python-r1 toolchain-funcs java-pkg-opt-2 |
96 |
|
97 |
DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
98 |
HOMEPAGE="http://www.gdal.org/" |
99 |
SRC_URI="http://download.osgeo.org/${PN}/${PV}/${P}.tar.gz" |
100 |
|
101 |
SLOT="0" |
102 |
LICENSE="MIT" |
103 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
104 |
IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls" |
105 |
|
106 |
RDEPEND=" |
107 |
dev-libs/expat |
108 |
dev-libs/json-c |
109 |
dev-libs/libpcre |
110 |
dev-libs/libxml2 |
111 |
media-libs/tiff:0= |
112 |
sci-libs/libgeotiff |
113 |
sys-libs/zlib[minizip(+)] |
114 |
armadillo? ( sci-libs/armadillo[lapack] ) |
115 |
curl? ( net-misc/curl ) |
116 |
fits? ( sci-libs/cfitsio ) |
117 |
geos? ( >=sci-libs/geos-2.2.1 ) |
118 |
gif? ( media-libs/giflib ) |
119 |
gml? ( >=dev-libs/xerces-c-3 ) |
120 |
hdf5? ( >=sci-libs/hdf5-1.6.4[szip] ) |
121 |
java? ( >=virtual/jre-1.6:* ) |
122 |
jpeg? ( virtual/jpeg:0= ) |
123 |
jpeg2k? ( media-libs/jasper ) |
124 |
mysql? ( virtual/mysql ) |
125 |
netcdf? ( sci-libs/netcdf ) |
126 |
odbc? ( dev-db/unixODBC ) |
127 |
ogdi? ( sci-libs/ogdi ) |
128 |
opencl? ( virtual/opencl ) |
129 |
pdf? ( >=app-text/poppler-0.24.3:= ) |
130 |
perl? ( dev-lang/perl:= ) |
131 |
png? ( media-libs/libpng:0= ) |
132 |
postgres? ( >=dev-db/postgresql-8.4:= ) |
133 |
python? ( |
134 |
${PYTHON_DEPS} |
135 |
dev-python/setuptools[${PYTHON_USEDEP}] |
136 |
dev-python/numpy[${PYTHON_USEDEP}] |
137 |
) |
138 |
ruby? ( dev-lang/ruby:1.9 ) |
139 |
sqlite? ( dev-db/sqlite:3 ) |
140 |
spatialite? ( dev-db/spatialite ) |
141 |
xls? ( dev-libs/freexl ) |
142 |
" |
143 |
|
144 |
SWIG_DEP=">=dev-lang/swig-2.0.2 <=dev-lang/swig-3.0.4" |
145 |
DEPEND="${RDEPEND} |
146 |
doc? ( app-doc/doxygen ) |
147 |
java? ( >=virtual/jdk-1.6 ) |
148 |
perl? ( ${SWIG_DEP} ) |
149 |
python? ( ${SWIG_DEP} ) |
150 |
ruby? ( ${SWIG_DEP} )" |
151 |
|
152 |
AT_M4DIR="${S}/m4" |
153 |
MAKEOPTS+=" -j1" |
154 |
|
155 |
REQUIRED_USE=" |
156 |
spatialite? ( sqlite ) |
157 |
mdb? ( java ) |
158 |
" |
159 |
|
160 |
pkg_setup() { |
161 |
java-pkg-opt-2_pkg_setup |
162 |
} |
163 |
|
164 |
src_prepare() { |
165 |
java-pkg-opt-2_src_prepare |
166 |
|
167 |
# fix datadir and docdir placement |
168 |
sed -i \ |
169 |
-e "s:@datadir@:@datadir@/gdal:" \ |
170 |
-e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
171 |
"${S}"/GDALmake.opt.in || die |
172 |
|
173 |
# the second sed expression should fix bug 371075 |
174 |
sed -i \ |
175 |
-e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \ |
176 |
-e "s:--prefix=\$(DESTDIR):--prefix=:" \ |
177 |
"${S}"/swig/python/GNUmakefile || die |
178 |
|
179 |
epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch |
180 |
|
181 |
# -soname is only accepted by GNU ld/ELF |
182 |
[[ ${CHOST} == *-darwin* ]] \ |
183 |
&& epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \ |
184 |
|| epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch |
185 |
|
186 |
# Fix spatialite/sqlite include issue |
187 |
sed -i \ |
188 |
-e 's:spatialite/sqlite3.h:sqlite3.h:g' \ |
189 |
ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die |
190 |
|
191 |
# Fix freexl configure check |
192 |
sed -i \ |
193 |
-e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \ |
194 |
configure.in || die |
195 |
|
196 |
sed \ |
197 |
-e "s: /usr/: \"${EPREFIX}\"/usr/:g" \ |
198 |
-i configure.in || die |
199 |
|
200 |
sed \ |
201 |
-e 's:^ar:$(AR):g' \ |
202 |
-i ogr/ogrsf_frmts/sdts/install-libs.sh || die |
203 |
|
204 |
# bug 540132 |
205 |
epatch "${FILESDIR}"/${PN}-1.11.1-poppler-0.31.0-support.patch |
206 |
|
207 |
tc-export AR RANLIB |
208 |
|
209 |
eautoreconf |
210 |
|
211 |
prepare_python() { |
212 |
mkdir -p "${BUILD_DIR}" || die |
213 |
find "${S}" -type d -maxdepth 1 -exec ln -s {} "${BUILD_DIR}"/ \; ||die |
214 |
find "${S}" -type f -maxdepth 1 -exec cp --target="${BUILD_DIR}"/ {} + ||die |
215 |
# mkdir -p "${BUILD_DIR}"/swig/python || die |
216 |
# mkdir -p "${BUILD_DIR}"/apps || die |
217 |
# cp -dpR --target="${BUILD_DIR}"/swig/ \ |
218 |
# "${S}"/swig/{python,SWIGmake.base,GNUmakefile} || die |
219 |
# ln -s "${S}"/swig/include "${BUILD_DIR}"/swig/ || die |
220 |
# ln -s "${S}"/apps/gdal-config "${BUILD_DIR}"/apps/ || die |
221 |
# ln -s "${S}"/port "${BUILD_DIR}"/ || die |
222 |
} |
223 |
if use python; then |
224 |
python_foreach_impl prepare_python |
225 |
fi |
226 |
} |
227 |
|
228 |
gdal_src_configure() { |
229 |
local myopts="" |
230 |
|
231 |
if use ruby; then |
232 |
RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')" |
233 |
echo "Ruby module dir is: $RUBY_MOD_DIR" |
234 |
fi |
235 |
|
236 |
if use java; then |
237 |
myopts+=" |
238 |
--with-java=$(java-config --jdk-home 2>/dev/null) |
239 |
$(use_with mdb)" |
240 |
else |
241 |
myopts+=" --without-java --without-mdb" |
242 |
use mdb && ewarn "mdb requires java use enabled. disabling" |
243 |
fi |
244 |
|
245 |
if use sqlite; then |
246 |
myopts+=" LIBS=-lsqlite3" |
247 |
fi |
248 |
|
249 |
# pcidsk is internal, because there is no such library yet released |
250 |
# also that thing is developed by the gdal people |
251 |
# kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore |
252 |
# bsb - legal issues |
253 |
# oracle - disabled, i dont have and can't test |
254 |
# ingres - same story as oracle oci |
255 |
# podofo - we use poppler instead they are exclusive for each other |
256 |
# tiff is a hard dep |
257 |
ECONF_SOURCE="${S}" econf \ |
258 |
--includedir="${EPREFIX}/usr/include/${PN}" \ |
259 |
--disable-static \ |
260 |
--enable-shared \ |
261 |
--with-expat \ |
262 |
--with-geotiff \ |
263 |
--with-grib \ |
264 |
--with-libtiff \ |
265 |
--with-libz="${EPREFIX}/usr/" \ |
266 |
--with-ogr \ |
267 |
--without-bsb \ |
268 |
--without-dods-root \ |
269 |
--without-dwgdirect \ |
270 |
--without-epsilon \ |
271 |
--without-fme \ |
272 |
--without-grass \ |
273 |
--without-hdf4 \ |
274 |
--without-idb \ |
275 |
--without-ingres \ |
276 |
--without-jp2mrsid \ |
277 |
--without-kakadu \ |
278 |
--without-libtool \ |
279 |
--without-mrsid \ |
280 |
--without-msg \ |
281 |
--without-oci \ |
282 |
--without-pcraster \ |
283 |
--without-podofo \ |
284 |
--without-sde \ |
285 |
$(use_enable debug) \ |
286 |
$(use_with armadillo) \ |
287 |
$(use_with aux_xml pam) \ |
288 |
$(use_with curl) \ |
289 |
--without-ecw \ |
290 |
$(use_with fits cfitsio) \ |
291 |
$(use_with geos) \ |
292 |
$(use_with gif) \ |
293 |
$(use_with gml xerces) \ |
294 |
$(use_with hdf5) \ |
295 |
$(use_with jpeg pcidsk) \ |
296 |
$(use_with jpeg) \ |
297 |
$(use_with jpeg2k jasper) \ |
298 |
$(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \ |
299 |
$(use_with netcdf) \ |
300 |
$(use_with odbc) \ |
301 |
$(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
302 |
$(use_with opencl) \ |
303 |
$(use_with pdf poppler) \ |
304 |
$(use_with perl) \ |
305 |
$(use_with png) \ |
306 |
$(use_with postgres pg) \ |
307 |
$(use_with python) \ |
308 |
$(use_with ruby) \ |
309 |
$(use_with spatialite) \ |
310 |
$(use_with sqlite sqlite3 "${EPREFIX}"/usr) \ |
311 |
$(use_with threads) \ |
312 |
$(use_with xls freexl) \ |
313 |
${myopts} |
314 |
|
315 |
# mysql-config puts this in (and boy is it a PITA to get it out) |
316 |
if use mysql; then |
317 |
sed -i \ |
318 |
-e "s: -rdynamic : :" \ |
319 |
GDALmake.opt || die "sed LIBS failed" |
320 |
fi |
321 |
|
322 |
if [[ -n $use_python ]]; then |
323 |
# updated for newer swig (must specify the path to input files) |
324 |
sed -i \ |
325 |
-e "s: gdal_array.i: ../include/gdal_array.i:" \ |
326 |
-e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
327 |
swig/python/GNUmakefile || die "sed python makefile failed" |
328 |
sed -i \ |
329 |
-e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \ |
330 |
swig/python/setup.cfg || die "sed python setup.cfg failed" |
331 |
# -e "s:gdal_config=.*$:gdal_config=../../../apps/gdal-config:g" \ |
332 |
fi |
333 |
} |
334 |
|
335 |
src_configure() { |
336 |
local use_python="" |
337 |
|
338 |
gdal_src_configure |
339 |
|
340 |
if use python; then |
341 |
use_python="yes" |
342 |
python_foreach_impl run_in_build_dir gdal_src_configure |
343 |
fi |
344 |
} |
345 |
|
346 |
src_compile() { |
347 |
local i |
348 |
for i in perl ruby; do |
349 |
if use $i; then |
350 |
rm "${S}"/swig/$i/*_wrap.cpp |
351 |
emake -C "${S}"/swig/$i generate |
352 |
fi |
353 |
done |
354 |
|
355 |
default |
356 |
|
357 |
if use perl ; then |
358 |
pushd "${S}"/swig/perl > /dev/null |
359 |
perl-module_src_configure |
360 |
perl-module_src_compile |
361 |
popd > /dev/null |
362 |
fi |
363 |
|
364 |
use doc && emake docs |
365 |
|
366 |
compile_python() { |
367 |
rm -f swig/python/*_wrap.cpp |
368 |
emake -C swig/python generate |
369 |
emake -C swig/python build |
370 |
} |
371 |
if use python; then |
372 |
python_foreach_impl run_in_build_dir compile_python |
373 |
fi |
374 |
} |
375 |
|
376 |
src_install() { |
377 |
if use perl ; then |
378 |
pushd "${S}"/swig/perl > /dev/null |
379 |
perl-module_src_install |
380 |
popd > /dev/null |
381 |
sed -i \ |
382 |
-e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \ |
383 |
GDALmake.opt || die |
384 |
fi |
385 |
|
386 |
default |
387 |
|
388 |
if use ruby ; then |
389 |
# weird reinstall collision; needs manual intervention... |
390 |
pushd "${S}"/swig/ruby > /dev/null |
391 |
rm -rf "${D}"${RUBY_MOD_DIR}/gdal |
392 |
exeinto ${RUBY_MOD_DIR}/gdal |
393 |
doexe *.so || die "doins ruby modules failed" |
394 |
popd > /dev/null |
395 |
fi |
396 |
|
397 |
use perl && perl_delete_localpod |
398 |
|
399 |
dodoc Doxyfile HOWTO-RELEASE NEWS |
400 |
|
401 |
if use doc ; then |
402 |
dohtml html/* |
403 |
docinto ogr |
404 |
dohtml ogr/html/* |
405 |
fi |
406 |
|
407 |
install_python() { |
408 |
emake -C swig/python DESTDIR="${D}" install |
409 |
} |
410 |
if use python; then |
411 |
python_foreach_impl run_in_build_dir install_python |
412 |
newdoc swig/python/README.txt README-python.txt |
413 |
insinto /usr/share/${PN}/samples |
414 |
doins swig/python/samples/* |
415 |
python_replicate_script "${ED}"/usr/bin/*py |
416 |
fi |
417 |
|
418 |
pushd man/man1 > /dev/null |
419 |
for i in * ; do |
420 |
newman ${i} ${i} |
421 |
done |
422 |
popd > /dev/null |
423 |
} |
424 |
|
425 |
pkg_postinst() { |
426 |
elog "Check available image and data formats after building with" |
427 |
elog "gdalinfo and ogrinfo (using the --formats switch)." |
428 |
} |