From 6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b Mon Sep 17 00:00:00 2001 From: Arne Becker <101113822+EbiArnie@users.noreply.github.com> Date: Wed, 28 Feb 2024 22:27:22 +0000 Subject: [PATCH] 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. --- .../packages/perl-readonly-xs/package.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/perl-readonly-xs/package.py 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 00000000000..0afdf18d3b7 --- /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