diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-08-29 11:53:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 22:53:57 -0500 |
commit | 0eeed1f7f75b8844c1c748248ba62fc76afb80e9 (patch) | |
tree | 3a9828967437d944df309e7930cb9cd2eee1ea6d | |
parent | c85dc3a5b431409bed5b0753f04049641f4d3761 (diff) | |
download | spack-0eeed1f7f75b8844c1c748248ba62fc76afb80e9.tar.gz spack-0eeed1f7f75b8844c1c748248ba62fc76afb80e9.tar.bz2 spack-0eeed1f7f75b8844c1c748248ba62fc76afb80e9.tar.xz spack-0eeed1f7f75b8844c1c748248ba62fc76afb80e9.zip |
Add new package: iniparser (#18318)
-rw-r--r-- | var/spack/repos/builtin/packages/iniparser/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/iniparser/package.py b/var/spack/repos/builtin/packages/iniparser/package.py new file mode 100644 index 0000000000..cb9f7039c7 --- /dev/null +++ b/var/spack/repos/builtin/packages/iniparser/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2020 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 * +import glob + + +class Iniparser(MakefilePackage): + """This modules offers parsing of ini files from the C level.""" + + homepage = "http://ndevilla.free.fr/iniparser/" + url = "https://github.com/ndevilla/iniparser/archive/v4.1.tar.gz" + + version('4.1', sha256='960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae') + version('4.0', sha256='e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba') + version('3.2', sha256='4a60b8e29d33d24b458749404e1ff2bcbfedd53ad800757daeed7955599fdce4') + version('3.1', sha256='73b88632dc16c2839f5d9ac7e6ec7a41415a68e590f75d0580b302af4a5d821d') + + def install(self, spec, prefix): + mkdirp(prefix.include) + with working_dir('src'): + for files in glob.glob('*.h'): + install(files, prefix.include) + mkdirp(prefix.lib) + for files in glob.glob('libiniparser.*'): + install(files, prefix.lib) |