summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2023-12-13 20:01:10 +0000
committerGitHub <noreply@github.com>2023-12-13 12:01:10 -0800
commit07258a7c80e22162e508295a3407f399b6c0e048 (patch)
treebc14cbcdf68114914c618c0ef017fc02091f222d /var
parent395e53a5e0d21e89d8b2722a6f99f824450cf9a1 (diff)
downloadspack-07258a7c80e22162e508295a3407f399b6c0e048.tar.gz
spack-07258a7c80e22162e508295a3407f399b6c0e048.tar.bz2
spack-07258a7c80e22162e508295a3407f399b6c0e048.tar.xz
spack-07258a7c80e22162e508295a3407f399b6c0e048.zip
perl-safe-isa: New package (#41600)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-safe-isa/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-safe-isa/package.py b/var/spack/repos/builtin/packages/perl-safe-isa/package.py
new file mode 100644
index 0000000000..56b0e3ce77
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-safe-isa/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+# Copyright 2023 EMBL-European Bioinformatics Institute
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PerlSafeIsa(PerlPackage):
+ """Call isa, can, does and DOES safely on things that may not be objects"""
+
+ homepage = "https://metacpan.org/pod/Safe::Isa"
+ url = "https://cpan.metacpan.org/authors/id/E/ET/ETHER/Safe-Isa-1.000010.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("1.000010", sha256="87f4148aa0ff1d5e652723322eab7dafa3801c967d6f91ac9147a3c467b8a66a")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Safe::Isa; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out