summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2023-12-13 18:57:55 +0000
committerGitHub <noreply@github.com>2023-12-13 10:57:55 -0800
commit2dc3bf0164deb75fffcfdcd9a9ca912784f30f50 (patch)
treed82231d4f254487e2423f19422912473a66e873b /var
parent9bf6e05d027086f8363094aff7a091b25cdc8a87 (diff)
downloadspack-2dc3bf0164deb75fffcfdcd9a9ca912784f30f50.tar.gz
spack-2dc3bf0164deb75fffcfdcd9a9ca912784f30f50.tar.bz2
spack-2dc3bf0164deb75fffcfdcd9a9ca912784f30f50.tar.xz
spack-2dc3bf0164deb75fffcfdcd9a9ca912784f30f50.zip
perl-http-cookiejar: New package (#41620)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-http-cookiejar/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-http-cookiejar/package.py b/var/spack/repos/builtin/packages/perl-http-cookiejar/package.py
new file mode 100644
index 0000000000..32bbc92acd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-http-cookiejar/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+# Copyright 2023 EMBL-European Bioinformatics Institute
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PerlHttpCookiejar(PerlPackage):
+ """A minimalist HTTP user agent cookie jar"""
+
+ homepage = "https://metacpan.org/pod/HTTP::CookieJar"
+ url = "https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/HTTP-CookieJar-0.014.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("0.014", sha256="7094ea5c91f536d263b85e83ab4e9a963e11c4408ce08ecae553fa9c0cc47e73")
+
+ depends_on("perl@5.8.1:", type=("build", "link", "run", "test"))
+ depends_on("perl-http-date", type=("run"))
+ depends_on("perl-test-deep", type=("test"))
+ depends_on("perl-test-requires", type=("test"))
+ depends_on("perl-uri", type=("test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use HTTP::CookieJar; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out