summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2014-11-02 17:10:52 +0000
committerRichard Farina <zerochaos@gentoo.org>2014-11-02 17:10:52 +0000
commit2ad83ec7ccc63c25e99913b571ab9bb747b16662 (patch)
treeba594193e24ba224667378544c345099d60751e2 /sci-libs/gdal
parentVersion bump. (diff)
downloadhistorical-2ad83ec7ccc63c25e99913b571ab9bb747b16662.tar.gz
historical-2ad83ec7ccc63c25e99913b571ab9bb747b16662.tar.bz2
historical-2ad83ec7ccc63c25e99913b571ab9bb747b16662.zip
version bump
Package-Manager: portage-2.2.14/cvs/Linux x86_64 Manifest-Sign-Key: 0xDD11F94A
Diffstat (limited to 'sci-libs/gdal')
-rw-r--r--sci-libs/gdal/ChangeLog7
-rw-r--r--sci-libs/gdal/Manifest30
-rw-r--r--sci-libs/gdal/gdal-1.11.1.ebuild343
3 files changed, 365 insertions, 15 deletions
diff --git a/sci-libs/gdal/ChangeLog b/sci-libs/gdal/ChangeLog
index ee747c337766..b5a4f7f19d42 100644
--- a/sci-libs/gdal/ChangeLog
+++ b/sci-libs/gdal/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/gdal
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.149 2014/07/11 19:38:23 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.150 2014/11/02 17:10:47 zerochaos Exp $
+
+*gdal-1.11.1 (02 Nov 2014)
+
+ 02 Nov 2014; Rick Farina <zerochaos@gentoo.org> +gdal-1.11.1.ebuild:
+ version bump
11 Jul 2014; Rick Farina <zerochaos@gentoo.org> gdal-1.10.1.ebuild,
metadata.xml:
diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest
index e1f02b4956be..17172af8fe9c 100644
--- a/sci-libs/gdal/Manifest
+++ b/sci-libs/gdal/Manifest
@@ -8,26 +8,28 @@ AUX gdal-1.8.1-zlib_header_fix.patch 253 SHA256 019d7a858670aa4651b5c887db4f951d
AUX gdal-1.9.1-ruby-makefile.patch 1384 SHA256 0588d23d027a716b6a75364abba7222bc15e7f9b4d3546c85c0aaf2d970a8c37 SHA512 ca163fd30b35d8d04584ae3627bd0733570c66ea1fc8e56161794f280877267ef33d3e52022eef547ae9b1f57d1b54f2ef03cee1bf412ebaa4c16caeab0d4479 WHIRLPOOL b94a07435afa3e51a8b8fd61b3320969e8ca167a3f4bdc6b7e2205ef83df63bbe6637ac926477a8a23da73cebadc06f5aaf9cbfbb24c169e1f88ef53ac3029d5
DIST gdal-1.10.0.tar.gz 10232486 SHA256 1a9ca12bcc3a55f66bcd6654d5ff12eeddb3a26b622dd7c8872febb4f5a97487 SHA512 908639218e4a4fea1c239d5dbd6d22bff30b8b3644183295f19ba11ca11828db9736a63204a629cc8619b8a44f58e8fc2d9eea2125918cf7c214ace5c8de7fb6 WHIRLPOOL a5c91975614fbdf1b35d9587080beafd09badca97604d618209f6cb12b6d99416331d5bb982be3407e6db6ffa3ac22a129a8cb4d207ded7af34be5c279fd62ac
DIST gdal-1.10.1.tar.gz 10241357 SHA256 9984f0314c0bd831eb59fb646c2bc5e13cf1378be4f51499045166cbe62be6ea SHA512 214cdb2ad8d01b615b53a53584afcf38be7180174a358963b32af2027201b1e7030cb36be416b271675499e76e42baf8bc09e3646f3d12b0d778b4d1f1a11820 WHIRLPOOL 96a451442dfeec44f12e44a621908afa783c1b0379233b877495c0c2f0f02f2e81a7fedd72e7273e3a7de76415b5c54b80c48ed82723178805b839f36561ad8d
+DIST gdal-1.11.1.tar.gz 10731242 SHA256 f46b5944a8cabc8516673f231f466131cdfd2cdc6677dbee5d96ec7fc58a3340 SHA512 17214ae17a5199d73477d17cf8680396aee8a28d4333cf55818bdd869548dc6a4d7535d7e05949696db31a7be4a511c5ca73199af3dda48d9a40d5640618e9c3 WHIRLPOOL 1f07ee4acccf58552ddef6b5a306b9dbe832014f6890d353f195ab0d47dfc4e81164b7c8b9cefc9915035d113d2f28818f05e89918728eadb0e80e43e7220b5b
DIST gdal-1.9.2.tar.gz 9495381 SHA256 9f3b9ae968eaa8d06ee5448e5b65e7bfa940e2e345282a29d95275421f36c688 SHA512 d93cd5fb16a3728a1f545bc6ceeb61bf41e011619b9290ed51eb5fc2d99e3c0f5733bfc6b3444ad2991e462c87c1088247e3fbb92d880701d48790125647b423 WHIRLPOOL 87f31c12ac5c4e18b4a7b9c416144b32c6d862ddba7688d5317582c797f8a637e37192cbb74406b6a71a672a4c53d3c71505ba024405911008e7b863881c9b8c
EBUILD gdal-1.10.0-r1.ebuild 7495 SHA256 4fc74c2455bd48a22ad8850862ff1788da6659e68c982914e4e28c1d5508a6e4 SHA512 2c34395ad26ac47778b95e221383c8787944b94e68dc37aadaf27969cecea6f67476bdbe131a84984bc21cd49f64df046d49198c7e6c9345f51519d1eb810acd WHIRLPOOL 97068cba8ff62ffef6ca3fed0dae90e932f89075c263bf880fd8aa9a24b75a2c69c9622ed7c94a17a2bd32bbc6f359549340e1fb2d1621e275bc149aae0e244c
EBUILD gdal-1.10.1.ebuild 8651 SHA256 f23ac2c05c5f307f351d1cac9f7991ebacc2d8f462e2fac21bdfa0193f00e461 SHA512 064c1c3ecf8b48428017a0414a08041c5c67a3d581a49d4b11cb419bd0f3ef7c0f77bdf64929908e77c061642c93c071e435b06108f3e4281238cd2a4bb840e6 WHIRLPOOL 8e2f2b9edc6325c9efd5cffcc6bf4807c302a2dd68760d7eea8102602e22e34ec49d16e8c25ec6f7902330d1ced9d4809beb2309fcbb676e29a914525f7f77e0
+EBUILD gdal-1.11.1.ebuild 8671 SHA256 3502cbed6d9ec1177bcabdc0e0537284fe04d653cd69c901f9f811f7f38e5a82 SHA512 92ea4e17e382d62ac2c14e109ac8e83eed50f20f9fb54d368598064d73b64df11e1f97814e76fa48bf8cd37d9ba57c96f8ecbfb62df109b0a6e4204ec3837558 WHIRLPOOL 2941d53cc8b20810c0f30313b4be722fdbf10234cf1d106b9f50cfd45819d6da54bbbe53396945f2836b580e1cab4d10208d0a8e48a28ce1c2542ed9023419e9
EBUILD gdal-1.9.2.ebuild 7478 SHA256 96926f5d7599a32efc3e3339ae5e94c439945547172296ba400de5ed1c22d36c SHA512 9e27f883e9f2f459eacb190ffd2d6522924a6deb0796150889dd8d1f23a4665862af2160f7d2f4b743889987dd9363a34d106f917e01b5e527b654ee0b4ff0f3 WHIRLPOOL 09af9140bafd150089851ada9f7b236f588d5603f260848d07720c1f71a4be93f9806cb25271afb2ec1ee30db1ae5a9531d21c1d139c861076ac1f9ce4d863d6
-MISC ChangeLog 27945 SHA256 41aeba230e39da08cf27b4413262aec12dbdd9c7cdd2e01034ab153489be0b93 SHA512 1a97c690cd85d72e0aa0c84e02a317da7d454300230d67fad53c43ee154b0257210696621f644721220639f39ba56481074f56fef48eabfe6e1cf849a5d212b9 WHIRLPOOL 886f94c7fbdcd7b34ef4bcecf9fdb0c7efd2756541f4ed37075212a448bc6b888aab3488677be8fb14d05bc4d60ac1993751037aeec9bc0cc1987677fa3d91f4
+MISC ChangeLog 28060 SHA256 22ec3e1ed61236f4672efa8c12d8539d2e61b04a7939afb0b1b6b401ae6b6173 SHA512 9c6a75d954df5c2eb02030b9405c69c84f205ff86733f5eaa2a1e70b4bf1fc59b4144270023821c958128f249892cb62ccc031cb581a8a923bebeb6038dfcac8 WHIRLPOOL 8a3f676b66851e4fc81c5b9a0b37d2828891822df92098a888423cf55c6c9b957b52c382be158bf9b02d681bcc16fbe6985b1b133a9acd08310bd3a78d5871db
MISC metadata.xml 1462 SHA256 b1c509c051fbe515a08cd9e784dd2a99a57e16fc027fc2436c6c5c3591fb9380 SHA512 e208313b5703f6ea90a2f1ae0787e35969bb9f113948cc4ddc817c8c59bde6dcbb9b59ee35bd95bbe52847e51b9cdf2a4fed3867ac0599e8a2aa3cec954f0376 WHIRLPOOL a324ef35ade6eaa340545354bedda0ab48427fd9eb51b892361b447fcef331f07a591fdd2588e4fc4b020308104efa17b2f7d4c80a9e789a1d1a7f274f786a79
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCgAGBQJTwD4RAAoJEKXdFCfdEflKvJoP/j2aA1t9GrdJDuW/rixs3qJG
-Tuf38W7RJ689xzuUyZZZzQ9bmUFDeQTNyTJ4mf1V3e4oiI5+QvCqbomOzTkG3D49
-OMjU1+eeAcrYtFDh3puJUicancYXYRCEP32ZqRy5fnKhgWZ2ceq9+U6ngKoLYypg
-AgrGaODUNXP6ABfbgI8NTeFxQQ3JQqQubCZxgsCF95bzj7oQW7zDefbkL/ddVSdl
-805VQkcARPGlTCIvl4dKTGDrQ10Y3QcC6iHwzqg7mZCKxYWeoz8Sdtsee/OTjw15
-MP0SSoOk/D3riy30ia1iZ97MfsPd+a/xqchvbb8cCi9dbygipTmAaahvyXjoMYf4
-obuQL1lJbxeT8Fd129j5HDU2b8Ka5gZphAVwJHljWSmvlg/8uq7d6P/izRa4hFZs
-yJE2K/owfUlJElqAX7SEQHguk0JoPMX4SE7hDAhG1HkA9GDBCD3AsDuVa/x/u/oD
-O3/5xSXWWtw+GfbBuX+sdOtlavlzK9/XCNUrNcrLucSl2XQcwTiWwpC0qeE7uJcu
-8rwhrMkAethvQ4GwG0cvoZ70c5s9aq6xpiIz4zkFoxy4y/c/IhLmTcpAo+MAYNj4
-IjuJXJDa7pcx47cdXUCsAEfKmtU6L9OM/2GafZhSe32Y62xTRtGgM+K4JnCw6HS0
-OJKjPy3MOIfJeU5xowcP
-=ZMr5
+iQIcBAEBCgAGBQJUVmY7AAoJEKXdFCfdEflK2+sQAJF/dtFPaXvHXD+TP+esMLOP
+jJwPLc2Nyu6gCspZDKb1EaoTubEayY4SydAW0oKp2Pj46qNDS7Br6iTENHcNmG2q
+nNKYYw0c8nkfFZcJkR7TAm1CNG2314YYrVXPIErKMXWtPhcUFG2X4CaXTtl7PJuV
+X7ug9GyHGTnvxzdWvHhhlrXZcJep93/ifksOATZDWEQcEK2Poc4D2GUzK1GlOZ/z
+GfA6Y8dXVey3f4jum9yElGL0P8oNO7/Mi8mmGPFc/DepNJh8hu5tZ7uBTWEOUwq1
+969ThPEb3k8VLqiKzUYjvRc6gtvS/ru4SSJnDK4+rEodPY2Ml0o2tZFLTZK/TS+u
+iNrj94zKud8sihkUskt7AncE1oYLYIJ3lH803GZdSkzZ+S7hwZjhd43QqnDGOCFS
+pWfLyTcWpWxYWVJFmkV1LPoAChAXNWp9pbRpXYhFB3sLSOSWwLxB1Jr+GGEOmntx
+a6Cbb6YuLh7cxNL/V0GqTZgl9GItJOFYGuMu+t217MNXlaDQHVjkbOeeH1tVz8ET
+Tz6iCO5KjaaBMdxvcg66f0L1xJpzr2boPa+ikzdbiRyO1PCRH5tsobg60yfthCBt
+Rz9JkvOwMwoovvqv6aWq3DNVWPi7EtRLvngMRgasi4lAyoKuEQ834+kbg4wGrojr
+H4LeWnv6fnRL8r955F5/
+=iyjf
-----END PGP SIGNATURE-----
diff --git a/sci-libs/gdal/gdal-1.11.1.ebuild b/sci-libs/gdal/gdal-1.11.1.ebuild
new file mode 100644
index 000000000000..4f2d6c4a42b3
--- /dev/null
+++ b/sci-libs/gdal/gdal-1.11.1.ebuild
@@ -0,0 +1,343 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1.ebuild,v 1.1 2014/11/02 17:10:47 zerochaos Exp $
+
+EAPI=5
+
+WANT_AUTOCONF="2.5"
+
+GENTOO_DEPEND_ON_PERL="no"
+PYTHON_COMPAT=( python2_{5..7} python3_{1..3} )
+DISTUTILS_OPTIONAL=1
+
+inherit autotools eutils libtool perl-module distutils-r1 python-r1 toolchain-funcs java-pkg-opt-2
+
+DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
+HOMEPAGE="http://www.gdal.org/"
+SRC_URI="http://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls"
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/json-c
+ dev-libs/libpcre
+ dev-libs/libxml2
+ media-libs/tiff
+ sci-libs/libgeotiff
+ sys-libs/zlib[minizip(+)]
+ armadillo? ( sci-libs/armadillo[lapack] )
+ curl? ( net-misc/curl )
+ ecwj2k? ( sci-libs/libecwj2 )
+ fits? ( sci-libs/cfitsio )
+ geos? ( >=sci-libs/geos-2.2.1 )
+ gif? ( media-libs/giflib )
+ gml? ( >=dev-libs/xerces-c-3 )
+ hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
+ java? ( >=virtual/jre-1.6 )
+ jpeg? ( virtual/jpeg )
+ jpeg2k? ( media-libs/jasper )
+ mysql? ( virtual/mysql )
+ netcdf? ( sci-libs/netcdf )
+ odbc? ( dev-db/unixODBC )
+ ogdi? ( sci-libs/ogdi )
+ opencl? ( virtual/opencl )
+ pdf? ( >=app-text/poppler-0.24.3:= )
+ perl? ( dev-lang/perl:= )
+ png? ( media-libs/libpng )
+ postgres? ( >=dev-db/postgresql-base-8.4 )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )
+ ruby? ( dev-lang/ruby:1.9 )
+ sqlite? ( dev-db/sqlite:3 )
+ spatialite? ( dev-db/spatialite )
+ xls? ( dev-libs/freexl )
+"
+
+SWIG_DEP=">=dev-lang/swig-2.0.2"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ java? ( >=virtual/jdk-1.6 )
+ perl? ( ${SWIG_DEP} )
+ python? ( ${SWIG_DEP} )
+ ruby? ( ${SWIG_DEP} )"
+
+AT_M4DIR="${S}/m4"
+MAKEOPTS+=" -j1"
+
+REQUIRED_USE="
+ ecwj2k? ( threads )
+ spatialite? ( sqlite )
+ mdb? ( java )
+"
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ java-pkg-opt-2_src_prepare
+
+ # fix datadir and docdir placement
+ sed -i \
+ -e "s:@datadir@:@datadir@/gdal:" \
+ -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
+ "${S}"/GDALmake.opt.in || die
+
+ # the second sed expression should fix bug 371075
+ sed -i \
+ -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
+ -e "s:--prefix=\$(DESTDIR):--prefix=:" \
+ "${S}"/swig/python/GNUmakefile || die
+
+ epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch
+
+ # -soname is only accepted by GNU ld/ELF
+ [[ ${CHOST} == *-darwin* ]] \
+ && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
+ || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch
+
+ # Fix spatialite/sqlite include issue
+ sed -i \
+ -e 's:spatialite/sqlite3.h:sqlite3.h:g' \
+ ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die
+
+ # Fix freexl configure check
+ sed -i \
+ -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \
+ configure.in || die
+
+ sed \
+ -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
+ -i configure.in || die
+
+ sed \
+ -e 's:^ar:$(AR):g' \
+ -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
+
+ tc-export AR RANLIB
+
+ eautoreconf
+
+ prepare_python() {
+ mkdir -p "${BUILD_DIR}" || die
+ find "${S}" -type d -maxdepth 1 -exec ln -s {} "${BUILD_DIR}"/ \; ||die
+ find "${S}" -type f -maxdepth 1 -exec cp --target="${BUILD_DIR}"/ {} + ||die
+# mkdir -p "${BUILD_DIR}"/swig/python || die
+# mkdir -p "${BUILD_DIR}"/apps || die
+# cp -dpR --target="${BUILD_DIR}"/swig/ \
+# "${S}"/swig/{python,SWIGmake.base,GNUmakefile} || die
+# ln -s "${S}"/swig/include "${BUILD_DIR}"/swig/ || die
+# ln -s "${S}"/apps/gdal-config "${BUILD_DIR}"/apps/ || die
+# ln -s "${S}"/port "${BUILD_DIR}"/ || die
+ }
+ if use python; then
+ python_foreach_impl prepare_python
+ fi
+}
+
+gdal_src_configure() {
+ local myopts=""
+
+ if use ruby; then
+ RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
+ echo "Ruby module dir is: $RUBY_MOD_DIR"
+ fi
+
+ if use java; then
+ myopts+="
+ --with-java=$(java-config --jdk-home 2>/dev/null)
+ $(use_with mdb)"
+ else
+ myopts+=" --without-java --without-mdb"
+ use mdb && ewarn "mdb requires java use enabled. disabling"
+ fi
+
+ if use sqlite; then
+ myopts+=" LIBS=-lsqlite3"
+ fi
+
+ # pcidsk is internal, because there is no such library yet released
+ # also that thing is developed by the gdal people
+ # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
+ # bsb - legal issues
+ # oracle - disabled, i dont have and can't test
+ # ingres - same story as oracle oci
+ # podofo - we use poppler instead they are exclusive for each other
+ # tiff is a hard dep
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ --enable-shared \
+ --with-expat \
+ --with-geotiff \
+ --with-grib \
+ --with-libtiff \
+ --with-libz="${EPREFIX}/usr/" \
+ --with-ogr \
+ --without-bsb \
+ --without-dods-root \
+ --without-dwgdirect \
+ --without-epsilon \
+ --without-fme \
+ --without-grass \
+ --without-hdf4 \
+ --without-idb \
+ --without-ingres \
+ --without-jp2mrsid \
+ --without-kakadu \
+ --without-libtool \
+ --without-mrsid \
+ --without-msg \
+ --without-oci \
+ --without-pcraster \
+ --without-podofo \
+ --without-sde \
+ $(use_enable debug) \
+ $(use_with armadillo) \
+ $(use_with aux_xml pam) \
+ $(use_with curl) \
+ $(use_with ecwj2k ecw) \
+ $(use_with fits cfitsio) \
+ $(use_with geos) \
+ $(use_with gif) \
+ $(use_with gml xerces) \
+ $(use_with hdf5) \
+ $(use_with jpeg pcidsk) \
+ $(use_with jpeg) \
+ $(use_with jpeg2k jasper) \
+ $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \
+ $(use_with netcdf) \
+ $(use_with odbc) \
+ $(use_with ogdi ogdi "${EPREFIX}"/usr) \
+ $(use_with opencl) \
+ $(use_with pdf poppler) \
+ $(use_with perl) \
+ $(use_with png) \
+ $(use_with postgres pg) \
+ $(use_with python) \
+ $(use_with ruby) \
+ $(use_with spatialite) \
+ $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
+ $(use_with threads) \
+ $(use_with xls freexl) \
+ ${myopts}
+
+ # mysql-config puts this in (and boy is it a PITA to get it out)
+ if use mysql; then
+ sed -i \
+ -e "s: -rdynamic : :" \
+ GDALmake.opt || die "sed LIBS failed"
+ fi
+
+ if [[ -n $use_python ]]; then
+ # updated for newer swig (must specify the path to input files)
+ sed -i \
+ -e "s: gdal_array.i: ../include/gdal_array.i:" \
+ -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
+ swig/python/GNUmakefile || die "sed python makefile failed"
+ sed -i \
+ -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \
+ swig/python/setup.cfg || die "sed python setup.cfg failed"
+# -e "s:gdal_config=.*$:gdal_config=../../../apps/gdal-config:g" \
+ fi
+}
+
+src_configure() {
+ local use_python=""
+
+ gdal_src_configure
+
+ if use python; then
+ use_python="yes"
+ python_foreach_impl run_in_build_dir gdal_src_configure
+ fi
+}
+
+src_compile() {
+ local i
+ for i in perl ruby; do
+ if use $i; then
+ rm "${S}"/swig/$i/*_wrap.cpp
+ emake -C "${S}"/swig/$i generate
+ fi
+ done
+
+ default
+
+ if use perl ; then
+ pushd "${S}"/swig/perl > /dev/null
+ perl-module_src_prep
+ perl-module_src_compile
+ popd > /dev/null
+ fi
+
+ use doc && emake docs
+
+ compile_python() {
+ rm -f swig/python/*_wrap.cpp
+ emake -C swig/python generate
+ emake -C swig/python build
+ }
+ if use python; then
+ python_foreach_impl run_in_build_dir compile_python
+ fi
+}
+
+src_install() {
+ if use perl ; then
+ pushd "${S}"/swig/perl > /dev/null
+ perl-module_src_install
+ popd > /dev/null
+ sed -i \
+ -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
+ GDALmake.opt || die
+ fi
+
+ default
+
+ if use ruby ; then
+ # weird reinstall collision; needs manual intervention...
+ pushd "${S}"/swig/ruby > /dev/null
+ rm -rf "${D}"${RUBY_MOD_DIR}/gdal
+ exeinto ${RUBY_MOD_DIR}/gdal
+ doexe *.so || die "doins ruby modules failed"
+ popd > /dev/null
+ fi
+
+ use perl && fixlocalpod
+
+ dodoc Doxyfile HOWTO-RELEASE NEWS
+
+ if use doc ; then
+ dohtml html/*
+ docinto ogr
+ dohtml ogr/html/*
+ fi
+
+ install_python() {
+ emake -C swig/python DESTDIR="${D}" install
+ }
+ if use python; then
+ python_foreach_impl run_in_build_dir install_python
+ newdoc swig/python/README.txt README-python.txt
+ insinto /usr/share/${PN}/samples
+ doins swig/python/samples/*
+ fi
+
+ pushd man/man1 > /dev/null
+ for i in * ; do
+ newman ${i} ${i}
+ done
+ popd > /dev/null
+}
+
+pkg_postinst() {
+ elog "Check available image and data formats after building with"
+ elog "gdalinfo and ogrinfo (using the --formats switch)."
+}