Skip to content

Commit b7d9900

Browse files
authored
perl-test-warn: update version, dependencies (spack#42901)
* perl-test-warn: new package Adds Test::Warn * Revive older version * perl-test-warn: fix URL and deprecate old version
1 parent bc155e7 commit b7d9900

File tree

1 file changed

+22
-3
lines changed
  • var/spack/repos/builtin/packages/perl-test-warn

1 file changed

+22
-3
lines changed

var/spack/repos/builtin/packages/perl-test-warn/package.py

+22-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,27 @@ class PerlTestWarn(PerlPackage):
1010
"""Perl extension to test methods for warnings"""
1111

1212
homepage = "https://metacpan.org/pod/Test::Warn"
13-
url = "http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Test-Warn-0.30.tar.gz"
13+
url = "https://cpan.metacpan.org/authors/id/B/BI/BIGJ/Test-Warn-0.37.tar.gz"
1414

15-
license("GPL-1.0-or-later OR Artistic-1.0-Perl")
15+
maintainers("EbiArnie")
1616

17-
version("0.30", sha256="8197555b94189d919349a03f7058f83861f145af9bee59f505bfe47562144e41")
17+
license("Artistic-1.0-Perl OR GPL-1.0-or-later")
18+
19+
version("0.37", sha256="98ca32e7f2f5ea89b8bfb9a0609977f3d153e242e2e51705126cb954f1a06b57")
20+
version(
21+
"0.30",
22+
sha256="8197555b94189d919349a03f7058f83861f145af9bee59f505bfe47562144e41",
23+
url="https://cpan.metacpan.org/authors/id/C/CH/CHORNY/Test-Warn-0.30.tar.gz",
24+
deprecated=True,
25+
)
26+
27+
depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
28+
depends_on("perl-sub-uplevel@0.12:", type=("build", "run", "test"))
29+
30+
def test_use(self):
31+
"""Test 'use module'"""
32+
options = ["-we", 'use strict; use Test::Warn; print("OK\n")']
33+
34+
perl = self.spec["perl"].command
35+
out = perl(*options, output=str.split, error=str.split)
36+
assert "OK" in out

0 commit comments

Comments
 (0)