summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-05 19:34:03 +0000
committerGitHub <noreply@github.com>2024-03-05 11:34:03 -0800
commitf061dcda74416952e26a32cd3847676848745d78 (patch)
tree64da0784a76db66534063f8a52e6d82c6c9ff110 /var
parentcc460894fde992a4bc2741741193f98de7443e78 (diff)
downloadspack-f061dcda74416952e26a32cd3847676848745d78.tar.gz
spack-f061dcda74416952e26a32cd3847676848745d78.tar.bz2
spack-f061dcda74416952e26a32cd3847676848745d78.tar.xz
spack-f061dcda74416952e26a32cd3847676848745d78.zip
perl-string-numeric: new package (#43024)
Adds String::Numeric
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-string-numeric/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-string-numeric/package.py b/var/spack/repos/builtin/packages/perl-string-numeric/package.py
new file mode 100644
index 0000000000..5a493b513d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-string-numeric/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 PerlStringNumeric(PerlPackage):
+ """Determine whether a string represents a numeric value"""
+
+ homepage = "https://metacpan.org/pod/String::Numeric"
+ url = "https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/String-Numeric-0.9.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.9", sha256="b992b6611a070e8cd887bc1c7409f22443c115e44245a5c67fb43535b5e0cfdb")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-test-exception", type=("build", "link"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use String::Numeric; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out