summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-10-01 18:37:34 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-10-01 18:37:34 -0700
commit91488ed8f5f6870c7423971e9fc2495696c59eb4 (patch)
tree76c765c71b63f026af9335cd636eb758b63b2dc2
parent5c2b01ebcf8e8336f50cee64b09e158167a0f168 (diff)
downloadspack-91488ed8f5f6870c7423971e9fc2495696c59eb4.tar.gz
spack-91488ed8f5f6870c7423971e9fc2495696c59eb4.tar.bz2
spack-91488ed8f5f6870c7423971e9fc2495696c59eb4.tar.xz
spack-91488ed8f5f6870c7423971e9fc2495696c59eb4.zip
New package: py-python-mapnik (#12786)
-rw-r--r--var/spack/repos/builtin/packages/py-python-mapnik/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-mapnik/package.py b/var/spack/repos/builtin/packages/py-python-mapnik/package.py
new file mode 100644
index 0000000000..6d1cf944b0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-python-mapnik/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyPythonMapnik(PythonPackage):
+ """
+ Python bindings for mapnik
+ """
+
+ homepage = "https://github.com/mapnik/python-mapnik"
+ url = "https://github.com/mapnik/python-mapnik/archive/v3.0.16.tar.gz"
+
+ version('3.0.16', sha256='643117752fa09668a1e26a360d13cd137329ae2013eb14ad92ab72fbc479fc70')
+ version('3.0.13', sha256='ced684745e778c0cac0edba89c09c6f9b9f1db18fc12744ed4710a88b78a3389')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('mapnik', type=('build', 'link', 'run'))
+ depends_on('boost +python+thread')
+
+ # Package can't find boost_python without the following
+ def setup_environment(self, spack_env, run_env):
+ # Inform the package that boost python library is of form
+ # 'libboost_python27.so' as opposed to 'libboost_python.so'
+ py_ver = str(self.spec['python'].version.up_to(2).joined)
+ spack_env.set('BOOST_PYTHON_LIB', 'boost_python' + py_ver)