
* perl-datetime-format-strptime: New package Adds package: - perl-datetime-format-strptime And adds these because they are test dependencies: - perl-test-file-sharedir - perl-test2-plugin-nowarnings - perl-test2-suite And modifies these to enable build time tests: - perl-b-hooks-endofscope - perl-class-singleton - perl-datetime-locale - perl-datetime-timezone - perl-file-sharedir - perl-namespace-autoclean - perl-namespace-clean - perl-params-validationcompiler - perl-specio * Add myself as maintainer
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
# Copyright 2013-2023 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 PerlBHooksEndofscope(PerlPackage):
|
|
"""Execute code after a scope finished compilation."""
|
|
|
|
homepage = "https://metacpan.org/pod/B::Hooks::EndOfScope"
|
|
url = "http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-0.21.tar.gz"
|
|
|
|
maintainers("EbiArnie")
|
|
|
|
version("0.26", sha256="39df2f8c007a754672075f95b90797baebe97ada6d944b197a6352709cb30671")
|
|
version("0.21", sha256="90f3580880f1d68b843c142cc86f58bead1f3e03634c63868ac9eba5eedae02c")
|
|
|
|
depends_on("perl@5.6.1:", type=("build", "link", "run", "test"))
|
|
depends_on("perl-module-implementation@0.05:", type=("build", "run", "test"))
|
|
depends_on("perl-sub-exporter-progressive@0.001006:", type=("build", "run", "test"))
|
|
|
|
def test_use(self):
|
|
"""Test 'use module'"""
|
|
options = ["-we", 'use strict; use B::Hooks::EndOfScope; print("OK\n")']
|
|
|
|
perl = self.spec["perl"].command
|
|
out = perl(*options, output=str.split, error=str.split)
|
|
assert "OK" in out
|