summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-04 18:56:08 +0000
committerGitHub <noreply@github.com>2024-03-04 10:56:08 -0800
commit8714ea665285040c3ffbb8dbea01781feae30d81 (patch)
treee98cb907a6b9ebc3d1a18949d564ef819b57e2eb /var
parentdf92f0a7d43f7cf5852ed784a3f26a59c581985a (diff)
downloadspack-8714ea665285040c3ffbb8dbea01781feae30d81.tar.gz
spack-8714ea665285040c3ffbb8dbea01781feae30d81.tar.bz2
spack-8714ea665285040c3ffbb8dbea01781feae30d81.tar.xz
spack-8714ea665285040c3ffbb8dbea01781feae30d81.zip
perl-catalyst-component-instancepercontext: new package (#42962)
Adds Catalyst::Component::InstancePerContext
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-catalyst-component-instancepercontext/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-catalyst-component-instancepercontext/package.py b/var/spack/repos/builtin/packages/perl-catalyst-component-instancepercontext/package.py
new file mode 100644
index 0000000000..e35e823cbb
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-catalyst-component-instancepercontext/package.py
@@ -0,0 +1,30 @@
+# 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 PerlCatalystComponentInstancepercontext(PerlPackage):
+ """Moose role to create only one instance of component per context"""
+
+ homepage = "https://metacpan.org/pod/Catalyst::Component::InstancePerContext"
+ url = "https://cpan.metacpan.org/authors/id/G/GR/GRODITI/Catalyst-Component-InstancePerContext-0.001001.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.001001", sha256="7f63f930e1e613f15955c9e6d73873675c50c0a3bc2a61a034733361ed26d271")
+
+ depends_on("perl-catalyst-runtime", type=("build", "run", "test"))
+ depends_on("perl-moose", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Catalyst::Component::InstancePerContext; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out