diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-02-11 16:40:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 16:40:28 +0100 |
commit | ef5b15be40c553e98dfcb1a5cc8ab4c717b6feab (patch) | |
tree | d21179c06d1a6813ec8203dd788932180bbb1eee /var | |
parent | da46da1c2a0d437343c56038223450d12a7e3d3e (diff) | |
download | spack-ef5b15be40c553e98dfcb1a5cc8ab4c717b6feab.tar.gz spack-ef5b15be40c553e98dfcb1a5cc8ab4c717b6feab.tar.bz2 spack-ef5b15be40c553e98dfcb1a5cc8ab4c717b6feab.tar.xz spack-ef5b15be40c553e98dfcb1a5cc8ab4c717b6feab.zip |
libcyaml: new package (#21598)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libcyaml/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libcyaml/package.py b/var/spack/repos/builtin/packages/libcyaml/package.py new file mode 100644 index 0000000000..dbb0f784cd --- /dev/null +++ b/var/spack/repos/builtin/packages/libcyaml/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2021 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 Libcyaml(MakefilePackage): + """LibCYAML is a C library for reading and writing structured YAML + documents. It is written in ISO C11 and licensed under the ISC licence.""" + + homepage = "https://github.com/tlsa/libcyaml" + url = "https://github.com/tlsa/libcyaml/archive/v1.1.0.tar.gz" + + version('1.1.0', sha256='37a00ed8ec206b60a712acfd44196bef063b8f02e376d8e86f61a7007a81daea') + + depends_on('libyaml') + + def build(self, spec, prefix): + make('VARIANT=release') + + def install(self, spec, prefix): + make('install', 'VARIANT=release', 'PREFIX={0}'.format(prefix)) |