diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-03-05 19:28:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 11:28:28 -0800 |
commit | 99002027c464908124c690b13913cd0c1d1f8486 (patch) | |
tree | 16a964c9912b68f2c790b6721154f754d6ab4925 /var | |
parent | a247879be377c0d55ba24b7ebf3a460ccea8ebeb (diff) | |
download | spack-99002027c464908124c690b13913cd0c1d1f8486.tar.gz spack-99002027c464908124c690b13913cd0c1d1f8486.tar.bz2 spack-99002027c464908124c690b13913cd0c1d1f8486.tar.xz spack-99002027c464908124c690b13913cd0c1d1f8486.zip |
perl-test-pod-coverage and deps: new packages (#43028)
Adds Test::Pod::Coverage and its dependencies.
Installed OK with build-time tests. Added dependencies:
- Pod::Coverage
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-pod-coverage/package.py | 28 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/perl-test-pod-coverage/package.py | 30 |
2 files changed, 58 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-pod-coverage/package.py b/var/spack/repos/builtin/packages/perl-pod-coverage/package.py new file mode 100644 index 0000000000..21f2f660f6 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-pod-coverage/package.py @@ -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 PerlPodCoverage(PerlPackage): + """Checks if the documentation of a module is comprehensive""" + + homepage = "https://metacpan.org/pod/Pod::Coverage" + url = "https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Pod-Coverage-0.23.tar.gz" + + maintainers("EbiArnie") + + version("0.23", sha256="30b7a0b0c942f44a7552c0d34e9b1f2e0ba0b67955c61e3b1589ec369074b107") + + depends_on("perl-devel-symdump@2.01:", type=("build", "run", "test")) + depends_on("perl-pod-parser@1.13:", type=("build", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Pod::Coverage; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out diff --git a/var/spack/repos/builtin/packages/perl-test-pod-coverage/package.py b/var/spack/repos/builtin/packages/perl-test-pod-coverage/package.py new file mode 100644 index 0000000000..a1260e68b7 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-test-pod-coverage/package.py @@ -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 PerlTestPodCoverage(PerlPackage): + """Check for pod coverage in your distribution""" + + homepage = "https://metacpan.org/pod/Test::Pod::Coverage" + url = "https://cpan.metacpan.org/authors/id/N/NE/NEILB/Test-Pod-Coverage-1.10.tar.gz" + + maintainers("EbiArnie") + + license("Artistic-2.0") + + version("1.10", sha256="48c9cca9f7d99eee741176445b431adf09c029e1aa57c4703c9f46f7601d40d4") + + depends_on("perl@5.6.0:", type=("build", "link", "run", "test")) + depends_on("perl-pod-coverage", type=("build", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Test::Pod::Coverage; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |