diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-01-16 19:38:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 11:38:07 -0800 |
commit | 264c0d6428daf9db864c3aecf2ea05216e1ee7eb (patch) | |
tree | f5dac28deabc8c69e1ccdd0db4e89b734e7ea0b1 /var | |
parent | 2836dcaf4e61cc8f82d29baaaf33e99feaac46ce (diff) | |
download | spack-264c0d6428daf9db864c3aecf2ea05216e1ee7eb.tar.gz spack-264c0d6428daf9db864c3aecf2ea05216e1ee7eb.tar.bz2 spack-264c0d6428daf9db864c3aecf2ea05216e1ee7eb.tar.xz spack-264c0d6428daf9db864c3aecf2ea05216e1ee7eb.zip |
perl-email-mime: New package (#42089)
Adds Email::MIME
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-email-mime/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-email-mime/package.py b/var/spack/repos/builtin/packages/perl-email-mime/package.py new file mode 100644 index 0000000000..07485df458 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-email-mime/package.py @@ -0,0 +1,36 @@ +# 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 PerlEmailMime(PerlPackage): + """Easy MIME message handling""" + + homepage = "https://metacpan.org/pod/Email::MIME" + url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-1.953.tar.gz" + + maintainers("EbiArnie") + + license("Artistic-1.0-Perl OR GPL-1.0-or-later") + + version("1.953", sha256="98fb067850699a224babc348f1cefe30d744c60da8902e7a5ce9d8b7e73df735") + + depends_on("perl@5.12.0:", type=("build", "link", "run", "test")) + depends_on("perl-email-address-xs", type=("build", "run", "test")) + depends_on("perl-email-messageid", type=("build", "run", "test")) + depends_on("perl-email-mime-contenttype@1.023:", type=("build", "run", "test")) + depends_on("perl-email-mime-encodings@1.314:", type=("build", "run", "test")) + depends_on("perl-email-simple@2.212:", type=("build", "run", "test")) + depends_on("perl-mime-types@1.13:", type=("build", "run", "test")) + depends_on("perl-module-runtime", type=("build", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Email::MIME; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |