summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-01-10 23:54:06 +0000
committerGitHub <noreply@github.com>2024-01-10 15:54:06 -0800
commitec758bfd5ba23313afd45797a14b3e5871b33bba (patch)
treeb0d069c7c0285d571fbd667a283d1022e8982de4
parent43c9abcea69d1db16fec355d4796ce87d09036f1 (diff)
downloadspack-ec758bfd5ba23313afd45797a14b3e5871b33bba.tar.gz
spack-ec758bfd5ba23313afd45797a14b3e5871b33bba.tar.bz2
spack-ec758bfd5ba23313afd45797a14b3e5871b33bba.tar.xz
spack-ec758bfd5ba23313afd45797a14b3e5871b33bba.zip
perl-email-address-xs: New package (#41692)
* perl-email-address-xs: New package Adds Email::Address::XS * Removed copyright line * New year
-rw-r--r--var/spack/repos/builtin/packages/perl-email-address-xs/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-email-address-xs/package.py b/var/spack/repos/builtin/packages/perl-email-address-xs/package.py
new file mode 100644
index 0000000000..fbb1353dcd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-email-address-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 PerlEmailAddressXs(PerlPackage):
+ """Parse and format RFC 5322 email addresses and groups"""
+
+ homepage = "https://metacpan.org/pod/Email::Address::XS"
+ url = "https://cpan.metacpan.org/authors/id/P/PA/PALI/Email-Address-XS-1.05.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("1.05", sha256="1510b7f10d67201037cd50d22c9d6b26eeca55ededa4cdb46bbca27e59a4ea16")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Email::Address::XS; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out