summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumbach <healther@users.noreply.github.com>2019-06-28 20:16:34 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-06-28 11:16:34 -0700
commit5e9437866bb28753b550dd3030557f1a6e623ed3 (patch)
tree9c175ad76f28f08458aebd4dc71f8213b0637987
parentd5402147f07d614c8c1b2f3541640cba467a1904 (diff)
downloadspack-5e9437866bb28753b550dd3030557f1a6e623ed3.tar.gz
spack-5e9437866bb28753b550dd3030557f1a6e623ed3.tar.bz2
spack-5e9437866bb28753b550dd3030557f1a6e623ed3.tar.xz
spack-5e9437866bb28753b550dd3030557f1a6e623ed3.zip
New package: libtomlc99 (#11811)
-rw-r--r--var/spack/repos/builtin/packages/libtomlc99/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtomlc99/package.py b/var/spack/repos/builtin/packages/libtomlc99/package.py
new file mode 100644
index 0000000000..3055bba12e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libtomlc99/package.py
@@ -0,0 +1,33 @@
+# 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 Libtomlc99(Package):
+ """TOML in c99; v0.4.0 compliant."""
+
+ homepage = "https://github.com/cktan/tomlc99"
+ git = "https://github.com/cktan/tomlc99.git"
+
+ # Since there is no official versioning, yet, just use the date and prefix
+ # with '0.' to make switching to proper versioning easier later.
+ # Unfortunately, upstream Makefile does not build shared libaries, so use
+ # local changes for now.
+ version('0.2019.05.02', commit='35118431263dec2a2a7b55e4dd717a5f54992e3e',
+ sha256sum='f131679131c1fcb012004a3334abb2b77a329490549c4d68455ba4ec55af9b10',
+ git="https://github.com/obreitwi/tomlc99.git")
+ # Does not build shared libraries.
+ version('0.2019.03.06', commit='bd76f1276ee5f5df0eb064f1842af5ad1737cf1e')
+
+ variant('debug', default=False, description="Build with debug enabled.")
+
+ def install(self, spec, prefix):
+ make_args = []
+ if spec.satisfies("+debug"):
+ make_args.append("DEBUG=1")
+
+ make(*make_args)
+ make('prefix={0}'.format(prefix), 'install')