1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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")
license("GPL-1.0-or-later OR Artistic-1.0-Perl")
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
|