1 |
nerdboy 09/08/03 03:49:06 |
2 |
|
3 |
Modified: ChangeLog gdal-1.6.0-r1.ebuild |
4 |
Added: gdal-1.6.1.ebuild |
5 |
Log: |
6 |
Added latest version and updated Ruby build patch (again) for 1.6x. |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 sci-libs/gdal/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -u -r1.61 -r1.62 |
22 |
--- ChangeLog 1 Aug 2009 16:56:11 -0000 1.61 |
23 |
+++ ChangeLog 3 Aug 2009 03:49:06 -0000 1.62 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sci-libs/gdal |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.61 2009/08/01 16:56:11 nerdboy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.62 2009/08/03 03:49:06 nerdboy Exp $ |
29 |
+ |
30 |
+*gdal-1.6.1 (03 Aug 2009) |
31 |
+ |
32 |
+ 03 Aug 2009; Steve Arnold <nerdboy@g.o> gdal-1.6.0-r1.ebuild, |
33 |
+ -files/gdal-1.6.0-ruby-make.patch, +gdal-1.6.1.ebuild, |
34 |
+ +files/gdal-1.6.1-ruby-make.patch: |
35 |
+ Added latest version and updated Ruby build patch (again) for 1.6x. |
36 |
+ Could use some actual testing of the ruby interface... |
37 |
|
38 |
01 Aug 2009; Steve Arnold <nerdboy@g.o> gdal-1.6.0-r1.ebuild, |
39 |
+files/gdal-1.6.0-mysql_ogr_header.patch: |
40 |
|
41 |
|
42 |
|
43 |
1.3 sci-libs/gdal/gdal-1.6.0-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild?rev=1.3&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild?rev=1.3&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild?r1=1.2&r2=1.3 |
48 |
|
49 |
Index: gdal-1.6.0-r1.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild,v |
52 |
retrieving revision 1.2 |
53 |
retrieving revision 1.3 |
54 |
diff -u -r1.2 -r1.3 |
55 |
--- gdal-1.6.0-r1.ebuild 1 Aug 2009 16:56:11 -0000 1.2 |
56 |
+++ gdal-1.6.0-r1.ebuild 3 Aug 2009 03:49:06 -0000 1.3 |
57 |
@@ -1,9 +1,9 @@ |
58 |
# Copyright 1999-2009 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild,v 1.2 2009/08/01 16:56:11 nerdboy Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.6.0-r1.ebuild,v 1.3 2009/08/03 03:49:06 nerdboy Exp $ |
62 |
|
63 |
WANT_AUTOCONF="2.5" |
64 |
-inherit autotools distutils eutils perl-module toolchain-funcs |
65 |
+inherit autotools distutils eutils perl-module ruby toolchain-funcs |
66 |
|
67 |
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)" |
68 |
HOMEPAGE="http://www.gdal.org/" |
69 |
@@ -54,6 +54,8 @@ |
70 |
doc? ( app-doc/doxygen )" |
71 |
|
72 |
AT_M4DIR="${S}/m4" |
73 |
+USE_RUBY="ruby18" |
74 |
+RUBY_OPTIONAL="yes" |
75 |
|
76 |
pkg_setup() { |
77 |
if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then |
78 |
@@ -74,7 +76,7 @@ |
79 |
epatch "${FILESDIR}"/${PN}-1.4.2-datadir.patch \ |
80 |
"${FILESDIR}"/${PN}-1.5.0-soname.patch \ |
81 |
"${FILESDIR}"/${PN}-1.5.1-python-install.patch \ |
82 |
- "${FILESDIR}"/${P}-ruby-make.patch \ |
83 |
+ "${FILESDIR}"/${PN}-1.6.1-ruby-make.patch \ |
84 |
"${FILESDIR}"/${P}-swig-fix.patch \ |
85 |
"${FILESDIR}"/${P}-mysql_ogr_header.patch \ |
86 |
|| die "sed failed" |
87 |
@@ -136,7 +138,7 @@ |
88 |
fi |
89 |
|
90 |
# Fix doc path just in case |
91 |
- sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" \ |
92 |
+ sed -i -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
93 |
GDALmake.opt.in || die "sed gdalmake.opt failed" |
94 |
|
95 |
econf ${pkg_conf} ${use_conf} || die "econf failed" |
96 |
|
97 |
|
98 |
|
99 |
1.1 sci-libs/gdal/gdal-1.6.1.ebuild |
100 |
|
101 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.6.1.ebuild?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.6.1.ebuild?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: gdal-1.6.1.ebuild |
105 |
=================================================================== |
106 |
# Copyright 1999-2009 Gentoo Foundation |
107 |
# Distributed under the terms of the GNU General Public License v2 |
108 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.6.1.ebuild,v 1.1 2009/08/03 03:49:06 nerdboy Exp $ |
109 |
|
110 |
WANT_AUTOCONF="2.5" |
111 |
inherit autotools distutils eutils perl-module ruby toolchain-funcs |
112 |
|
113 |
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)" |
114 |
HOMEPAGE="http://www.gdal.org/" |
115 |
SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz" |
116 |
|
117 |
SLOT="0" |
118 |
LICENSE="MIT" |
119 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
120 |
# need to get these arches updated on several libs first |
121 |
#KEYWORDS="~alpha ~hppa" |
122 |
|
123 |
IUSE="curl debug doc ecwj2k fits geos gif gml hdf hdf5 jpeg jpeg2k mysql \ |
124 |
netcdf odbc png ogdi perl postgres python ruby sqlite threads" |
125 |
|
126 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
127 |
>=media-libs/tiff-3.7.0 |
128 |
sci-libs/libgeotiff |
129 |
dev-libs/expat |
130 |
curl? ( net-misc/curl ) |
131 |
jpeg? ( media-libs/jpeg ) |
132 |
gif? ( media-libs/giflib ) |
133 |
png? ( media-libs/libpng ) |
134 |
perl? ( dev-lang/perl ) |
135 |
python? ( virtual/python |
136 |
dev-python/numpy ) |
137 |
ruby? ( >=dev-lang/ruby-1.8.4.20060226 ) |
138 |
fits? ( sci-libs/cfitsio ) |
139 |
ogdi? ( sci-libs/ogdi ) |
140 |
gml? ( >=dev-libs/xerces-c-3 ) |
141 |
hdf5? ( >=sci-libs/hdf5-1.6.4 ) |
142 |
postgres? ( virtual/postgresql-server ) |
143 |
|| ( |
144 |
netcdf? ( sci-libs/netcdf ) |
145 |
hdf? ( sci-libs/hdf ) |
146 |
) |
147 |
|| ( |
148 |
jpeg2k? ( media-libs/jasper ) |
149 |
ecwj2k? ( !media-libs/lcms |
150 |
sci-libs/libecwj2 ) |
151 |
) |
152 |
mysql? ( virtual/mysql ) |
153 |
odbc? ( dev-db/unixODBC ) |
154 |
geos? ( >=sci-libs/geos-2.2.1 ) |
155 |
sqlite? ( >=dev-db/sqlite-3 )" |
156 |
|
157 |
DEPEND="${RDEPEND} |
158 |
perl? ( python? ( ruby? ( >=dev-lang/swig-1.3.28 ) ) ) |
159 |
doc? ( app-doc/doxygen )" |
160 |
|
161 |
AT_M4DIR="${S}/m4" |
162 |
USE_RUBY="ruby18" |
163 |
RUBY_OPTIONAL="yes" |
164 |
|
165 |
pkg_setup() { |
166 |
if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then |
167 |
elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." |
168 |
else |
169 |
elog "User-specified configure options are not set." |
170 |
elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." |
171 |
fi |
172 |
} |
173 |
|
174 |
src_unpack() { |
175 |
unpack ${A} |
176 |
cd "${S}" |
177 |
|
178 |
eaclocal |
179 |
eautoconf |
180 |
|
181 |
epatch "${FILESDIR}"/${PN}-1.4.2-datadir.patch \ |
182 |
"${FILESDIR}"/${PN}-1.5.0-soname.patch \ |
183 |
"${FILESDIR}"/${PN}-1.5.1-python-install.patch \ |
184 |
"${FILESDIR}"/${PN}-1.6.0-swig-fix.patch \ |
185 |
"${FILESDIR}"/${PN}-1.6.0-mysql_ogr_header.patch \ |
186 |
"${FILESDIR}"/${P}-ruby-make.patch |
187 |
|
188 |
if useq hdf; then |
189 |
einfo "Checking if HDF4 is compiled with szip..." |
190 |
if built_with_use sci-libs/hdf szip ; then |
191 |
einfo "Found HDF4 compiled with szip. Nice." |
192 |
else |
193 |
ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!" |
194 |
einfo "Please emerge hdf with szip USE flag and then emerge GDAL." |
195 |
die "HDF4 not merged with szip use flag" |
196 |
fi |
197 |
|
198 |
if useq netcdf; then |
199 |
ewarn "Netcdf and HDF4 are incompatible due to certain tools in" |
200 |
ewarn "common; HDF5 is now the preferred choice for HDF data." |
201 |
die "Please disable either the hdf or netcdf use flag." |
202 |
fi |
203 |
fi |
204 |
} |
205 |
|
206 |
src_compile() { |
207 |
|
208 |
distutils_python_version |
209 |
|
210 |
local pkg_conf="${GDAL_CONFIGURE_OPTS}" |
211 |
local use_conf="" |
212 |
|
213 |
pkg_conf="${pkg_conf} --enable-shared=yes --with-pic \ |
214 |
--with-libgrass=no --without-libtool" |
215 |
|
216 |
use_conf="$(use_with jpeg) $(use_with png) $(use_with mysql) \ |
217 |
$(use_with postgres pg) $(use_with python) $(use_with ruby) \ |
218 |
$(use_with threads) $(use_with fits cfitsio) $(use_with perl) \ |
219 |
$(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \ |
220 |
$(use_with sqlite sqlite3) $(use_with jpeg2k jasper) $(use_with odbc) \ |
221 |
$(use_with gml xerces) $(use_with hdf5) $(use_with curl) \ |
222 |
$(use_enable debug)" |
223 |
|
224 |
# It can't find this |
225 |
if useq ogdi ; then |
226 |
use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}" |
227 |
fi |
228 |
|
229 |
if useq mysql ; then |
230 |
use_conf="--with-mysql=/usr/bin/mysql_config ${use_conf}" |
231 |
fi |
232 |
|
233 |
if useq gif ; then |
234 |
use_conf="--with-gif=internal ${use_conf}" |
235 |
else |
236 |
use_conf="--with-gif=no ${use_conf}" |
237 |
fi |
238 |
|
239 |
if useq python ; then |
240 |
use_conf="--with-pymoddir=/usr/$(get_libdir)/python${PYVER}/site-packages \ |
241 |
${use_conf}" |
242 |
fi |
243 |
|
244 |
# Fix doc path just in case |
245 |
sed -i -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
246 |
GDALmake.opt.in || die "sed gdalmake.opt failed" |
247 |
|
248 |
econf ${pkg_conf} ${use_conf} || die "econf failed" |
249 |
|
250 |
# parallel makes fail on the ogr stuff (C++, what can I say?) |
251 |
# also failing with gcc4 in libcsf |
252 |
emake -j1 || die "emake failed" |
253 |
|
254 |
if useq python; then |
255 |
sed -i -e "s#library_dirs = #library_dirs = /usr/$(get_libdir):#g" \ |
256 |
swig/python/setup.cfg || die "sed python setup.cfg failed" |
257 |
sed -i -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
258 |
swig/python/GNUmakefile || die "sed python makefile failed" |
259 |
fi |
260 |
|
261 |
if useq perl ; then |
262 |
cd "${S}"/swig/perl |
263 |
perl-module_src_prep |
264 |
perl-module_src_compile |
265 |
cd "${S}" |
266 |
fi |
267 |
|
268 |
if useq doc ; then |
269 |
make docs || die "make docs failed" |
270 |
fi |
271 |
} |
272 |
|
273 |
src_install() { |
274 |
|
275 |
if useq perl ; then |
276 |
cd "${S}"/swig/perl |
277 |
perl-module_src_install |
278 |
sed -i -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \ |
279 |
GDALmake.opt |
280 |
cd "${S}" |
281 |
fi |
282 |
|
283 |
# einstall causes sandbox violations on /usr/lib/libgdal.so |
284 |
make DESTDIR="${D}" install \ |
285 |
|| die "make install failed" |
286 |
|
287 |
dodoc Doxyfile HOWTO-RELEASE NEWS |
288 |
|
289 |
if useq doc ; then |
290 |
dohtml html/* || die "install html failed" |
291 |
docinto ogr |
292 |
dohtml ogr/html/* || die "install ogr html failed" |
293 |
fi |
294 |
|
295 |
if useq python; then |
296 |
newdoc swig/python/README.txt README-python.txt |
297 |
dodir /usr/share/${PN}/samples |
298 |
insinto /usr/share/${PN}/samples |
299 |
doins swig/python/samples/* |
300 |
fi |
301 |
|
302 |
use perl && fixlocalpod |
303 |
} |
304 |
|
305 |
pkg_postinst() { |
306 |
elog |
307 |
elog "If you need libgrass support, then you must rebuild gdal, after" |
308 |
elog "installing the latest Grass, and set the following option:" |
309 |
elog |
310 |
elog "GDAL_CONFIGURE_OPTS=--with-grass=\$GRASS_HOME emerge gdal" |
311 |
elog |
312 |
elog "GDAL is most useful with full graphics support enabled via various" |
313 |
elog "USE flags: png, jpeg, gif, jpeg2k, etc. Also python, fits, ogdi," |
314 |
elog "geos, and support for either netcdf or HDF4 is available, as well as" |
315 |
elog "grass, and mysql, sqlite, or postgres (grass support requires grass 6" |
316 |
elog "and rebuilding gdal). HDF5 support is now included." |
317 |
elog |
318 |
elog "Note: tiff and geotiff are now hard depends, so no USE flags." |
319 |
elog "Also, this package will check for netcdf before hdf, so if you" |
320 |
elog "prefer hdf, please emerge hdf with USE=szip prior to emerging" |
321 |
elog "gdal. Detailed API docs require doxygen (man pages are free)." |
322 |
elog |
323 |
elog "Check available image and data formats after building with" |
324 |
elog "gdalinfo and ogrinfo (using the --formats switch)." |
325 |
elog |
326 |
} |