summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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