summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-03 06:34:26 +0000
committerGitHub <noreply@github.com>2024-03-02 23:34:26 -0700
commit3bd911377ea905a72a1070da0deb191a051c2e82 (patch)
treef84cca1ba9cb5fdf5573026c03af3028f412b446 /var
parentfcb2f7d3aaa4e6cd925ab2a45f1ef0bb83634d4e (diff)
downloadspack-3bd911377ea905a72a1070da0deb191a051c2e82.tar.gz
spack-3bd911377ea905a72a1070da0deb191a051c2e82.tar.bz2
spack-3bd911377ea905a72a1070da0deb191a051c2e82.tar.xz
spack-3bd911377ea905a72a1070da0deb191a051c2e82.zip
perl-catalyst-plugin-cache: new package (#42964)
Adds Catalyst::Plugin::Cache
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-catalyst-plugin-cache/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-catalyst-plugin-cache/package.py b/var/spack/repos/builtin/packages/perl-catalyst-plugin-cache/package.py
new file mode 100644
index 0000000000..2786963aa1
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-catalyst-plugin-cache/package.py
@@ -0,0 +1,34 @@
+# 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 PerlCatalystPluginCache(PerlPackage):
+ """Flexible caching support for Catalyst."""
+
+ homepage = "https://metacpan.org/pod/Catalyst::Plugin::Cache"
+ url = "https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/Catalyst-Plugin-Cache-0.12.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.12", sha256="295fed449c9324b06578fd468e3391e04fbf64ad24376a004408d1bc6f5443e0")
+
+ depends_on("perl-catalyst-runtime", type=("build", "run", "test"))
+ depends_on("perl-mro-compat", type=("build", "run", "test"))
+ depends_on("perl-task-weaken", type=("build", "run", "test"))
+ depends_on("perl-test-deep", type=("build", "link"))
+ depends_on("perl-test-exception", type=("build", "link"))
+ depends_on("perl-class-accessor", type=("build", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Catalyst::Plugin::Cache; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out