summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-05 19:59:25 +0000
committerGitHub <noreply@github.com>2024-03-05 11:59:25 -0800
commit6daf9677f369a41a21559d9ca0e75fbeed8b8a75 (patch)
tree0078ffd3b1c32fb27cc45384860a0db51ec223f9 /var
parentcb6450977d2ee125b9967e05977ec4fa0124be40 (diff)
downloadspack-6daf9677f369a41a21559d9ca0e75fbeed8b8a75.tar.gz
spack-6daf9677f369a41a21559d9ca0e75fbeed8b8a75.tar.bz2
spack-6daf9677f369a41a21559d9ca0e75fbeed8b8a75.tar.xz
spack-6daf9677f369a41a21559d9ca0e75fbeed8b8a75.zip
perl-plack-middleware-crossorigin: new package (#42991)
Adds Plack::Middleware::CrossOrigin
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-plack-middleware-crossorigin/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-plack-middleware-crossorigin/package.py b/var/spack/repos/builtin/packages/perl-plack-middleware-crossorigin/package.py
new file mode 100644
index 0000000000..1b5ac6efe7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-plack-middleware-crossorigin/package.py
@@ -0,0 +1,32 @@
+# 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 PerlPlackMiddlewareCrossorigin(PerlPackage):
+ """Adds headers to allow Cross-Origin Resource Sharing"""
+
+ homepage = "https://metacpan.org/pod/Plack::Middleware::CrossOrigin"
+ url = (
+ "https://cpan.metacpan.org/authors/id/H/HA/HAARG/Plack-Middleware-CrossOrigin-0.014.tar.gz"
+ )
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.014", sha256="35e80fabcc8455a6bc1aee0820fde9c4ae94baab7a795ce79932abc93004f3b7")
+
+ depends_on("perl@5.8.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-plack", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Plack::Middleware::CrossOrigin; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out