diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-03-05 20:02:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 12:02:06 -0800 |
commit | 7bcb0fff7d73d452c493bf47addf1e2ab1f93f05 (patch) | |
tree | 37d86feccdf44547cf320eb9fc797777386def58 | |
parent | cd332c6370bbe49cd1136b44504684098aba75aa (diff) | |
download | spack-7bcb0fff7d73d452c493bf47addf1e2ab1f93f05.tar.gz spack-7bcb0fff7d73d452c493bf47addf1e2ab1f93f05.tar.bz2 spack-7bcb0fff7d73d452c493bf47addf1e2ab1f93f05.tar.xz spack-7bcb0fff7d73d452c493bf47addf1e2ab1f93f05.zip |
perl-config-inifiles: new package (#42984)
Adds Config::IniFiles
-rw-r--r-- | var/spack/repos/builtin/packages/perl-config-inifiles/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-config-inifiles/package.py b/var/spack/repos/builtin/packages/perl-config-inifiles/package.py new file mode 100644 index 0000000000..44e5237b7b --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-config-inifiles/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2024 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.package import * + + +class PerlConfigInifiles(PerlPackage): + """A module for reading .ini-style configuration files.""" + + homepage = "https://metacpan.org/pod/Config::IniFiles" + url = "https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-3.000003.tar.gz" + + maintainers("EbiArnie") + + license("Artistic-1.0-Perl OR GPL-1.0-or-later") + + version("3.000003", sha256="3c457b65d98e5ff40bdb9cf814b0d5983eb0c53fb8696bda3ba035ad2acd6802") + + depends_on("perl@5.8.0:", type=("build", "link", "run", "test")) + depends_on("perl-io-stringy", type=("build", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Config::IniFiles; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |