summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2023-12-14 02:12:02 +0000
committerGitHub <noreply@github.com>2023-12-13 18:12:02 -0800
commita0041731a366a2523930585d6ab64a91484895ec (patch)
tree199e9e594b58db3b2eb2d94ea5b022650687e41e
parenta690b8c27ccf33745afbdf7b1ce800fa07510b78 (diff)
downloadspack-a0041731a366a2523930585d6ab64a91484895ec.tar.gz
spack-a0041731a366a2523930585d6ab64a91484895ec.tar.bz2
spack-a0041731a366a2523930585d6ab64a91484895ec.tar.xz
spack-a0041731a366a2523930585d6ab64a91484895ec.zip
perl-ref-util: New package (#41648)
-rw-r--r--var/spack/repos/builtin/packages/perl-ref-util/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-ref-util/package.py b/var/spack/repos/builtin/packages/perl-ref-util/package.py
new file mode 100644
index 0000000000..0e1d6ec533
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-ref-util/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 PerlRefUtil(PerlPackage):
+ """Utility functions for checking references"""
+
+ homepage = "https://metacpan.org/pod/Ref::Util"
+ url = "https://cpan.metacpan.org/authors/id/A/AR/ARC/Ref-Util-0.204.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("0.204", sha256="415fa73dbacf44f3d5d79c14888cc994562720ab468e6f71f91cd1f769f105e1")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Ref::Util; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out