diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2005-02-21 00:09:45 +0000 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2005-02-21 00:09:45 +0000 |
commit | 94295f89579765403123271706ecccf2ec2d1890 (patch) | |
tree | cf0339af6b876b9a1b88a5953dd6131880fb8e16 /sci-libs/gdal | |
parent | remove ia64 1.4 profile in favor of 2004.x and 2005.x (diff) | |
download | historical-94295f89579765403123271706ecccf2ec2d1890.tar.gz historical-94295f89579765403123271706ecccf2ec2d1890.tar.bz2 historical-94295f89579765403123271706ecccf2ec2d1890.zip |
Adding new ebuild for geographic apps
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sci-libs/gdal')
-rw-r--r-- | sci-libs/gdal/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/gdal/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/gdal/files/digest-gdal-1.2.5 | 1 | ||||
-rw-r--r-- | sci-libs/gdal/gdal-1.2.5.ebuild | 101 | ||||
-rw-r--r-- | sci-libs/gdal/metadata.xml | 12 |
5 files changed, 129 insertions, 0 deletions
diff --git a/sci-libs/gdal/ChangeLog b/sci-libs/gdal/ChangeLog new file mode 100644 index 000000000000..a32615d58d96 --- /dev/null +++ b/sci-libs/gdal/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sci-libs/gdal +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.1 2005/02/21 00:09:45 nerdboy Exp $ + +*gdal-1.2.5 (20 Feb 2005) + + 20 Feb 2005; Steve Arnold <nerdboy@gentoo.org> +metadata.xml, + +gdal-1.2.5.ebuild: + Adding new ebuild for geographic apps (still working on grass support). + Tested heavily on x86 only so far... + diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest new file mode 100644 index 000000000000..a84b37c59000 --- /dev/null +++ b/sci-libs/gdal/Manifest @@ -0,0 +1,4 @@ +MD5 dc56f5d75556cdbcd7c4024288ef8fcb metadata.xml 481 +MD5 7acc3fd5426ed381efdd25fe0728bdf4 gdal-1.2.5.ebuild 3079 +MD5 e41dd6ddc479517012f92f7e5080a58f ChangeLog 427 +MD5 82ada11f44c42ddedbfa5426ad7991d2 files/digest-gdal-1.2.5 63 diff --git a/sci-libs/gdal/files/digest-gdal-1.2.5 b/sci-libs/gdal/files/digest-gdal-1.2.5 new file mode 100644 index 000000000000..1a5ca2ddbd9d --- /dev/null +++ b/sci-libs/gdal/files/digest-gdal-1.2.5 @@ -0,0 +1 @@ +MD5 2e3e651be6b4f42486e99ef39c17ffb1 gdal-1.2.5.tar.gz 4165783 diff --git a/sci-libs/gdal/gdal-1.2.5.ebuild b/sci-libs/gdal/gdal-1.2.5.ebuild new file mode 100644 index 000000000000..8199cd88b6a6 --- /dev/null +++ b/sci-libs/gdal/gdal-1.2.5.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.2.5.ebuild,v 1.1 2005/02/21 00:09:45 nerdboy Exp $ + +inherit eutils libtool gnuconfig distutils + +# libgrass support is coming soon... +# grass? ( >=sci-geosciences/grass-5.0 ) + +IUSE="jpeg png gif python postgres mysql ogdi fits" + +DESCRIPTION="GDAL is a translator library for raster geospatial data formats" +HOMEPAGE="http://www.remotesensing.org/gdal/index.html" +SRC_URI="http://dl.maptools.org/dl/gdal/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="x86 ~sparc ~hppa ~alpha ~amd64 ~ppc" + +DEPEND=">=sys-libs/zlib-1.1.4 + >=media-libs/tiff-3.7.0 + sci-libs/libgeotiff + jpeg? ( media-libs/jpeg ) + gif? ( media-libs/libungif ) + png? ( media-libs/libpng ) + python? ( dev-lang/python ) + fits? ( sci-libs/cfitsio ) + ogdi? ( sci-libs/ogdi ) + || ( + sci-libs/netcdf + sci-libs/hdf + ) + || ( + postgres? ( dev-db/postgresql ) + mysql? ( dev-db/mysql ) + )" + +src_unpack() { + unpack ${A} + cd ${S} + elibtoolize --patch-only + gnuconfig_update +} + +src_compile() { + distutils_python_version + # This package uses old borked automake/autoconf and libtool, so + # it doesn't work without ${D} econf and einstall + pkg_conf="--datadir=${D}usr/share/gdal --includedir=${D}usr/include/gdal --without-libtool --enable-shared --with-gnu-ld --with-pic" + use_conf="$(use_with jpeg) $(use_with png) $(use_with mysql) $(use_with postgres pg) $(use_with fits cfitsio) $(use_with ogdi)" + + myconf="${pkg_conf} ${use_conf}" + + # These will need version checks: + #$(use_with grass) $(use_with libgrass) + + if useq gif ; then + myconf="--with-gif=internal ${myconf}" + else + myconf="--with-gif=no ${myconf}" + fi + +# if useq grass ; then # no libgrass in 5.0.3 !!! +# myconf="--with-libgrass=/usr/grass5/lib ${myconf}" +# else + myconf="--with-libgrass=no ${myconf}" +# fi + + if useq python ; then + myconf="--with-pymoddir=${D}usr/lib/python${PYVER}/site-packages ${myconf}" + else + myconf="--with-python=no ${myconf}" + fi + + ./configure --prefix=${D}usr --exec-prefix=${D}usr \ + --with-pymoddir=${D}usr/lib/python${PYVER}/site-packages \ + ${myconf} + # Patch libtool here since it's not created until after configure runs + sed -i -e "s:hardcode_into_libs=yes:hardcode_into_libs=no:g" libtool + make || die "make failed" +} + +src_install() { + # einstall causes sandbox violations on /usr/lib/libgdal.so + #einstall || die "einstall failed" + make DESTDIR=${D} install + dosed "s:${D}usr:/usr:g" /usr/bin/gdal-config + dodoc Doxyfile.man Doxyfile HOWTO-RELEASE NEWS +} + +pkg_postinst() { + einfo "GDAL is most useful with full graphics support enabled via" + einfo "USE flags: png, jpeg, and gif. Optional python fits, ogdi, and" + einfo "support for either netcdf or HDF4 is available, as well as" + einfo "either mysql or postgres." + ewarn + einfo "Note: tiff and geotiff are now hard depends, so no USE flags." + einfo "Also, this package will check for netcdf before hdf, so if you" + einfo "prefer hdf, please emerge hdf (ver 4 only) prior to emerging" + einfo "gdal." +} diff --git a/sci-libs/gdal/metadata.xml b/sci-libs/gdal/metadata.xml new file mode 100644 index 000000000000..f76f52ed030f --- /dev/null +++ b/sci-libs/gdal/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>nerdboy@gentoo.org</email> + <name>Steve Arnold</name> + <description>Primary Maintainer</description> +</maintainer> +<longdescription>GDAL is the Geospatial Data Abstraction Library, a set of tools for + converting between geospatial raster data formats (includes OGR for vector data).</longdescription> +</pkgmetadata> |