From 43c9abcea69d1db16fec355d4796ce87d09036f1 Mon Sep 17 00:00:00 2001 From: Arne Becker <101113822+EbiArnie@users.noreply.github.com> Date: Wed, 10 Jan 2024 23:52:40 +0000 Subject: [PATCH] perl-email-messageid: New package (#41696) * perl-email-messageid: New package Adds Email::MessageID * Removed copyright line * New year --- .../packages/perl-email-messageid/package.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 var/spack/repos/builtin/packages/perl-email-messageid/package.py diff --git a/var/spack/repos/builtin/packages/perl-email-messageid/package.py b/var/spack/repos/builtin/packages/perl-email-messageid/package.py new file mode 100644 index 0000000000..662adfa07e --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-email-messageid/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 PerlEmailMessageid(PerlPackage): + """Generate world unique message-ids.""" + + homepage = "https://metacpan.org/pod/Email::MessageID" + url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MessageID-1.408.tar.gz" + + maintainers("EbiArnie") + + version("1.408", sha256="1f3d5b4ff0b1c7b39e9ac7c318fb37adcd0bac9556036546494d14f06dc5643c") + + depends_on("perl@5.12.0:", type=("build", "link", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Email::MessageID; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out