summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-01-17 16:37:35 +0000
committerGitHub <noreply@github.com>2024-01-17 17:37:35 +0100
commita12ecb112a8e3783e43a1fe750550ef9100dcde1 (patch)
treeaf4fcc05af37efdf0438befb76e99b3bcae15db6
parent9640d30ea9832e80c8f03de84f97717bf55c5481 (diff)
downloadspack-a12ecb112a8e3783e43a1fe750550ef9100dcde1.tar.gz
spack-a12ecb112a8e3783e43a1fe750550ef9100dcde1.tar.bz2
spack-a12ecb112a8e3783e43a1fe750550ef9100dcde1.tar.xz
spack-a12ecb112a8e3783e43a1fe750550ef9100dcde1.zip
perl-email-stuffer: New package (#42119)
Adds Email::Stuffer
-rw-r--r--var/spack/repos/builtin/packages/perl-email-stuffer/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-email-stuffer/package.py b/var/spack/repos/builtin/packages/perl-email-stuffer/package.py
new file mode 100644
index 0000000000..1b317f1aee
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-email-stuffer/package.py
@@ -0,0 +1,35 @@
+# 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 PerlEmailStuffer(PerlPackage):
+ """A more casual approach to creating and sending Email:: emails"""
+
+ homepage = "https://metacpan.org/pod/Email::Stuffer"
+ url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-Stuffer-0.020.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.020", sha256="0a1efb7f2dedd39052b126f718ca2d3b5845a4123a39392fd9dfa0c76e6057c7")
+
+ depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-email-mime@1.943:", type=("build", "run", "test"))
+ depends_on("perl-email-sender", type=("build", "run", "test"))
+ depends_on("perl-module-runtime", type=("build", "run", "test"))
+ depends_on("perl-moo", type=("build", "test"))
+ depends_on("perl-params-util@1.05:", type=("build", "run", "test"))
+ depends_on("perl-test-fatal", type=("build", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Email::Stuffer; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out