
Adds Perl::Critic::Moose and its dependencies. Installed OK with build-time tests. Added dependencies: - Perl::Critic - Pod::Parser - Perl::Tidy - PPI - PPIx::QuoteLike - List::SomeUtils - PPIx::Regexp - B::Keywords - PPIx::Utils - String::Format - Pod::Spell - Test::SubCalls - Test::Object - Lingua::EN::Inflect - Hook::LexWrap
26 lines
843 B
Python
26 lines
843 B
Python
# 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 PerlBKeywords(PerlPackage):
|
|
"""Lists of reserved barewords and symbol names"""
|
|
|
|
homepage = "https://metacpan.org/pod/B::Keywords"
|
|
url = "https://cpan.metacpan.org/authors/id/R/RU/RURBAN/B-Keywords-1.26.tar.gz"
|
|
|
|
maintainers("EbiArnie")
|
|
|
|
version("1.26", sha256="2daa155d2f267fb0dedd87f8a4c4fb5663879fc106517b1ee258353ef87aed34")
|
|
|
|
def test_use(self):
|
|
"""Test 'use module'"""
|
|
options = ["-we", 'use strict; use B::Keywords; print("OK\n")']
|
|
|
|
perl = self.spec["perl"].command
|
|
out = perl(*options, output=str.split, error=str.split)
|
|
assert "OK" in out
|