Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/gdal: ChangeLog gdal-1.7.2.ebuild gdal-1.5.3.ebuild gdal-1.5.2.ebuild gdal-1.6.0-r1.ebuild gdal-1.6.2.ebuild gdal-1.6.3.ebuild
Date: Fri, 30 Jul 2010 13:02:29
Message-Id: 20100730122751.AC5202CF37@corvid.gentoo.org
1 scarabeus 10/07/30 12:27:51
2
3 Modified: ChangeLog
4 Added: gdal-1.7.2.ebuild
5 Removed: gdal-1.5.3.ebuild gdal-1.5.2.ebuild
6 gdal-1.6.0-r1.ebuild gdal-1.6.2.ebuild
7 gdal-1.6.3.ebuild
8 Log:
9 Version bump. Drop older. Grass support to be done.
10 (Portage version: 2.2_rc67/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.92 sci-libs/gdal/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.92&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.92&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.91&r2=1.92
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v
22 retrieving revision 1.91
23 retrieving revision 1.92
24 diff -u -r1.91 -r1.92
25 --- ChangeLog 18 Jul 2010 20:08:22 -0000 1.91
26 +++ ChangeLog 30 Jul 2010 12:27:51 -0000 1.92
27 @@ -1,6 +1,14 @@
28 # ChangeLog for sci-libs/gdal
29 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.91 2010/07/18 20:08:22 nerdboy Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.92 2010/07/30 12:27:51 scarabeus Exp $
32 +
33 +*gdal-1.7.2 (30 Jul 2010)
34 +
35 + 30 Jul 2010; Tomáš Chvátal <scarabeus@g.o>
36 + +files/1.7.2-ruby_cflags.patch, -gdal-1.5.2.ebuild, -gdal-1.5.3.ebuild,
37 + -gdal-1.6.0-r1.ebuild, -gdal-1.6.2.ebuild, -gdal-1.6.3.ebuild,
38 + +gdal-1.7.2.ebuild:
39 + Version bump. Drop older. Grass support to be done.
40
41 18 Jul 2010; Steve Arnold <nerdboy@g.o> gdal-1.6.3-r1.ebuild:
42 Updated for a couple of minor/weird bugs (320237 and 325193). Suspect
43
44
45
46 1.1 sci-libs/gdal/gdal-1.7.2.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.7.2.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.7.2.ebuild?rev=1.1&content-type=text/plain
50
51 Index: gdal-1.7.2.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.7.2.ebuild,v 1.1 2010/07/30 12:27:51 scarabeus Exp $
56
57 EAPI="3"
58
59 WANT_AUTOCONF="2.5"
60 RUBY_OPTIONAL="yes"
61 USE_RUBY="ruby18"
62 PYTHON_DEPEND="python? 2"
63 inherit autotools eutils perl-module python ruby toolchain-funcs
64
65 DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
66 HOMEPAGE="http://www.gdal.org/"
67 SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz"
68
69 SLOT="0"
70 LICENSE="MIT"
71 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos"
72
73 IUSE="curl debug doc ecwj2k fits geos gif gml hdf5 jpeg jpeg2k mysql netcdf odbc ogdi pam perl png postgres python ruby sqlite tiff threads"
74
75 RDEPEND="
76 dev-libs/expat
77 sys-libs/zlib
78 curl? ( net-misc/curl )
79 ecwj2k? ( sci-libs/libecwj2 )
80 fits? ( sci-libs/cfitsio )
81 geos? ( >=sci-libs/geos-2.2.1 )
82 gif? ( media-libs/giflib )
83 gml? ( >=dev-libs/xerces-c-3 )
84 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
85 jpeg? ( media-libs/jpeg )
86 jpeg2k? ( media-libs/jasper )
87 mysql? ( virtual/mysql )
88 netcdf? ( sci-libs/netcdf )
89 odbc? ( dev-db/unixODBC )
90 ogdi? ( sci-libs/ogdi )
91 pam? ( sys-libs/pam )
92 perl? ( dev-lang/perl )
93 png? ( media-libs/libpng )
94 postgres? (
95 || (
96 >=dev-db/postgresql-base-8.4
97 >=dev-db/postgresql-server-8.4
98 )
99 )
100 python? ( dev-python/numpy )
101 ruby? ( >=dev-lang/ruby-1.8.4.20060226 )
102 sqlite? ( >=dev-db/sqlite-3 )
103 tiff? (
104 >=media-libs/tiff-4.0.0_beta6
105 sci-libs/libgeotiff
106 )
107 "
108
109 DEPEND="${RDEPEND}
110 doc? ( app-doc/doxygen )
111 perl? ( >=dev-lang/swig-1.3.32 )
112 python? ( >=dev-lang/swig-1.3.32 )
113 ruby? ( >=dev-lang/swig-1.3.32 )
114 "
115
116 AT_M4DIR="${S}/m4"
117
118 pkg_setup() {
119 # only py2 is supported
120 python_set_active_version 2
121 }
122
123 src_prepare() {
124 # fix datadir and docdir placement
125 sed -i \
126 -e "s:@datadir@:@datadir@/gdal:" \
127 -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
128 GDALmake.opt.in || die
129
130 sed -i \
131 -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
132 swig/python/GNUmakefile || die
133
134 epatch "${FILESDIR}"/${PV}-ruby_cflags.patch \
135 "${FILESDIR}"/${PN}-1.5.0-soname.patch
136
137 eautoreconf
138 }
139
140 src_configure() {
141 if use ruby; then
142 RUBY_MOD_DIR=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
143 fi
144
145 # pcidsk is internal, because there is no such library yet released
146 # also that thing is developed by the gdal people
147 # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
148 # bsb - legal issues
149 # oracle - disabled, i dont have and can't test
150 # ingres - same story as oracle oci
151 econf \
152 --enable-shared \
153 --disable-static \
154 --with-expat \
155 --without-grass \
156 --without-hdf4 \
157 --without-fme \
158 --without-pcraster \
159 --without-kakadu \
160 --without-mrsid \
161 --without-jp2mrsid \
162 --without-msg \
163 --without-bsb \
164 --without-dods-root \
165 --without-oci \
166 --without-ingres \
167 --without-spatialite \
168 --without-dwgdirect \
169 --without-epsilon \
170 --without-idb \
171 --without-sde \
172 --with-libz="${EPREFIX}/usr/" \
173 --with-ogr \
174 --with-grib \
175 --with-vfk \
176 $(use_enable debug) \
177 $(use_with postgres pg) \
178 $(use_with fits cfitsio) \
179 $(use_with netcdf) \
180 $(use_with png) \
181 $(use_with jpeg) \
182 $(use_with jpeg pcidsk) \
183 $(use_with tiff libtiff) \
184 $(use_with tiff geotiff) \
185 $(use_with gif) \
186 $(use_with ogdi ogdi "${EPREFIX}"/usr) \
187 $(use_with hdf5) \
188 $(use_with jpeg2k jasper) \
189 $(use_with ecwj2k ecw) \
190 $(use_with gml xerces) \
191 $(use_with odbc) \
192 $(use_with curl) \
193 $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
194 $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \
195 $(use_with geos) \
196 $(use_with pam) \
197 $(use_with perl) \
198 $(use_with ruby) \
199 $(use_with python) \
200 --with-pymoddir=${EPREFIX}/$(python_get_sitedir)
201
202 # mysql-config puts this in (and boy is it a PITA to get it out)
203 if use mysql; then
204 sed -i \
205 -e "s: -rdynamic : :" \
206 GDALmake.opt || die "sed LIBS failed"
207 fi
208
209 # updated for newer swig (must specify the path to input files)
210 if use python; then
211 sed -i \
212 -e "s: gdal_array.i: ../include/gdal_array.i:" \
213 -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
214 swig/python/GNUmakefile || die "sed python makefile failed"
215 sed -i \
216 -e "s:library_dirs = :library_dirs = /usr/$(get_libdir)::g" \
217 swig/python/setup.cfg || die "sed python setup.cfg failed"
218 fi
219 }
220
221 src_compile() {
222 local i
223 for i in perl ruby python; do
224 if use $i; then
225 rm "${S}"/swig/$i/*_wrap.cpp
226 emake -C "${S}"/swig/$i generate || \
227 die "make generate failed for swig/$i"
228 fi
229 done
230
231 # parallel makes fail
232 emake -j1 || die "emake failed"
233
234 if use perl ; then
235 cd "${S}"/swig/perl
236 perl-module_src_prep
237 perl-module_src_compile
238 cd "${S}"
239 fi
240
241 if use doc ; then
242 make docs || die "make docs failed"
243 fi
244 }
245
246 src_install() {
247 if use perl ; then
248 pushd "${S}"/swig/perl > /dev/null
249 perl-module_src_install
250 popd > /dev/null
251 sed -i \
252 -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
253 GDALmake.opt || die
254 fi
255
256 emake DESTDIR="${D}" install || die "make install failed"
257
258 if use ruby ; then
259 # weird reinstall collision; needs manual intervention...
260 pushd "${S}"/swig/ruby > /dev/null
261 rm -rf "${D}"${RUBY_MOD_DIR}/gdal
262 exeinto ${RUBY_MOD_DIR}/gdal
263 doexe *.so || die "doins ruby modules failed"
264 popd > /dev/null
265 fi
266
267 use perl && fixlocalpod
268
269 dodoc Doxyfile HOWTO-RELEASE NEWS || die
270
271 if use doc ; then
272 dohtml html/* || die "install html failed"
273 docinto ogr
274 dohtml ogr/html/* || die "install ogr html failed"
275 fi
276
277 if use python; then
278 newdoc swig/python/README.txt README-python.txt || die
279 insinto /usr/share/${PN}/samples
280 doins swig/python/samples/* || die
281 fi
282 }
283
284 pkg_postinst() {
285 echo
286 elog "Check available image and data formats after building with"
287 elog "gdalinfo and ogrinfo (using the --formats switch)."
288 }