perl-email-mime-contenttype: New package (#41951)
Adds Email::MIME::ContentType
This commit is contained in:
parent
7f7fcde71e
commit
f63f7f4b39
@ -0,0 +1,30 @@
|
|||||||
|
# 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 PerlEmailMimeContenttype(PerlPackage):
|
||||||
|
"""Parse and build a MIME Content-Type or Content-Disposition Header"""
|
||||||
|
|
||||||
|
homepage = "https://metacpan.org/pod/Email::MIME::ContentType"
|
||||||
|
url = "https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-ContentType-1.028.tar.gz"
|
||||||
|
|
||||||
|
maintainers("EbiArnie")
|
||||||
|
|
||||||
|
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
|
||||||
|
|
||||||
|
version("1.028", sha256="e7950246433f7ed6c3e4fd4df2227e0f2341137c3cab1989018fc370f58145c4")
|
||||||
|
|
||||||
|
depends_on("perl@5.12.0:", type=("build", "link", "run", "test"))
|
||||||
|
depends_on("perl-text-unidecode", type=("build", "run", "test"))
|
||||||
|
|
||||||
|
def test_use(self):
|
||||||
|
"""Test 'use module'"""
|
||||||
|
options = ["-we", 'use strict; use Email::MIME::ContentType; 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