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.
This commit is contained in:
Arne Becker 2024-02-28 22:27:22 +00:00 committed by GitHub
parent 0339690a59
commit 6049e5f6eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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