summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2006-05-22 06:52:51 +0000
committerSteve Arnold <nerdboy@gentoo.org>2006-05-22 06:52:51 +0000
commit0bd20bbf12e13b9cfb84c9d244583aad9f310b48 (patch)
tree0593d227f0038fe524b489d9c6b3920fdb94db16 /sci-libs/gdal
parentAdd yet another fix against a segfault that ChrisWhite found. (diff)
downloadhistorical-0bd20bbf12e13b9cfb84c9d244583aad9f310b48.tar.gz
historical-0bd20bbf12e13b9cfb84c9d244583aad9f310b48.tar.bz2
historical-0bd20bbf12e13b9cfb84c9d244583aad9f310b48.zip
version bump for more features (ruby bindings)version bump for more features (ruby bindings)
Package-Manager: portage-2.1_rc1-r3
Diffstat (limited to 'sci-libs/gdal')
-rw-r--r--sci-libs/gdal/ChangeLog15
-rw-r--r--sci-libs/gdal/Manifest58
-rw-r--r--sci-libs/gdal/files/digest-gdal-1.2.6-r42
-rw-r--r--sci-libs/gdal/files/digest-gdal-1.3.0-r12
-rw-r--r--sci-libs/gdal/files/digest-gdal-1.3.12
-rw-r--r--sci-libs/gdal/files/digest-gdal-1.3.23
-rw-r--r--sci-libs/gdal/gdal-1.2.6-r4.ebuild6
-rw-r--r--sci-libs/gdal/gdal-1.3.0-r1.ebuild11
-rw-r--r--sci-libs/gdal/gdal-1.3.1.ebuild4
-rw-r--r--sci-libs/gdal/gdal-1.3.2.ebuild149
10 files changed, 232 insertions, 20 deletions
diff --git a/sci-libs/gdal/ChangeLog b/sci-libs/gdal/ChangeLog
index 83b229ab62d8..cfb2741a3fd9 100644
--- a/sci-libs/gdal/ChangeLog
+++ b/sci-libs/gdal/ChangeLog
@@ -1,6 +1,17 @@
# 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.22 2005/12/23 16:21:05 carlo Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.23 2006/05/22 06:52:51 nerdboy Exp $
+
+*gdal-1.3.2 (22 May 2006)
+
+ 22 May 2006; Steve Arnold <nerdboy@gentoo.org> gdal-1.2.6-r4.ebuild,
+ gdal-1.3.0-r1.ebuild, +gdal-1.3.2.ebuild:
+ Version bump for more features (ruby bindings), plus adjusted keywords
+ to work around hdf5 borkage.
+
+ 20 May 2006; Steve Arnold <nerdboy@gentoo.org> gdal-1.2.6-r4.ebuild,
+ gdal-1.3.0-r1.ebuild, gdal-1.3.1.ebuild:
+ Overdue stable bump for my current arches (my sparc broke).
23 Dec 2005; Carsten Lohrke <carlo@gentoo.org> gdal-1.2.6-r4.ebuild,
gdal-1.3.0-r1.ebuild, gdal-1.3.1.ebuild:
diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest
index a811c4c3915a..3dc7005f3aa5 100644
--- a/sci-libs/gdal/Manifest
+++ b/sci-libs/gdal/Manifest
@@ -1,12 +1,56 @@
-MD5 cec61223756ec1a6d74e659e042bdc34 ChangeLog 4373
-MD5 4d15ffbcc89c38a4e5a7bbbe698207a1 files/digest-gdal-1.2.6-r4 63
-MD5 d4bd0e3f81da140c24f49c6e6513b9f6 files/digest-gdal-1.3.0-r1 63
-MD5 388a23e8269dd2033b621fbd5e33ca94 files/digest-gdal-1.3.1 63
+AUX gdal-1.2.6-installpathfix.patch 7786 RMD160 0a8650cb4b8e4f8b21596434f3848ac4db548024 SHA1 6ac083a354a4d89b89935de4fe998eba805f95d0 SHA256 408fc31a7b96f8a6cf9c7a7ea9775668aa842f40964e6ac1d9add07956cbca02 size 7786
MD5 8069b0c62dde416a0c74d1bf73543c9d files/gdal-1.2.6-installpathfix.patch 7786
+RMD160 0a8650cb4b8e4f8b21596434f3848ac4db548024 files/gdal-1.2.6-installpathfix.patch 7786
+SHA256 408fc31a7b96f8a6cf9c7a7ea9775668aa842f40964e6ac1d9add07956cbca02 files/gdal-1.2.6-installpathfix.patch 7786
+AUX gdal-1.3.0-installpathfix.patch 7764 RMD160 ed78619093dc7d59502cd4b62bc0abb2ed19c232 SHA1 41e59d060692aa43a94e3602e4011ceeb8434ac1 SHA256 ffe7a37daf6025b53eff06b0ca3908fea2aa7b217d6bc7fffa56a7cee35aa985 size 7764
MD5 3f4304111ffcc48b1784cc03ef64844b files/gdal-1.3.0-installpathfix.patch 7764
+RMD160 ed78619093dc7d59502cd4b62bc0abb2ed19c232 files/gdal-1.3.0-installpathfix.patch 7764
+SHA256 ffe7a37daf6025b53eff06b0ca3908fea2aa7b217d6bc7fffa56a7cee35aa985 files/gdal-1.3.0-installpathfix.patch 7764
+AUX gdal-1.3.1-installpathfix.patch 6805 RMD160 6cc35c1f741fdb19249666fa2f94052e8fe4a30e SHA1 ebd9b397bd1230a4b5110367f29f6040a86284f3 SHA256 0f9d7e1da2617df781429c2191f6e2429d2e8c73d01c6c115d36f3a295d69280 size 6805
MD5 f93770205b88c698e73487038b46a707 files/gdal-1.3.1-installpathfix.patch 6805
+RMD160 6cc35c1f741fdb19249666fa2f94052e8fe4a30e files/gdal-1.3.1-installpathfix.patch 6805
+SHA256 0f9d7e1da2617df781429c2191f6e2429d2e8c73d01c6c115d36f3a295d69280 files/gdal-1.3.1-installpathfix.patch 6805
+AUX gdal-gcc4.patch 472 RMD160 7c12123cc5e61bf2f92e60acc7f7aafd24a9b413 SHA1 9cbba5ebf35e2ca90386e4ddcd53c47a748f4597 SHA256 25f4b1a67063373536407d23eb98bc98752b5341c1a4556e18906e2077d1d5ae size 472
MD5 2f3f328abbefa4056b6ee71dfbfce529 files/gdal-gcc4.patch 472
-MD5 78660932a3e75ddc8b16d463dad1ee1c gdal-1.2.6-r4.ebuild 4170
-MD5 178d475b84a4e4689ca050d74243d8a3 gdal-1.3.0-r1.ebuild 4222
-MD5 6700be5426bf0697067f1a0454688f3b gdal-1.3.1.ebuild 4431
+RMD160 7c12123cc5e61bf2f92e60acc7f7aafd24a9b413 files/gdal-gcc4.patch 472
+SHA256 25f4b1a67063373536407d23eb98bc98752b5341c1a4556e18906e2077d1d5ae files/gdal-gcc4.patch 472
+DIST gdal-1.2.6.tar.gz 4315879 RMD160 2492520cfa9b724a2a880145f03e44e9804418c8 SHA256 b2c39995839296f396cebaf0410e44aa362851315508258a46c7caee4c37706c size 4315879
+DIST gdal-1.3.0.tar.gz 6644839 RMD160 4296a5b6d3255ab8f3d20f4e7e372c35a2ca335c SHA256 48624307e66b7e70fe75d9c4884617bfda75026cbfc20ab23764b28811864bf9 size 6644839
+DIST gdal-1.3.1.tar.gz 6856011 RMD160 5967608e6e1c9f0af8698fcffb58eab4dcdd518d SHA256 4f8f3c462f9174e1dd99f7bfa2abe010aa129e04c08a242a3c63c1a9e5078753 size 6856011
+DIST gdal-1.3.2.tar.gz 7279872 RMD160 98c7f33bc3a57364e9ca15bf61d11d45f147b8ad SHA256 00f2b73fea5eff79ae26338928187f956427421bc70ddab0ab63fe5a58112b87 size 7279872
+EBUILD gdal-1.2.6-r4.ebuild 4170 RMD160 902ad6ca0e006bcceee71bedd050d15d45273460 SHA1 dfb1a4a60a8e2a72512495397f913c697f4fa594 SHA256 c1d1f6c71f4193bf6a43c2e88471a342de3aa394957b42b54884e14a96c509af size 4170
+MD5 ee3c01cc28212fc087c4675fc7e80613 gdal-1.2.6-r4.ebuild 4170
+RMD160 902ad6ca0e006bcceee71bedd050d15d45273460 gdal-1.2.6-r4.ebuild 4170
+SHA256 c1d1f6c71f4193bf6a43c2e88471a342de3aa394957b42b54884e14a96c509af gdal-1.2.6-r4.ebuild 4170
+EBUILD gdal-1.3.0-r1.ebuild 4167 RMD160 e7d09b29ca71906abd6e5ac9a5110ad043a7b53d SHA1 1742ca49c20de9726d012f0bd97c3571ce8520ac SHA256 a9bb99073316a5d51dc976f2cb6804b80ef069c114ab1d04a6c06147bd5adf4d size 4167
+MD5 1d71f64c724dcc43f23854731d1a339d gdal-1.3.0-r1.ebuild 4167
+RMD160 e7d09b29ca71906abd6e5ac9a5110ad043a7b53d gdal-1.3.0-r1.ebuild 4167
+SHA256 a9bb99073316a5d51dc976f2cb6804b80ef069c114ab1d04a6c06147bd5adf4d gdal-1.3.0-r1.ebuild 4167
+EBUILD gdal-1.3.1.ebuild 4433 RMD160 bee8a1c351f1669dc4823758a928884a5597cce3 SHA1 a85e9255ba435c5b975cc4d20be1b8d94cb21443 SHA256 0d5ec06d30bd7a686dfb7eef9f1c3bf2e17eae4bb2d6d8caca21170cc203ea9d size 4433
+MD5 6a622b9b760392b89b0722b34cfcfc7d gdal-1.3.1.ebuild 4433
+RMD160 bee8a1c351f1669dc4823758a928884a5597cce3 gdal-1.3.1.ebuild 4433
+SHA256 0d5ec06d30bd7a686dfb7eef9f1c3bf2e17eae4bb2d6d8caca21170cc203ea9d gdal-1.3.1.ebuild 4433
+EBUILD gdal-1.3.2.ebuild 4759 RMD160 909631ad222798dd465aa7d1a533e60c1701d3f9 SHA1 b9f4f513a132f954188cadd5f319c29b187023d8 SHA256 beed1e3a92a11f0034d54c7d612a47ad66efbb33421ccca9e380453c38765a19 size 4759
+MD5 cc55bc12f0f2544f9a5c1b77f2ffcb2d gdal-1.3.2.ebuild 4759
+RMD160 909631ad222798dd465aa7d1a533e60c1701d3f9 gdal-1.3.2.ebuild 4759
+SHA256 beed1e3a92a11f0034d54c7d612a47ad66efbb33421ccca9e380453c38765a19 gdal-1.3.2.ebuild 4759
+MISC ChangeLog 4799 RMD160 788d785b0591b09695b588e0b5ff674f6580f8dc SHA1 bba15e0ddcd7fecce101f091cf320e6d9adeac93 SHA256 503507e1ced0e38dd526dfc6985338796fbcc0181d951684cd17aba96f5080d8 size 4799
+MD5 e253f5cf17a7798d02b23b5c5ff1cedc ChangeLog 4799
+RMD160 788d785b0591b09695b588e0b5ff674f6580f8dc ChangeLog 4799
+SHA256 503507e1ced0e38dd526dfc6985338796fbcc0181d951684cd17aba96f5080d8 ChangeLog 4799
+MISC metadata.xml 481 RMD160 bf21d73428ffeb72d05c41556b846820666e6192 SHA1 84bd0e3bd2b57b0e3985a2fe1afbdec9178bce17 SHA256 6e64541abb8c79774ac99aeedeadfabb8771c9ad3da281e967629fbc83300fa4 size 481
MD5 dc56f5d75556cdbcd7c4024288ef8fcb metadata.xml 481
+RMD160 bf21d73428ffeb72d05c41556b846820666e6192 metadata.xml 481
+SHA256 6e64541abb8c79774ac99aeedeadfabb8771c9ad3da281e967629fbc83300fa4 metadata.xml 481
+MD5 17d603b4bfd729d32378e6492d413af9 files/digest-gdal-1.2.6-r4 235
+RMD160 e725c1a5c166179753a2b72967a771868045e229 files/digest-gdal-1.2.6-r4 235
+SHA256 664d5b3bee2e028bdd35988bc4bd2779dd8a7546b71e41cd34f2cf177a865eb6 files/digest-gdal-1.2.6-r4 235
+MD5 79afc55e30e361d91420ef1131329989 files/digest-gdal-1.3.0-r1 235
+RMD160 bbe93557be7c7b8920ef02156e0eb27839161668 files/digest-gdal-1.3.0-r1 235
+SHA256 c708d39119a85fecce52385da9fb8454d4b7c8d24963440abb9a44d903a06e00 files/digest-gdal-1.3.0-r1 235
+MD5 6e10f0b3bf2640b078ce2d38db68e77b files/digest-gdal-1.3.1 235
+RMD160 0576f091dc2fe7aa4d6e63b34544e05ed8c4a6d0 files/digest-gdal-1.3.1 235
+SHA256 a734d65225fe198341b408460b9b7b8be14296ba31070619486a0c83f6095596 files/digest-gdal-1.3.1 235
+MD5 eff5bde48b9efae3ae40982cb722008c files/digest-gdal-1.3.2 235
+RMD160 31f4e2ebbed5331e26f59bd812df2a0592d5a9ee files/digest-gdal-1.3.2 235
+SHA256 33b0611e0b879c18f363b9356c1700ba4d1aa9d0ab22d31c642825a636c87b98 files/digest-gdal-1.3.2 235
diff --git a/sci-libs/gdal/files/digest-gdal-1.2.6-r4 b/sci-libs/gdal/files/digest-gdal-1.2.6-r4
index 9cfc52edf488..68e7cdb18303 100644
--- a/sci-libs/gdal/files/digest-gdal-1.2.6-r4
+++ b/sci-libs/gdal/files/digest-gdal-1.2.6-r4
@@ -1 +1,3 @@
MD5 410e581874ce2b94bfa00deb9f2087f6 gdal-1.2.6.tar.gz 4315879
+RMD160 2492520cfa9b724a2a880145f03e44e9804418c8 gdal-1.2.6.tar.gz 4315879
+SHA256 b2c39995839296f396cebaf0410e44aa362851315508258a46c7caee4c37706c gdal-1.2.6.tar.gz 4315879
diff --git a/sci-libs/gdal/files/digest-gdal-1.3.0-r1 b/sci-libs/gdal/files/digest-gdal-1.3.0-r1
index 952482fd1a38..881d81cad8ba 100644
--- a/sci-libs/gdal/files/digest-gdal-1.3.0-r1
+++ b/sci-libs/gdal/files/digest-gdal-1.3.0-r1
@@ -1 +1,3 @@
MD5 fbf4e137c9d0f64f5a70273e555bf777 gdal-1.3.0.tar.gz 6644839
+RMD160 4296a5b6d3255ab8f3d20f4e7e372c35a2ca335c gdal-1.3.0.tar.gz 6644839
+SHA256 48624307e66b7e70fe75d9c4884617bfda75026cbfc20ab23764b28811864bf9 gdal-1.3.0.tar.gz 6644839
diff --git a/sci-libs/gdal/files/digest-gdal-1.3.1 b/sci-libs/gdal/files/digest-gdal-1.3.1
index a81d081883a3..fb5b692a91d7 100644
--- a/sci-libs/gdal/files/digest-gdal-1.3.1
+++ b/sci-libs/gdal/files/digest-gdal-1.3.1
@@ -1 +1,3 @@
MD5 7ff1ceff745ee011793e1f860c02c172 gdal-1.3.1.tar.gz 6856011
+RMD160 5967608e6e1c9f0af8698fcffb58eab4dcdd518d gdal-1.3.1.tar.gz 6856011
+SHA256 4f8f3c462f9174e1dd99f7bfa2abe010aa129e04c08a242a3c63c1a9e5078753 gdal-1.3.1.tar.gz 6856011
diff --git a/sci-libs/gdal/files/digest-gdal-1.3.2 b/sci-libs/gdal/files/digest-gdal-1.3.2
new file mode 100644
index 000000000000..56220c22ba3a
--- /dev/null
+++ b/sci-libs/gdal/files/digest-gdal-1.3.2
@@ -0,0 +1,3 @@
+MD5 67ed02dcea21e93f5e123bb0d322898a gdal-1.3.2.tar.gz 7279872
+RMD160 98c7f33bc3a57364e9ca15bf61d11d45f147b8ad gdal-1.3.2.tar.gz 7279872
+SHA256 00f2b73fea5eff79ae26338928187f956427421bc70ddab0ab63fe5a58112b87 gdal-1.3.2.tar.gz 7279872
diff --git a/sci-libs/gdal/gdal-1.2.6-r4.ebuild b/sci-libs/gdal/gdal-1.2.6-r4.ebuild
index d0b9ac44aca9..95eec289b62f 100644
--- a/sci-libs/gdal/gdal-1.2.6-r4.ebuild
+++ b/sci-libs/gdal/gdal-1.2.6-r4.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.2.6-r4.ebuild,v 1.10 2005/12/23 16:26:50 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.2.6-r4.ebuild,v 1.11 2006/05/22 06:52:51 nerdboy Exp $
inherit eutils libtool gnuconfig distutils toolchain-funcs
@@ -13,7 +13,7 @@ SRC_URI="http://dl.maptools.org/dl/gdal/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
-KEYWORDS="~amd64 ~ppc sparc x86"
+KEYWORDS="amd64 ppc sparc x86"
# need to get these arches updated on several libs first
#KEYWORDS="~alpha ~hppa ~ppc64"
diff --git a/sci-libs/gdal/gdal-1.3.0-r1.ebuild b/sci-libs/gdal/gdal-1.3.0-r1.ebuild
index 832698a0f20c..f9ecfc9259e4 100644
--- a/sci-libs/gdal/gdal-1.3.0-r1.ebuild
+++ b/sci-libs/gdal/gdal-1.3.0-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.0-r1.ebuild,v 1.9 2005/12/23 16:26:50 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.0-r1.ebuild,v 1.10 2006/05/22 06:52:51 nerdboy Exp $
inherit eutils libtool gnuconfig distutils toolchain-funcs
-IUSE="jpeg png geos gif jpeg2k netcdf hdf hdf5 python postgres mysql \
+IUSE="jpeg png geos gif jpeg2k netcdf hdf python postgres mysql \
odbc sqlite ogdi fits gml doc debug"
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
@@ -13,7 +13,7 @@ SRC_URI="http://dl.maptools.org/dl/gdal/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+KEYWORDS="amd64 ppc ~sparc x86"
# need to get these arches updated on several libs first
#KEYWORDS="~alpha ~hppa ~ppc64"
@@ -27,7 +27,6 @@ DEPEND=">=sys-libs/zlib-1.1.4
fits? ( sci-libs/cfitsio )
ogdi? ( sci-libs/ogdi )
gml? ( dev-libs/xerces-c )
- hdf5? ( >=sci-libs/hdf5-1.6.4 )
|| (
postgres? ( dev-db/postgresql )
mysql? ( dev-db/mysql )
@@ -72,7 +71,7 @@ src_compile() {
$(use_with postgres pg) $(use_with fits cfitsio) \
$(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \
$(use_with sqlite) $(use_with jpeg2k jasper) $(use_with odbc) \
- $(use_with gml xerces) $(use_with hdf5)"
+ $(use_with gml xerces)"
# It can't find this
if useq ogdi ; then
diff --git a/sci-libs/gdal/gdal-1.3.1.ebuild b/sci-libs/gdal/gdal-1.3.1.ebuild
index 33755bacda9f..c532ccd44fda 100644
--- a/sci-libs/gdal/gdal-1.3.1.ebuild
+++ b/sci-libs/gdal/gdal-1.3.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.1.ebuild,v 1.8 2005/12/23 16:26:50 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.1.ebuild,v 1.9 2006/05/22 06:52:51 nerdboy Exp $
inherit eutils libtool gnuconfig distutils toolchain-funcs
diff --git a/sci-libs/gdal/gdal-1.3.2.ebuild b/sci-libs/gdal/gdal-1.3.2.ebuild
new file mode 100644
index 000000000000..637d844254f7
--- /dev/null
+++ b/sci-libs/gdal/gdal-1.3.2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.3.2.ebuild,v 1.1 2006/05/22 06:52:51 nerdboy Exp $
+
+inherit eutils libtool gnuconfig distutils toolchain-funcs
+
+IUSE="jpeg png geos gif jpeg2k netcdf hdf hdf5 python ruby postgres \
+ odbc sqlite ogdi fits gml doc debug"
+
+DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
+HOMEPAGE="http://www.remotesensing.org/gdal/index.html"
+SRC_URI="http://dl.maptools.org/dl/gdal/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+# need to get these arches updated on several libs first
+#KEYWORDS="~alpha ~hppa ~ppc64"
+
+#USE_RUBY="1.7"
+#RUBY_ECONF="--with-rubydir=/usr/$(get_libdir)/ruby/site_ruby"
+
+DEPEND=">=sys-libs/zlib-1.1.4
+ >=media-libs/tiff-3.7.0
+ sci-libs/libgeotiff
+ jpeg? ( media-libs/jpeg )
+ gif? ( media-libs/giflib )
+ png? ( media-libs/libpng )
+ python? ( dev-lang/python )
+ ruby? ( >=dev-lang/ruby-1.8.4.20060226
+ >=dev-lang/swig-1.3.28 )
+ fits? ( sci-libs/cfitsio )
+ ogdi? ( sci-libs/ogdi )
+ gml? ( dev-libs/xerces-c )
+ hdf5? ( >=sci-libs/hdf5-1.6.4 )
+ postgres? ( dev-db/postgresql )
+ || (
+ netcdf? ( sci-libs/netcdf )
+ hdf? ( sci-libs/hdf )
+ )
+ jpeg2k? ( media-libs/jasper )
+ odbc? ( dev-db/unixODBC )
+ geos? ( sci-libs/geos )
+ sqlite? ( >=dev-db/sqlite-3 )
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-destdir.patch || die "epatch failed"
+ epatch ${FILESDIR}/${P}-ruby-install.patch || die "epatch failed"
+ if [ $(gcc-major-version) -eq 4 ] ; then
+ epatch ${FILESDIR}/${PN}-gcc4.patch || die "gcc4 patch failed"
+ fi
+ elibtoolize --patch-only
+ gnuconfig_update
+ if useq netcdf && useq hdf; then
+ einfo "Checking is HDF4 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 szip USE flag!"
+ einfo "Emerge HDF with szip USE flag and then emerge GDAL."
+ die "HDF4 not merged with szip use flag"
+ fi
+ fi
+}
+
+src_compile() {
+ distutils_python_version
+
+ pkg_conf="--enable-static=no --enable-shared=yes --with-pic \
+ --with-libgrass=no"
+
+ use_conf="$(use_with jpeg) $(use_with png) $(use_with ruby) \
+ $(use_with postgres pg) $(use_with fits cfitsio) \
+ $(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \
+ $(use_with sqlite) $(use_with jpeg2k jasper) $(use_with odbc) \
+ $(use_with gml xerces) $(use_with hdf5)"
+ # mysql support temporarily disabled $(use_with mysql)
+
+ # It can't find this
+ if useq ogdi ; then
+ use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}"
+ fi
+
+# if useq mysql ; then
+# use_conf="--with-mysql=/usr/bin/mysql_config ${use_conf}"
+# fi
+
+ if useq gif ; then
+ use_conf="--with-gif=internal ${use_conf}"
+ else
+ use_conf="--with-gif=no ${use_conf}"
+ fi
+
+ if useq debug ; then
+ export CFG=debug
+ fi
+
+ if useq python ; then
+ use_conf="--with-pymoddir=/usr/$(get_libdir)/python${PYVER}/site-packages \
+ ${use_conf}"
+ else
+ use_conf="--with-python=no ${use_conf}"
+ fi
+
+ # Fix doc path just in case
+ sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" GDALmake.opt.in
+
+ econf ${pkg_conf} ${use_conf} || die "econf failed"
+ # parallel makes fail on the ogr stuff (C++, what can I say?)
+ emake || die "emake failed"
+ if useq ruby ; then
+ cd ${S}/swig
+ make build || die "make ruby failed"
+ cd ${S}
+ fi
+ if useq doc ; then
+ emake docs || die "emake docs failed"
+ fi
+}
+
+src_install() {
+ # einstall causes sandbox violations on /usr/lib/libgdal.so
+ make DESTDIR=${D} install || die "make install failed"
+ dodoc Doxyfile.man Doxyfile HOWTO-RELEASE NEWS
+ if useq doc ; then
+ dohtml html/* || die "install html failed"
+ docinto ogr
+ dohtml ogr/html/* || die "install ogr html failed"
+ fi
+}
+
+pkg_postinst() {
+ einfo "GDAL is most useful with full graphics support enabled via various"
+ einfo "USE flags: png, jpeg, gif, jpeg2k, etc. Also python, fits, ogdi,"
+ einfo "geos, and support for either netcdf or HDF4 is available, as well as"
+ einfo "grass, and mysql, sqlite, or postgres (grass support requires grass 6"
+ einfo "and the new gdal-grass ebuild). HDF5 support is now included."
+ 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 with USE=szip prior to emerging"
+ einfo "gdal. Detailed API docs require doxygen (man pages are free)."
+ einfo ""
+ einfo "Check available image and data formats after building with"
+ einfo "gdalinfo and ogrinfo (using the --formats switch)."
+}