summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-05 19:20:00 +0000
committerGitHub <noreply@github.com>2024-03-05 11:20:00 -0800
commit18ab14e65976345ce15b47303de7b43cbe6eba5d (patch)
tree66354419742d0d3b6056568ff29ed2cb46c7eaa4
parent28eb5e1bf6f0b1960ec59d969d3c8f84c5ccac9b (diff)
downloadspack-18ab14e65976345ce15b47303de7b43cbe6eba5d.tar.gz
spack-18ab14e65976345ce15b47303de7b43cbe6eba5d.tar.bz2
spack-18ab14e65976345ce15b47303de7b43cbe6eba5d.tar.xz
spack-18ab14e65976345ce15b47303de7b43cbe6eba5d.zip
perl-xml-hash-xs: new package (#43031)
Adds XML::Hash::XS
-rw-r--r--var/spack/repos/builtin/packages/perl-xml-hash-xs/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-xml-hash-xs/package.py b/var/spack/repos/builtin/packages/perl-xml-hash-xs/package.py
new file mode 100644
index 0000000000..1bf9260b8c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-xml-hash-xs/package.py
@@ -0,0 +1,27 @@
+# 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 PerlXmlHashXs(PerlPackage):
+ """Simple and fast hash to XML and XML to hash conversion written in C"""
+
+ homepage = "https://metacpan.org/pod/XML::Hash::XS"
+ url = "https://cpan.metacpan.org/authors/id/Y/YO/YOREEK/XML-Hash-XS-0.56.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.56", sha256="be4c60ded94c5ebe53a81ef74928dfbec9613986d2a6056dd253665c6ae9802f")
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use XML::Hash::XS; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out