summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-03-03 07:40:27 +0000
committerGitHub <noreply@github.com>2024-03-03 00:40:27 -0700
commita9c1648db8531fb0d1d88206690c9cc8a8513a31 (patch)
treeed5aa5b7aef8fb0dc5b0492b64da704d4ef6e515 /var
parent3bd911377ea905a72a1070da0deb191a051c2e82 (diff)
downloadspack-a9c1648db8531fb0d1d88206690c9cc8a8513a31.tar.gz
spack-a9c1648db8531fb0d1d88206690c9cc8a8513a31.tar.bz2
spack-a9c1648db8531fb0d1d88206690c9cc8a8513a31.tar.xz
spack-a9c1648db8531fb0d1d88206690c9cc8a8513a31.zip
perl-log-dispatch-filerotate and dep: new package (#42965)
Adds Log::Dispatch::FileRotate and its dependency: - Log::Dispatch Installed OK, build-time tests ran successfully.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-log-dispatch-filerotate/package.py34
-rw-r--r--var/spack/repos/builtin/packages/perl-log-dispatch/package.py39
2 files changed, 73 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-log-dispatch-filerotate/package.py b/var/spack/repos/builtin/packages/perl-log-dispatch-filerotate/package.py
new file mode 100644
index 0000000000..df79fe4f5b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-log-dispatch-filerotate/package.py
@@ -0,0 +1,34 @@
+# 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 PerlLogDispatchFilerotate(PerlPackage):
+ """Log to Files that Archive/Rotate Themselves"""
+
+ homepage = "https://metacpan.org/pod/Log::Dispatch::FileRotate"
+ url = "https://cpan.metacpan.org/authors/id/M/MS/MSCHOUT/Log-Dispatch-FileRotate-1.38.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("1.38", sha256="b55d6cede3f0a06426488fbfa554f4561320b014c1023893ced29508e5bce4ec")
+
+ depends_on("perl@5.8.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-date-manip", type=("build", "run", "test"))
+ depends_on("perl-log-dispatch@2.60:", type=("build", "run", "test"))
+ depends_on("perl-sub-uplevel", type=("build", "run", "test"))
+ depends_on("perl-path-tiny@0.018:", type=("build", "test"))
+ depends_on("perl-test-warn", type=("build", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Log::Dispatch::FileRotate; 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-log-dispatch/package.py b/var/spack/repos/builtin/packages/perl-log-dispatch/package.py
new file mode 100644
index 0000000000..707fcb0133
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-log-dispatch/package.py
@@ -0,0 +1,39 @@
+# 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 PerlLogDispatch(PerlPackage):
+ """Dispatches messages to one or more outputs"""
+
+ homepage = "https://metacpan.org/pod/Log::Dispatch"
+ url = "https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Log-Dispatch-2.71.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-2.0")
+
+ version("2.71", sha256="9d60d9648c35ce2754731eb4deb7f05809ece1bd633b74d74795aed9ec732570")
+
+ depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))
+ depends_on("perl-devel-globaldestruction", type=("build", "run", "test"))
+ depends_on("perl-dist-checkconflicts@0.02:", type=("build", "run", "test"))
+ depends_on("perl-ipc-run3", type=("build", "test"))
+ depends_on("perl-module-runtime", type=("build", "run", "test"))
+ depends_on("perl-namespace-autoclean", type=("build", "run", "test"))
+ depends_on("perl-params-validationcompiler", type=("build", "run", "test"))
+ depends_on("perl-specio@0.32:", type=("build", "run", "test"))
+ depends_on("perl-test-fatal", type=("build", "test"))
+ depends_on("perl-test-needs", type=("build", "test"))
+ depends_on("perl-try-tiny", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Log::Dispatch; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out