diff options
author | Sinan <sbulutw@gmail.com> | 2019-08-09 08:18:26 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-08-09 10:18:26 -0500 |
commit | a999092a931729d668d81b3cd12f60640b61ac6b (patch) | |
tree | 576f08140403b03b710102790442a7a46ecc8a7c | |
parent | 7b47178a5324d84b04f119b8960cad0bc6f86e58 (diff) | |
download | spack-a999092a931729d668d81b3cd12f60640b61ac6b.tar.gz spack-a999092a931729d668d81b3cd12f60640b61ac6b.tar.bz2 spack-a999092a931729d668d81b3cd12f60640b61ac6b.tar.xz spack-a999092a931729d668d81b3cd12f60640b61ac6b.zip |
newpackage/tippecanoe (#12319)
* newpackage/tippecanoe
* make flake8 happy
* add "r" for raw text
-rw-r--r-- | var/spack/repos/builtin/packages/tippecanoe/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tippecanoe/package.py b/var/spack/repos/builtin/packages/tippecanoe/package.py new file mode 100644 index 0000000000..c9f2dc6ad8 --- /dev/null +++ b/var/spack/repos/builtin/packages/tippecanoe/package.py @@ -0,0 +1,23 @@ +# 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 Tippecanoe(MakefilePackage): + """Build vector tilesets from large collections of GeoJSON features.""" + + homepage = "https://github.com/mapbox/tippecanoe" + url = "https://github.com/mapbox/tippecanoe/archive/1.34.3.tar.gz" + + version('1.34.3', sha256='7a2dd2376a93d66a82c8253a46dbfcab3eaaaaca7bf503388167b9ee251bee54') + + depends_on('sqlite') + depends_on('zlib') + + def edit(self, spec, prefix): + makefile = FileFilter('Makefile') + makefile.filter(r'PREFIX \?= /usr/local', 'PREFIX = ' + self.prefix) |