diff options
-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) |