summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-05 19:35:04 +0000
committerGitHub <noreply@github.com>2024-03-05 11:35:04 -0800
commitbfc71e9daebb762e377c92f40f1ffc4e0972a095 (patch)
tree1fed819346a0dd6c9ca9a4cf00fb732392ce68c8
parentf061dcda74416952e26a32cd3847676848745d78 (diff)
downloadspack-bfc71e9daebb762e377c92f40f1ffc4e0972a095.tar.gz
spack-bfc71e9daebb762e377c92f40f1ffc4e0972a095.tar.bz2
spack-bfc71e9daebb762e377c92f40f1ffc4e0972a095.tar.xz
spack-bfc71e9daebb762e377c92f40f1ffc4e0972a095.zip
perl-string-approx: new package (#43023)
Adds String::Approx
-rw-r--r--var/spack/repos/builtin/packages/perl-string-approx/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-string-approx/package.py b/var/spack/repos/builtin/packages/perl-string-approx/package.py
new file mode 100644
index 0000000000..bdc23394f4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-string-approx/package.py
@@ -0,0 +1,25 @@
+# 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 PerlStringApprox(PerlPackage):
+ """Perl extension for approximate matching (fuzzy matching)"""
+
+ homepage = "https://metacpan.org/pod/String::Approx"
+ url = "https://cpan.metacpan.org/authors/id/J/JH/JHI/String-Approx-3.28.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("3.28", sha256="43201e762d8699cb0ac2c0764a5454bdc2306c0771014d6c8fba821480631342")
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use String::Approx; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out