summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:16:36 +0000
committerGitHub <noreply@github.com>2024-02-28 14:16:36 -0800
commit7e00bd501491893c091f83a540b2e544074b8c87 (patch)
treed2e56081a06201c6043367fa9fc0b04a9e782eda
parent1f3aefb0a35ed2644a2608525a3f02d0c982c843 (diff)
downloadspack-7e00bd501491893c091f83a540b2e544074b8c87.tar.gz
spack-7e00bd501491893c091f83a540b2e544074b8c87.tar.bz2
spack-7e00bd501491893c091f83a540b2e544074b8c87.tar.xz
spack-7e00bd501491893c091f83a540b2e544074b8c87.zip
perl-mojolicious: new package (#42899)
Adds Mojolicious
-rw-r--r--var/spack/repos/builtin/packages/perl-mojolicious/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-mojolicious/package.py b/var/spack/repos/builtin/packages/perl-mojolicious/package.py
new file mode 100644
index 0000000000..5ed165d062
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-mojolicious/package.py
@@ -0,0 +1,29 @@
+# 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 PerlMojolicious(PerlPackage):
+ """Real-time web framework"""
+
+ homepage = "https://metacpan.org/pod/Mojolicious"
+ url = "https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-9.35.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-2.0")
+
+ version("9.35", sha256="6a4a446ee07fca7c6db72f5d817540d6833009cb8de7cce4c6fb24a15ee7d46b")
+
+ depends_on("perl@5.16.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Mojolicious; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out