diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-geosciences/mapnik |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-geosciences/mapnik')
-rw-r--r-- | sci-geosciences/mapnik/Manifest | 8 | ||||
-rw-r--r-- | sci-geosciences/mapnik/files/mapnik-2.2.0-configure-only-once.patch | 20 | ||||
-rw-r--r-- | sci-geosciences/mapnik/files/mapnik-2.2.0-dont-run-ldconfig.patch | 11 | ||||
-rw-r--r-- | sci-geosciences/mapnik/files/mapnik-2.2.0-scons.patch | 11 | ||||
-rw-r--r-- | sci-geosciences/mapnik/mapnik-3.0.9.ebuild | 104 | ||||
-rw-r--r-- | sci-geosciences/mapnik/metadata.xml | 18 |
6 files changed, 172 insertions, 0 deletions
diff --git a/sci-geosciences/mapnik/Manifest b/sci-geosciences/mapnik/Manifest new file mode 100644 index 000000000000..9f9ae4037a00 --- /dev/null +++ b/sci-geosciences/mapnik/Manifest @@ -0,0 +1,8 @@ +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-scons.patch 795 SHA256 2ba0ae66aa6556030a34ad53c3fe5395e7afb503a4d6b4bf2749422d20131f35 SHA512 288efab2528af07d0800278743e762e3ca5a040eae2694c09b1108826e5aa29b8a3c150b0be06ee7e5862f961a34ddcc20528c8b4c99bd962797f553017a319f WHIRLPOOL 2307ffdaed337869b6e78a76fd34b44509b3bd83cb3f092088541a1061e3e80c914c4665479eb01efeb9fdd8f16a7fca4749b6a90599253d1d565e8c0acdded5 +DIST mapnik-3.0.9.tar.gz 13434729 SHA256 f0242606096e2c4ca2cd0caac1ff0fd5f8054a38b5f288ba38b0e397b5b311b2 SHA512 ad45ecbb2661e860b7057e0a235542a390ae5790f401ef2c04f1517b6487e83cdb8e307072681847cb72a3abc242e0114bc15d48f504dec1f92df970dd1556e1 WHIRLPOOL 792c69891ab09f38c4061c0c1622ec1d62df86dbec88a6eb6de0a6f7c745bc8dff0bc47c01397d222b48063848fa6c8406166f2c4f1e0a85dbdc94492b151805 +EBUILD mapnik-3.0.9.ebuild 2387 SHA256 59702587ccc636dda0a4f316bae69228ece9f706bdeb8b6480053683f6c6d041 SHA512 64572189d753b330507950f59dc07b7a37234c7b2ed9b2c1043b7dea4af6feff34ed502b0015069dcf799316a5c33679f84778a5bd174217deca79d2c7ea5b5a WHIRLPOOL 7ede4a3f17e2152d0d3789fec2bbf12f5b353edce5333993ef1dff104752aec59dc63acd13d19daa55811e0d2d6702f366bd26f8a9a706fa1d261b816695602a +MISC ChangeLog 4823 SHA256 e2fdeabf74fafe89b76b11e2d952a843c72d8aa74c2ab9687d39299a59a316d1 SHA512 9e779e9c327de0c6a490fd01a823a830599267ecbafe7bd298622cf65653db5086f58cd6e75d0a0104270448f6ff45e5006a64e9072616f32bfe30e9ba41398a WHIRLPOOL 68a38897c37498725631aca0699b6e9e50cc4a8a74a7aa025d30febe2063f5f8cf1b36656b1feda8f13e15c7cf0498328011826fa7028736ba835fc7dc473623 +MISC ChangeLog-2015 9879 SHA256 dafff4c38850c8b3fbb876b3bfbe879e83288c95428a947babd50b7aaf68963a SHA512 10cc6d765dab6f2f8c3c6e3e35075acf2079e09fd41389ada49502a2e9a81fb341149432570b776c04fdae8570e5529ecadcf073158a8ccd34250f8ff696c0b1 WHIRLPOOL 5e44755560add4fd9f0b7055ae81e0a41e831b435d0c4890db574bd0ab2803fc81e37c7153116d03c4b64a673a8cc630973b8985485c1141f2788ae4a5b777dc +MISC metadata.xml 683 SHA256 08f3fda9b8273e64bdee6599cffb324e1240eafd314e5e6bd230f0237f71fe68 SHA512 a60caeed695db6aeeee83083f57269db6d6c7a7e649be8848ef560e9043ba8b710441f166498d6d0bfffd80ab10190865a3b5097fb766b0b92c5480f62aab962 WHIRLPOOL 66b4614529287f4f8d8c7e0858de9889d23ead4cd09d72f5ff0ef17a0637989ec6e7c0a7c7baedee0049a00431fa8b321daa295343f0edef740e8472bf3a269b 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-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-3.0.9.ebuild b/sci-geosciences/mapnik/mapnik-3.0.9.ebuild new file mode 100644 index 000000000000..84314fd48d14 --- /dev/null +++ b/sci-geosciences/mapnik/mapnik-3.0.9.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils scons-utils toolchain-funcs + +DESCRIPTION="A Free Toolkit for developing mapping applications" +HOMEPAGE="http://www.mapnik.org/" +SRC_URI="https://github.com/mapnik/mapnik/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="cairo debug doc gdal postgres sqlite" + +RDEPEND=" + >=dev-libs/boost-1.48[threads] + dev-libs/icu:= + sys-libs/zlib + media-libs/freetype + media-libs/harfbuzz + dev-libs/libxml2 + media-libs/libpng:0= + media-libs/tiff:0= + virtual/jpeg:0= + media-libs/libwebp + sci-libs/proj + media-fonts/dejavu + x11-libs/agg[truetype] + cairo? ( + x11-libs/cairo + dev-cpp/cairomm + ) + postgres? ( >=dev-db/postgresql-8.3:* ) + gdal? ( sci-libs/gdal ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2.2.0-configure-only-once.patch" + "${FILESDIR}/${PN}-2.2.0-dont-run-ldconfig.patch" + "${FILESDIR}/${PN}-2.2.0-scons.patch" +) + +src_prepare() { + default + + # 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 +} + +src_configure() { + local PLUGINS=shape,csv,raster,geojson + use gdal && PLUGINS+=,gdal,ogr + use postgres && PLUGINS+=,postgis + use sqlite && PLUGINS+=,sqlite + + MYSCONS=( + "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" + CAIRO="$(usex cairo 1 0)" + DEBUG="$(usex debug 1 0)" + XML_DEBUG="$(usex debug 1 0)" + DEMO="$(usex doc 1 0)" + SAMPLE_INPUT_PLUGINS="$(usex doc 1 0)" + "CUSTOM_LDFLAGS=${LDFLAGS}" + "CUSTOM_LDFLAGS+=-L${ED}/usr/$(get_libdir)" + ) + escons "${MYSCONS[@]}" configure +} + +src_compile() { + escons "${MYSCONS[@]}" +} + +src_install() { + escons "${MYSCONS[@]}" DESTDIR="${D}" install + + dodoc AUTHORS.md README.md CHANGELOG.md +} + +pkg_postinst() { + elog "" + elog "See the home page or wiki (https://github.com/mapnik/mapnik/wiki) for more info" + elog "or the installed examples for the default mapnik ogcserver config." + elog "" +} diff --git a/sci-geosciences/mapnik/metadata.xml b/sci-geosciences/mapnik/metadata.xml new file mode 100644 index 000000000000..bbbaaa7e4d1d --- /dev/null +++ b/sci-geosciences/mapnik/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-geosciences@gentoo.org</email> + <name>Gentoo Geosciences Project</name> + </maintainer> + <longdescription>Mapnik is a toolkit for developing both web and desktop + mapping applications. The core libraries are written in C++, with + optional Python bindings. + </longdescription> + <use> + <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag> + </use> + <upstream> + <remote-id type="github">downloads/mapnik</remote-id> + </upstream> +</pkgmetadata> |