summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:27:22 +0000
committerGitHub <noreply@github.com>2024-02-28 14:27:22 -0800
commit6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b (patch)
treea54b3fcaba24bfc4dbd982536602979d0177c9fe /var
parent0339690a59721221ba9acefee00eaff33bd1d58e (diff)
downloadspack-6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b.tar.gz
spack-6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b.tar.bz2
spack-6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b.tar.xz
spack-6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b.zip
perl-readonly-xs: new package (#42897)
This adds Readonly::XS. Since this module can not be used by itself, the Spack package comes with a test override. This anticipates that the perl builder will one day have a generic standalone module usage test.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-readonly-xs/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-readonly-xs/package.py b/var/spack/repos/builtin/packages/perl-readonly-xs/package.py
new file mode 100644
index 0000000000..0afdf18d3b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-readonly-xs/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 PerlReadonlyXs(PerlPackage):
+ """Companion module for Readonly.pm, to speed up read-only scalar variables."""
+
+ homepage = "https://metacpan.org/pod/Readonly::XS"
+ url = "https://cpan.metacpan.org/authors/id/R/RO/ROODE/Readonly-XS-1.05.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("1.05", sha256="8ae5c4e85299e5c8bddd1b196f2eea38f00709e0dc0cb60454dc9114ae3fff0d")
+
+ depends_on("perl-readonly@1.02:", type=("build", "run", "test"))
+
+ def test_use(self):
+ # This module can not be "use"d.
+ pass