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