summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-04 18:59:57 +0000
committerGitHub <noreply@github.com>2024-03-04 10:59:57 -0800
commitca14ce26290b211dac38f0e75a9b9e7441826c8e (patch)
tree065e5a54c48a9c7750cff90993e5806280ca9a3f
parent44f443946c912d25c8b4b66022d4e2d7abdf34ea (diff)
downloadspack-ca14ce26290b211dac38f0e75a9b9e7441826c8e.tar.gz
spack-ca14ce26290b211dac38f0e75a9b9e7441826c8e.tar.bz2
spack-ca14ce26290b211dac38f0e75a9b9e7441826c8e.tar.xz
spack-ca14ce26290b211dac38f0e75a9b9e7441826c8e.zip
perl-catalyst-action-rest: new package (#42960)
Adds Catalyst::Action::REST
-rw-r--r--var/spack/repos/builtin/packages/perl-catalyst-action-rest/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-catalyst-action-rest/package.py b/var/spack/repos/builtin/packages/perl-catalyst-action-rest/package.py
new file mode 100644
index 0000000000..173d7cf0b1
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-catalyst-action-rest/package.py
@@ -0,0 +1,39 @@
+# 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 PerlCatalystActionRest(PerlPackage):
+ """Automated REST Method Dispatching"""
+
+ homepage = "https://metacpan.org/pod/Catalyst::Action::REST"
+ url = "https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/Catalyst-Action-REST-1.21.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("1.21", sha256="ccf81bba5200d3a0ad6901f923af173a3d4416618aea08a6938baaffdef4cb20")
+
+ depends_on("perl-catalyst-runtime@5.80030:", type=("build", "run", "test"))
+ depends_on("perl-class-inspector@1.13:", type=("build", "run", "test"))
+ depends_on("perl-json-maybexs", type=("build", "run", "test"))
+ depends_on("perl-libwww-perl", type=("build", "test"))
+ depends_on("perl-module-pluggable", type=("build", "run", "test"))
+ depends_on("perl-moose@1.03:", type=("build", "run", "test"))
+ depends_on("perl-mro-compat@0.10:", type=("build", "run", "test"))
+ depends_on("perl-namespace-autoclean", type=("build", "run", "test"))
+ depends_on("perl-params-validate@0.76:", type=("build", "run", "test"))
+ depends_on("perl-test-requires", type=("build", "test"))
+ depends_on("perl-uri-find", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Catalyst::Action::REST; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out