diff options
Diffstat (limited to 'sci-libs/gdal/gdal-1.5.2.ebuild')
-rw-r--r-- | sci-libs/gdal/gdal-1.5.2.ebuild | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/sci-libs/gdal/gdal-1.5.2.ebuild b/sci-libs/gdal/gdal-1.5.2.ebuild index 912c48e57780..19d647f13eb4 100644 --- a/sci-libs/gdal/gdal-1.5.2.ebuild +++ b/sci-libs/gdal/gdal-1.5.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.5.2.ebuild,v 1.6 2008/12/25 13:40:29 bluebird Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.5.2.ebuild,v 1.7 2009/02/18 04:03:47 nerdboy Exp $ WANT_AUTOCONF="2.5" inherit autotools distutils eutils perl-module toolchain-funcs @@ -58,6 +58,23 @@ pkg_setup() { elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi + + if useq hdf; then + einfo "Checking if HDF4 is compiled with szip..." + if built_with_use sci-libs/hdf szip ; then + einfo "Found HDF4 compiled with szip. Nice." + else + ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!" + einfo "Please emerge hdf with szip USE flag and then emerge GDAL." + die "HDF4 not merged with szip use flag" + fi + + if useq netcdf; then + ewarn "Netcdf and HDF4 are incompatible due to certain tools in" + ewarn "common; HDF5 is now the preferred choice for HDF data." + die "Please disable either the hdf or netcdf use flag." + fi + fi } src_unpack() { @@ -72,17 +89,6 @@ src_unpack() { "${FILESDIR}"/${PN}-1.5.0-makefile.patch \ "${FILESDIR}"/${PN}-1.5.1-python-install.patch \ "${FILESDIR}"/${P}-xerces-64-bit.patch - - if useq netcdf && useq hdf; then - einfo "Checking if HDF4 is compiled with szip..." - if built_with_use sci-libs/hdf szip ; then - einfo "Found HDF4 compiled with szip. Nice." - else - ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!" - einfo "Please emerge hdf with szip USE flag and then emerge GDAL." - die "HDF4 not merged with szip use flag" - fi - fi } src_compile() { |