summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2013-11-18 01:14:57 +0000
committerSteve Arnold <nerdboy@gentoo.org>2013-11-18 01:14:57 +0000
commit0921759d31cbdf95ba82aa370d851f8ca4fbd292 (patch)
tree02f5abee142ce92e9a5751664d6d6ec65901f66d /sci-geosciences
parentVersion bump. (diff)
downloadhistorical-0921759d31cbdf95ba82aa370d851f8ca4fbd292.tar.gz
historical-0921759d31cbdf95ba82aa370d851f8ca4fbd292.tar.bz2
historical-0921759d31cbdf95ba82aa370d851f8ca4fbd292.zip
Adding latest upstream version; tested on x86 and amd64.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/mapnik/ChangeLog11
-rw-r--r--sci-geosciences/mapnik/Manifest18
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch20
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch11
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-python3.patch16
-rw-r--r--sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch11
-rw-r--r--sci-geosciences/mapnik/mapnik-2.2.0.ebuild132
7 files changed, 207 insertions, 12 deletions
diff --git a/sci-geosciences/mapnik/ChangeLog b/sci-geosciences/mapnik/ChangeLog
index a24cd343dc2e..48781a424c9f 100644
--- a/sci-geosciences/mapnik/ChangeLog
+++ b/sci-geosciences/mapnik/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sci-geosciences/mapnik
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.40 2013/02/17 07:31:01 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.41 2013/11/18 01:14:50 nerdboy Exp $
+
+*mapnik-2.2.0 (18 Nov 2013)
+
+ 18 Nov 2013; Steve Arnold <nerdboy@gentoo.org> +mapnik-2.2.0.ebuild,
+ +files/mapnik-2.2.0-configure-only-once.patch,
+ +files/mapnik-2.2.0-dont-run-ldconfig.patch,
+ +files/mapnik-2.2.0-python3.patch, +files/mapnik-2.2.0-scons.patch:
+ Adding version 2.2.0 to keep Pinkbyte happy (among other things).
+ Tested on x86 and amd64 (full ~arch).
17 Feb 2013; Sven Wegener <swegener@gentoo.org>
files/mapnik-2.1.0-dont-run-ldconfig.patch:
diff --git a/sci-geosciences/mapnik/Manifest b/sci-geosciences/mapnik/Manifest
index aecad179ee05..c4db9be42e0b 100644
--- a/sci-geosciences/mapnik/Manifest
+++ b/sci-geosciences/mapnik/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX mapnik-2.0.1-boost_build.patch 851 SHA256 d09128c0d3da1d9d17d6b01fcff8ceb4d14532357ccefbb406b304274c8838d9 SHA512 be2cd6d7227d8c8fabca2bd3d5cc74f1da6503fab712fbbbb9c1eb0fca41ef559d4911cf36098f5a68bd9fccae244ed1071d170c06abea76dea6e467f9058b32 WHIRLPOOL 0806e25de2f63e6643a8a2d5d2bb4170fa0eaf83be4e32b88a8fd4f2a6cf994b77024fe3580bf06dedb1dfb380e0e5621ce9dbb669d0efddff835a5a3babe0a9
AUX mapnik-2.0.1-configure-only-once.patch 878 SHA256 b0119ba024c5a9df1a083d95a2f56a1e89db65a74b8dbf8100911c6e53788ec5 SHA512 09136d7cc806e80ee1cef5bf2a406e7f4ad6a41b7d2427e6da58facef5323af97be1ec40f73dc99cdc4e15c0b13b29eb7b6df61a3d59131e1ab9e5d2921d0b63 WHIRLPOOL f3247118477ea690bee58df38043e33dff1bca818959d1cd0cb423fc2df5635b560871c60a0d266dd45f0de934b2e4b30f47433845aff84318bb419b071abeb8
AUX mapnik-2.0.1-destdir.patch 1034 SHA256 4c6724b750c6c8094235e3d0094f592438db294e13009d116085cc00aeff8d25 SHA512 f8e0804d54c311df245042ebcd87a09a294b94aefdfd511c84c856102b6123199e0fba1d47e37099a01b1f58c0cf631f4f4d7c7272fe0d4521e3b008a4846a1d WHIRLPOOL 5d6989fb1498027f557b48b0aa347f1e759d1b261e6cc6ed365f548658fc4ea3934177b9de334ca5223e070649de25aff8d504983e73234ae50a3769f995120e
@@ -9,18 +6,17 @@ AUX mapnik-2.1.0-configure-only-once.patch 712 SHA256 826e2bd02639f07b728af4007e
AUX mapnik-2.1.0-destdir.patch 817 SHA256 7d9032b98dce16cbe11918fc06c7a8d2af52a3a8b453910260b6c00d69a32579 SHA512 4082677e52228d29eb22e3f5ae63fe948027ec8080daac0b41e05558a2248d9b04c74a7809f8e5da1560729ca261328197e3dacdbc03cbdefd35433ccf50a7d5 WHIRLPOOL b7bdd0afd75ee45ca4daed48a6ee228db7657ff8c1c015ce21b7d01d1015d768dfc0f79f3b752edc48ba76679c241b2963d1e2e7768aa9a9028fc19c0b71aa5b
AUX mapnik-2.1.0-dont-run-ldconfig.patch 243 SHA256 ed5e952a3e66190ce2a4cbe4e549ee0b9f315b4a2c49050bce732191d09b308a SHA512 3ad7467bdcd2524d08d516cf65001d2fd370e88001b5acf2b9d18e945b644f798e4da75b0b40393d4fe69c0c360800b88d93a71e4a00f3a8b6b61021a2e9bf4a WHIRLPOOL cf47f245241bc03ccf9c80d445694e06860749bbef3ea1c231b8bbe9ccf1d7277921da12056947dc3a28d727dd868e12ecb64b711b0a7c5f88d1e84fa0e2bb7e
AUX mapnik-2.1.0-scons.patch 1289 SHA256 384e4f2144157ec077b0dbdfeaf826ee3d80d65df0574731ec00cb61873859f0 SHA512 1a806c6cf6ea8a92fa26e54dbf13840cbbe2eac40c3e7f598b1055dca510ed9718d738dc433d586cde0fc91f763b2bf3e1ec8eb8a6c302a608753bd914e009ab WHIRLPOOL 396d8cf8c794d2788d20928c587c24da0817bbb00fa0f767aaa39c73bf3434af06b6b4835ec65db796c69bf09c221ff7ef433585f62ec3ee60fefaa5869d9130
+AUX mapnik-2.2.0-configure-only-once.patch 737 SHA256 9fc7263d0c786c2934f389c6feaa69761cfcb3d0d4f607600aef0b654391a2c3 SHA512 30f044c8501536599d625646dc8930d3cdcd14fc1ef6c3ee64c8226fe03a6d0f3cbc5d175f6aff7bc7dc0575206dcd23288828cb6edad264aed3b2b4d9e7874b WHIRLPOOL 5a9a58d6cd8629308ebfccd9d59078605101498e16edb80fd69727fe162578a0d05bdfc79c3f25c69fef6512b740449f14e07da8fcb8e4ffb3b32c418fb4464d
+AUX mapnik-2.2.0-dont-run-ldconfig.patch 243 SHA256 2bc4356b28f99165d77644c6e911cf4d879dd60971c8c1e772ad6efd3d76432a SHA512 dd42f09654de246ff6be4cf68fc2b08bb5ec2ae6515e722e89337081ff4b89c8b269fa70d3393f3c6156a539d7a9b1d1f516e9d6ff7f35639669fcfcd20a26ff WHIRLPOOL f5def668aeafa1254fb9066cc1124820af3f91eae93513130d5ce2499b38f305ab55be46c119b77abc0127ebe7a76fa733ddbe607c48a63e760a719d96751846
+AUX mapnik-2.2.0-python3.patch 662 SHA256 eeeee03b390e7b3ed6304f6fb2595151f8b40889fcf879bc8c305757bf8779bf SHA512 53a9e5dab1d7612c6b26de54d9d1a7d5196d705a3b78fae4192fd4cf752e1175002848fc5e93c6facb1b565a9e7fb6a57acf600c96dea1a1b41346f948072d28 WHIRLPOOL 79c69dae3ea043165db6b002bf0d7d3938b0ebd7b12d70977243976c5980fe29021f46cd531e2cc05e7ff61e8e51cb616c556546b659c2e3829db8dcb9c26c23
+AUX mapnik-2.2.0-scons.patch 795 SHA256 2ba0ae66aa6556030a34ad53c3fe5395e7afb503a4d6b4bf2749422d20131f35 SHA512 288efab2528af07d0800278743e762e3ca5a040eae2694c09b1108826e5aa29b8a3c150b0be06ee7e5862f961a34ddcc20528c8b4c99bd962797f553017a319f WHIRLPOOL 2307ffdaed337869b6e78a76fd34b44509b3bd83cb3f092088541a1061e3e80c914c4665479eb01efeb9fdd8f16a7fca4749b6a90599253d1d565e8c0acdded5
DIST mapnik-v2.0.1.tar.bz2 12018783 SHA256 fe3da0b1adbb48f55ebd01ab0e95e5183f512154249f1d407b7e59aa9176ba8c SHA512 405028b44f39d883d5d235e9f560748210065890df20ef4c581711f2d2373b5b403104f7bc3f9ece2133ca1ca307c54034fe4e37f07d1f7a4ed12fb0834266c6 WHIRLPOOL 22faf112b1cb3b9cd3343ba4881b0b3dd09e810a5d9f67793a241461dd8035aec37eb835c948e6b96e86998d6b2760e39223715490bcbee6bf5d323b19f2eb18
DIST mapnik-v2.0.2.tar.bz2 12010042 SHA256 40e55c85f5148da22379830f7aaf2da4471f38c04590e06ded04b3fd4d693c5f SHA512 2111b47cc1b73facfa6acd58e25da74f2f4f1faa74fd8a73d69a843611859d0158995c1fc1e587a10287069f275f058881fe0f0e5efcc2230261fd5768172511 WHIRLPOOL 623350f7d87f4368802dbfbed8c91c56b4dd11f94ac467ecf06e0cf73666d29e59128d35930942411843910d7d2302819332a934317b30a69568ce0d2d8309b7
DIST mapnik-v2.1.0.tar.bz2 17441565 SHA256 d5fcbaaea00359613b707eacaaa2109a0b5696e2baa35c02e4436e8a823b7160 SHA512 3b922e94d229cd8b0091953bd48b18b903e367a1f374d2c821560b6a14f115ab054ceac0749668f18ca40238116bd6617d571403bf860c824b3f260bee054d9e WHIRLPOOL 675082091871db5620f0a75d0a3f35d247150d558dd9546c6100cc6b9d5efc1230868c19707c23d5d5e2c08f9fdeccc33688f229ec96ffecb0e7afa604c3134d
+DIST mapnik-v2.2.0.tar.bz2 23007178 SHA256 9b30de4e58adc6d5aa8478779d0a47fdabe6bf8b166b67a383b35f5aa5d6c1b0 SHA512 6e0bf5027865842a2648ab073b81785dd2c0d8ddb8c75da73caa8aa0c0697e8129ae7e2899f694d44ee1d3de2f207b285abff8e0a0616774564ac6e6b1e774ce WHIRLPOOL a8e50a64b276a92b2b6edaece3928928cf7abfcdd44f6663b7d459652aa95b6959eb769fd6c1958b9f81109470f5112b745792e673514c97a17c7677113d2c68
EBUILD mapnik-2.0.1.ebuild 3116 SHA256 111ed3d5464f1b4cbf5c8b021de52a8d8920dc0e61eee04c3a52135b037a26b2 SHA512 63cd3f9d36ba194d34ad909746f3347064633e31e265e7a57ae2a313ba3a892476c997eadb2f7955d0a9af7a9c4aba73bf92c93891f3964ef44e2c28bac3bb02 WHIRLPOOL c041f339f7b16bfa8f42616a750f33985da5af30d996c7ff97ba4b1b0afc0c3b8b8c844d736247e86920d437ef145bdca5299282c619cdd3fcca60a58916fa02
EBUILD mapnik-2.0.2.ebuild 3122 SHA256 2c7a176c9f79f13546a5d54f0da5baba2ccb87e432ce6cb77bb5c05fd10e3144 SHA512 da9f10d9fb94fd9a662d75601115e3f8ec6c4ae8490ca50cff369ab30414e58d74ad015e73c315a68c5deab856e2758824b7483c867c0d363ee6efc9a7c74c2b WHIRLPOOL c3e23d3fbe6db08171927666ac3b5ec3a33dd94096340d52449284112ced4781898bf63d94e979f1b0edaa23a05ddc43c4ca8317a4aeca70e91436f4f1ee6423
EBUILD mapnik-2.1.0.ebuild 3128 SHA256 b03f8a51895ee3984074fde529aa81df3135cc613325b9c954b59108309f9b60 SHA512 7f1b6db184f5af63fb2b113381ee235c6a1cfe6aac6619cd9d9c73a793930841f3afa2d70e6b21325c9b9dc7b76e026db886aa51b2175b2f89d58f3fd08d54b2 WHIRLPOOL abc5e5163d0f28cf839ca479472b77620056e902610459209e6f66f8d8a278a8376eb1f37f1ba304d62be685843e486015cb1c9920c37c75aa9074895560b85a
-MISC ChangeLog 8632 SHA256 95c1c0977906142817960316ba9f3af715ec3451d04cdf033b89f34aba621a8a SHA512 948732635ef83aeef6a0d270645c011aa34e7846a8b255c9f01722bbb58474a9dca5715cc2855e40b0ec9d568d596827e5f7b181054be0f7c277454481c1bf01 WHIRLPOOL 833f3c7d268b7cb1fd9029e8da44c9d94df033cd6c110465dd362fc04f64cd3875c2a161a66faeb6e5ba1e5988a7b48075595e8354c97bf7f150c02c54724892
+EBUILD mapnik-2.2.0.ebuild 3219 SHA256 1a1c49d16c060e3b7bac24d2d4e93efaa464b62b975ed49ae4187e8792a57b14 SHA512 725bc9d2e265dcd631fb15e6d85b1209edb360fdd6c4f546860e00a02ed0c4c2dbfeb847250f26040cd4d240b50a7c5d1ecce4a30e6b1f84e9ad88bc9b349bb7 WHIRLPOOL 5ba3c3b2af178661886c1ab7859ca957f39b6cae0b3334a38e892dfd93b63135b50dc121af157c8cf58845057127fe77f9aa47c7b27e76024c0606adf4429b4a
+MISC ChangeLog 9006 SHA256 8cddc6bc3e3c17dd98c9069b90b6d3ebb5d1ef809330b6c9127885f735cc9980 SHA512 511675fbfadf2fb39bec2404bfc9a7ddf6095aee3f27f36f0ac61fba2772d9850927b8faa520e364198011f0ba0d9c72377bfe82bee052e1b91a505480062508 WHIRLPOOL 4100f4774a428d092a64399bc5ca012902f1e3ccfe615bcbd26887c789c4bd0eb9c185eddbc0924cc3e40c17253e5a6fb5c3f049be2b0eeef09e874b04b5d7ac
MISC metadata.xml 524 SHA256 afb8e9bc398671cec6d58a825aaa89ada8595afe47271dd8d59b58dec84d063d SHA512 32dc48e690252b170cad2ec4cf46c6c5e8d0db9fb079c2087f7320432897fcb745fab4277210d2b7e4d6bc0725b437afb9ba261d0da6eceb3a900e27e3d51316 WHIRLPOOL d6fcf22148ca7f317590886720625c5e815ae8f4ce173ec19fdf4278ae236d1759fe919d222ec1d815e03cac244a748bf3829559339383d1b21587e995bd2878
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iEYEAREIAAYFAlEghzcACgkQI1lqEGTUzyTHHwCdFcCxESBNvRmIyt7hBDUzBlt4
-/K8An091nXvNabi4tALgsFtVx9x4MPSs
-=HH+X
------END PGP SIGNATURE-----
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch
new file mode 100644
index 000000000000..89541cb85ed7
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch
@@ -0,0 +1,20 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -503,16 +503,7 @@ for opt in pickle_store:
+ #print 'missing opt', opt
+ preconfigured = False
+
+-# if custom arguments are supplied make sure to accept them
+-if opts.args:
+- # since we have custom arguments update environment with all opts to
+- # make sure to absorb the custom ones
+- opts.Update(env)
+- # now since we've got custom arguments we'll disregard any
+- # pickled environment and force another configuration
+- preconfigured = False
+-
+-elif preconfigured:
++if preconfigured:
+ if not HELP_REQUESTED:
+ color_print(4,'Using previous successful configuration...')
+ color_print(4,'Re-configure by running "python scons/scons.py configure".')
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch
new file mode 100644
index 000000000000..c92c0e9a02a7
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch
@@ -0,0 +1,11 @@
+--- a/src/build.py
++++ b/src/build.py
+@@ -38,7 +38,7 @@ def call(cmd, silent=True):
+ print stderr
+
+ def ldconfig(*args,**kwargs):
+- call('ldconfig')
++ pass
+
+ if env['LINKING'] == 'static':
+ lib_env.Append(CXXFLAGS="-fPIC")
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-python3.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-python3.patch
new file mode 100644
index 000000000000..4266f624070d
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-python3.patch
@@ -0,0 +1,16 @@
+diff --git a/bindings/python/mapnik_datasource.cpp b/bindings/python/mapnik_datasource.cpp
+index 07383b3..85e2ff7 100644
+--- a/bindings/python/mapnik_datasource.cpp
++++ b/bindings/python/mapnik_datasource.cpp
+@@ -61,7 +61,11 @@ boost::shared_ptr<mapnik::datasource> create_datasource(dict const& d)
+ PyObject* temp = PyUnicode_AsUTF8String(obj.ptr());
+ if (temp)
+ {
++#if PY_VERSION_HEX >= 0x03000000
++ char* c_str = PyBytes_AsString(temp);
++#else
+ char* c_str = PyString_AsString(temp);
++#endif
+ params[key] = std::string(c_str);
+ Py_DecRef(temp);
+ }
diff --git a/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch b/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch
new file mode 100644
index 000000000000..0ddcd0f9e0dd
--- /dev/null
+++ b/sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch
@@ -0,0 +1,11 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -291,7 +291,7 @@ opts.AddVariables(
+ ('LINK_PRIORITY','Priority list in which to sort library and include paths (default order is internal, other, frameworks, user, then system - see source of `sort_paths` function for more detail)',','.join(DEFAULT_LINK_PRIORITY)),
+
+ # Install Variables
+- ('PREFIX', 'The install path "prefix"', '/usr/local'),
++ ('PREFIX', 'The install path "prefix"', '/usr'),
+ ('LIBDIR_SCHEMA', 'The library sub-directory appended to the "prefix", sometimes lib64 on 64bit linux systems', LIBDIR_SCHEMA_DEFAULT),
+ ('PYTHON_PREFIX','Custom install path "prefix" for python bindings (default of no prefix)',''),
+ ('DESTDIR', 'The root directory to install into. Useful mainly for binary package building', '/'),
diff --git a/sci-geosciences/mapnik/mapnik-2.2.0.ebuild b/sci-geosciences/mapnik/mapnik-2.2.0.ebuild
new file mode 100644
index 000000000000..1075eb8ac7be
--- /dev/null
+++ b/sci-geosciences/mapnik/mapnik-2.2.0.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-2.2.0.ebuild,v 1.1 2013/11/18 01:14:50 nerdboy Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} )
+MY_P="${PN}-v${PV}"
+
+inherit eutils python-single-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="A Free Toolkit for developing mapping applications."
+HOMEPAGE="http://www.mapnik.org/"
+SRC_URI="http://mapnik.s3.amazonaws.com/dist/v${PV}/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="cairo debug doc gdal postgres python sqlite"
+
+RDEPEND="
+ >=dev-libs/boost-1.48[threads,python?]
+ dev-libs/icu
+ sys-libs/zlib
+ media-libs/freetype
+ dev-libs/libxml2
+ media-libs/libpng
+ media-libs/tiff
+ virtual/jpeg
+ media-libs/libwebp
+ sci-libs/proj
+ media-fonts/dejavu
+ x11-libs/agg[truetype]
+ net-misc/curl
+ cairo? (
+ x11-libs/cairo
+ dev-cpp/cairomm
+ python? ( dev-python/pycairo[${PYTHON_USEDEP}] )
+ )
+ postgres? ( >=dev-db/postgresql-base-8.3 )
+ gdal? ( sci-libs/gdal )
+ sqlite? ( dev-db/sqlite:3 )
+ python_single_target_python3_2? ( >=dev-libs/boost-1.53[${PYTHON_USEDEP}] )
+ python_single_target_python3_3? ( >=dev-libs/boost-1.53[${PYTHON_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-configure-only-once.patch \
+ "${FILESDIR}"/${P}-dont-run-ldconfig.patch \
+ "${FILESDIR}"/${P}-scons.patch \
+ "${FILESDIR}"/${P}-python3.patch
+
+ # do not version epidoc data
+ sed -i \
+ -e 's:-`mapnik-config --version`::g' \
+ utils/epydoc_config/build_epydoc.sh || die
+
+ # force user flags, optimization level
+ sed -i -e "s:\-O%s:%s:" \
+ -i -e "s:env\['OPTIMIZATION'\]:'${CXXFLAGS}':" \
+ SConstruct || die
+
+ epatch_user
+}
+
+src_configure() {
+ local PLUGINS=shape,csv,raster,geojson,osm
+ use gdal && PLUGINS+=,gdal,ogr
+ use postgres && PLUGINS+=,postgis
+ use sqlite && PLUGINS+=,sqlite
+ use python && PLUGINS+=,python
+
+ myesconsargs=(
+ "CC=$(tc-getCC)"
+ "CXX=$(tc-getCXX)"
+ "INPUT_PLUGINS=${PLUGINS}"
+ "PREFIX=/usr"
+ "DESTDIR=${D}"
+ "XMLPARSER=libxml2"
+ "LINKING=shared"
+ "RUNTIME_LINK=shared"
+ "PROJ_INCLUDES=/usr/include"
+ "PROJ_LIBS=/usr/$(get_libdir)"
+ "SYSTEM_FONTS=/usr/share/fonts"
+ $(use_scons python BINDINGS all none)
+ $(use python && use_scons python PYTHON $PYTHON)
+ $(use_scons python BOOST_PYTHON_LIB boost_python-$(echo $EPYTHON | sed 's/python//'))
+ $(use_scons cairo CAIRO)
+ $(use_scons debug DEBUG)
+ $(use_scons debug XML_DEBUG)
+ $(use_scons doc DEMO)
+ $(use_scons doc SAMPLE_INPUT_PLUGINS)
+ "CUSTOM_LDFLAGS=${LDFLAGS}"
+ "CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)"
+ )
+
+ escons configure
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons install
+
+ if use python ; then
+ python_optimize
+ fperms 0644 "$(python_get_sitedir)"/${PN}/paths.py
+ dobin utils/stats/mapdef_stats.py
+ fi
+
+ dodoc AUTHORS.md README.md CHANGELOG.md
+}
+
+pkg_postinst() {
+ elog ""
+ elog "See the home page or wiki (http://trac.mapnik.org/) for more info"
+ elog "or the installed examples for the default mapnik ogcserver config."
+ elog ""
+}