Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/gdal: ChangeLog gdal-1.5.0.ebuild
Date: Sun, 03 Feb 2008 23:00:43
Message-Id: E1JLnpI-0000O6-6g@stork.gentoo.org
1 nerdboy 08/02/03 23:00:40
2
3 Modified: ChangeLog
4 Added: gdal-1.5.0.ebuild
5 Log:
6 updated to latest upstream release plus patches
7 (Portage version: 2.1.4)
8
9 Revision Changes Path
10 1.35 sci-libs/gdal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.35&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.35&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.34&r2=1.35
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v
19 retrieving revision 1.34
20 retrieving revision 1.35
21 diff -u -r1.34 -r1.35
22 --- ChangeLog 4 Jan 2008 05:24:28 -0000 1.34
23 +++ ChangeLog 3 Feb 2008 23:00:39 -0000 1.35
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-libs/gdal
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.34 2008/01/04 05:24:28 nerdboy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.35 2008/02/03 23:00:39 nerdboy Exp $
29 +
30 +*gdal-1.5.0 (03 Feb 2008)
31 +
32 + 03 Feb 2008; Steve Arnold <nerdboy@g.o>
33 + +files/gdal-1.5.0-makefile.patch, +files/gdal-1.5.0-python-install.patch,
34 + +files/gdal-1.5.0-soname.patch, +gdal-1.5.0.ebuild:
35 + updated to latest upstream release plus patches
36
37 04 Jan 2008; Steve Arnold <nerdboy@g.o> gdal-1.4.2.ebuild:
38 fixed mysql borkage; no idea what happened...
39
40
41
42 1.1 sci-libs/gdal/gdal-1.5.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.5.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gdal/gdal-1.5.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gdal-1.5.0.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.5.0.ebuild,v 1.1 2008/02/03 23:00:39 nerdboy Exp $
52
53 inherit autotools distutils eutils perl-module toolchain-funcs
54
55 IUSE="debug doc fits geos gif gml hdf hdf5 jpeg jpeg2k mysql netcdf \
56 odbc png ogdi perl postgres python ruby sqlite"
57
58 DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
59 HOMEPAGE="http://www.gdal.org/"
60 SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz"
61
62 SLOT="0"
63 LICENSE="MIT"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
65 # need to get these arches updated on several libs first
66 #KEYWORDS="~alpha ~hppa"
67
68 DEPEND=">=sys-libs/zlib-1.1.4
69 >=media-libs/tiff-3.7.0
70 sci-libs/libgeotiff
71 jpeg? ( media-libs/jpeg )
72 gif? ( media-libs/giflib )
73 png? ( media-libs/libpng )
74 perl? ( dev-lang/perl )
75 python? ( virtual/python
76 dev-python/numpy )
77 ruby? ( >=dev-lang/ruby-1.8.4.20060226
78 >=dev-lang/swig-1.3.28 )
79 fits? ( sci-libs/cfitsio )
80 ogdi? ( sci-libs/ogdi )
81 gml? ( >=dev-libs/xerces-c-2.8.0 )
82 hdf5? ( >=sci-libs/hdf5-1.6.4 )
83 postgres? ( dev-db/postgresql )
84 || (
85 netcdf? ( sci-libs/netcdf )
86 hdf? ( sci-libs/hdf )
87 )
88 jpeg2k? ( media-libs/jasper )
89 mysql? ( virtual/mysql )
90 odbc? ( dev-db/unixODBC )
91 geos? ( >=sci-libs/geos-2.2.1 )
92 sqlite? ( >=dev-db/sqlite-3 )
93 doc? ( app-doc/doxygen )"
94
95 WANT_AUTOCONF="2.5"
96 AT_M4DIR="${S}/m4"
97
98 src_unpack() {
99 unpack ${A}
100 cd "${S}"
101
102 eaclocal
103 eautoconf
104
105 epatch "${FILESDIR}/${PN}-1.4.2-datadir.patch" \
106 "${FILESDIR}/${P}-python-install.patch" \
107 "${FILESDIR}/${P}-soname.patch" \
108 "${FILESDIR}/${P}-makefile.patch"
109
110 if useq netcdf && useq hdf; then
111 einfo "Checking if HDF4 is compiled with szip..."
112 if built_with_use sci-libs/hdf szip ; then
113 einfo "Found HDF4 compiled with szip. Nice."
114 else
115 ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!"
116 einfo "Please emerge hdf with szip USE flag and then emerge GDAL."
117 die "HDF4 not merged with szip use flag"
118 fi
119 fi
120 }
121
122 src_compile() {
123 distutils_python_version
124
125 pkg_conf="--enable-static=no --enable-shared=yes --with-pic \
126 --with-libgrass=no --without-libtool $(use_enable debug)"
127
128 use_conf="$(use_with jpeg) $(use_with png) $(use_with mysql) \
129 $(use_with perl) $(use_with python) $(use_with ruby) \
130 $(use_with postgres pg) $(use_with fits cfitsio) \
131 $(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \
132 $(use_with sqlite) $(use_with jpeg2k jasper) $(use_with odbc) \
133 $(use_with gml xerces) $(use_with hdf5)"
134
135 # It can't find this
136 if useq ogdi ; then
137 use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}"
138 fi
139
140 if useq mysql ; then
141 use_conf="--with-mysql=/usr/bin/mysql_config ${use_conf}"
142 fi
143
144 if useq gif ; then
145 use_conf="--with-gif=internal ${use_conf}"
146 else
147 use_conf="--with-gif=no ${use_conf}"
148 fi
149
150 if useq python ; then
151 use_conf="--with-pymoddir=/usr/$(get_libdir)/python${PYVER}/site-packages \
152 ${use_conf}"
153 fi
154
155 # Fix doc path just in case
156 sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" GDALmake.opt.in
157
158 econf ${pkg_conf} ${use_conf} || die "econf failed"
159
160 # parallel makes fail on the ogr stuff (C++, what can I say?)
161 # also failing with gcc4 in libcsf
162 emake -j1 || die "emake failed"
163
164 if use python; then
165 sed -i -e "s#library_dirs = #library_dirs = /usr/$(get_libdir):#g" \
166 swig/python/setup.cfg
167 sed -i -e "s:$(DESTDIR)$(prefix):$(DESTDIR)$(INST_PREFIX):g" \
168 swig/python/GNUmakefile
169 fi
170
171 if useq perl ; then
172 cd "${S}"/swig/perl
173 perl-module_src_prep
174 perl-module_src_compile
175 cd "${S}"
176 fi
177
178 if useq doc ; then
179 make docs || die "make docs failed"
180 fi
181 }
182
183 src_install() {
184
185 if useq perl; then
186 cd "${S}"/swig/perl
187 perl-module_src_install
188 sed -i -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
189 GDALmake.opt
190 cd "${S}"
191 fi
192
193 # einstall causes sandbox violations on /usr/lib/libgdal.so
194 make DESTDIR="${D}" install \
195 || die "make install failed"
196
197 dodoc Doxyfile HOWTO-RELEASE NEWS
198
199 if useq doc ; then
200 dohtml html/* || die "install html failed"
201 docinto ogr
202 dohtml ogr/html/* || die "install ogr html failed"
203 fi
204
205 if useq python; then
206 newdoc swig/python/README.txt README-python.txt
207 dodir /usr/share/${PN}/samples
208 insinto /usr/share/${PN}/samples
209 doins swig/python/samples/*
210 fi
211 }
212
213 pkg_postinst() {
214 einfo "GDAL is most useful with full graphics support enabled via various"
215 einfo "USE flags: png, jpeg, gif, jpeg2k, etc. Also python, fits, ogdi,"
216 einfo "geos, and support for either netcdf or HDF4 is available, as well as"
217 einfo "grass, and mysql, sqlite, or postgres (grass support requires grass 6"
218 einfo "and the new gdal-grass ebuild). HDF5 support is now included."
219 ewarn
220 einfo "Note: tiff and geotiff are now hard depends, so no USE flags."
221 einfo "Also, this package will check for netcdf before hdf, so if you"
222 einfo "prefer hdf, please emerge hdf with USE=szip prior to emerging"
223 einfo "gdal. Detailed API docs require doxygen (man pages are free)."
224 einfo ""
225 einfo "Check available image and data formats after building with"
226 einfo "gdalinfo and ogrinfo (using the --formats switch)."
227 }
228
229
230
231 --
232 gentoo-commits@l.g.o mailing list