perl-rose-datetime: New package plus updates (#41744)
* perl-rose-datetime: New package plus updates - perl-rose-datetime: New package - perl-datetime: New version, updated dependencies to enable build time tests and added a runtime test * Remove copyright line * New year
This commit is contained in:
parent
49e5771430
commit
7f9e8bc41c
@ -14,6 +14,28 @@ class PerlDatetime(PerlPackage):
|
||||
|
||||
license("Artistic-2.0")
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("1.65", sha256="0bfda7ff0253fb3d88cf4bdb5a14afb8cea24d147975d5bdf3c88b40e7ab140e")
|
||||
version("1.63", sha256="1b11e49ec6e184ae2a10eccd05eda9534f32458fc644c12ab710c29a3a816f6f")
|
||||
|
||||
depends_on("perl-namespace-autoclean", type=("run"))
|
||||
depends_on("perl@5.8.4:", type=("build", "link", "run", "test"))
|
||||
depends_on("perl-cpan-meta-check@0.011:", type=("build", "test"))
|
||||
depends_on("perl-datetime-locale@1.06:", type=("build", "run", "test"))
|
||||
depends_on("perl-datetime-timezone@2.44:", type=("build", "run", "test"))
|
||||
depends_on("perl-dist-checkconflicts@0.02:", type=("build", "run", "test"))
|
||||
depends_on("perl-namespace-autoclean@0.19:", type=("build", "run", "test"))
|
||||
depends_on("perl-params-validationcompiler@0.26:", type=("build", "run", "test"))
|
||||
depends_on("perl-specio@0.18:", type=("build", "run", "test"))
|
||||
depends_on("perl-test-fatal", type=("build", "test"))
|
||||
depends_on("perl-test-warnings@0.005:", type=("build", "test"))
|
||||
depends_on("perl-test-without-module", type=("build", "test"))
|
||||
depends_on("perl-try-tiny", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use DateTime; print("OK\n")']
|
||||
|
||||
perl = self.spec["perl"].command
|
||||
out = perl(*options, output=str.split, error=str.split)
|
||||
assert "OK" in out
|
||||
|
@ -0,0 +1,28 @@
|
||||
# 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 PerlRoseDatetime(PerlPackage):
|
||||
"""DateTime helper functions and objects."""
|
||||
|
||||
homepage = "https://metacpan.org/pod/Rose::DateTime"
|
||||
url = "https://cpan.metacpan.org/authors/id/J/JS/JSIRACUSA/Rose-DateTime-0.540.tar.gz"
|
||||
|
||||
maintainers("EbiArnie")
|
||||
|
||||
version("0.540", sha256="1e42802d0944e9669599b7d0dea1e77a0d17a42123f8ca555180db4e7218e34a")
|
||||
|
||||
depends_on("perl-datetime", type=("build", "run", "test"))
|
||||
depends_on("perl-rose-object@0.82:", type=("build", "run", "test"))
|
||||
|
||||
def test_use(self):
|
||||
"""Test 'use module'"""
|
||||
options = ["-we", 'use strict; use Rose::DateTime; 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