perl-email-mime-encodings: New package (#41693)
* perl-email-mime-encodings: New package Adds Email::MIME::Encodings * Removed copyright line * New year
This commit is contained in:
parent
56bb329b07
commit
780caa6617
@ -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
|
Loading…
Reference in New Issue
Block a user