summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-01-10 23:47:37 +0000
committerGitHub <noreply@github.com>2024-01-10 15:47:37 -0800
commit780caa661766c414f9043de437066859cbbd19a7 (patch)
tree23e5a6645092f5e46cf14acf0020f24a98789c3b /var
parent56bb329b077755d791193f2a40328e8b2f4c1a81 (diff)
downloadspack-780caa661766c414f9043de437066859cbbd19a7.tar.gz
spack-780caa661766c414f9043de437066859cbbd19a7.tar.bz2
spack-780caa661766c414f9043de437066859cbbd19a7.tar.xz
spack-780caa661766c414f9043de437066859cbbd19a7.zip
perl-email-mime-encodings: New package (#41693)
* perl-email-mime-encodings: New package Adds Email::MIME::Encodings * Removed copyright line * New year
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py b/var/spack/repos/builtin/packages/perl-email-mime-encodings/package.py
new file mode 100644
index 0000000000..7be7b58329
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-email-mime-encodings/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 PerlEmailMimeEncodings(PerlPackage):
+ """A unified interface to MIME encoding and decoding"""
+
+ homepage = "https://metacpan.org/pod/Email::MIME::Encodings"
+ url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-Encodings-1.317.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("1.317", sha256="4a9a41671a9d1504c4da241be419a9503fa3486262526edb81eca9e2ebea0baf")
+
+ depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Email::MIME::Encodings; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out