summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 20:26:09 +0000
committerGitHub <noreply@github.com>2024-02-28 12:26:09 -0800
commit49b38e3a78930a44826f561c2f37b501aee50bad (patch)
tree125f610503f7e26beecb59eaa0e217d2cef23cea
parent66f078ff84085fb7934bf6ca99cb467471886a41 (diff)
downloadspack-49b38e3a78930a44826f561c2f37b501aee50bad.tar.gz
spack-49b38e3a78930a44826f561c2f37b501aee50bad.tar.bz2
spack-49b38e3a78930a44826f561c2f37b501aee50bad.tar.xz
spack-49b38e3a78930a44826f561c2f37b501aee50bad.zip
perl-yaml-syck: New package (#42892)
Adds YAML::Syck
-rw-r--r--var/spack/repos/builtin/packages/perl-yaml-syck/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-yaml-syck/package.py b/var/spack/repos/builtin/packages/perl-yaml-syck/package.py
new file mode 100644
index 0000000000..a75a57ef79
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-yaml-syck/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 PerlYamlSyck(PerlPackage):
+ """Fast, lightweight YAML loader and dumper"""
+
+ homepage = "https://metacpan.org/pod/YAML::Syck"
+ url = "https://cpan.metacpan.org/authors/id/T/TO/TODDR/YAML-Syck-1.34.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("MIT")
+
+ version("1.34", sha256="cc9156ccaebda798ebfe2f31b619e806577f860ed1704262f17ffad3c6e34159")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use YAML::Syck; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out