summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:02:38 +0000
committerGitHub <noreply@github.com>2024-02-28 14:02:38 -0800
commit1f3aefb0a35ed2644a2608525a3f02d0c982c843 (patch)
tree25b9dd8797908ae226a99cf0b60fadb697034f05
parentd4601d0e53d2d17bd44822a98e42b00f4a03e33d (diff)
downloadspack-1f3aefb0a35ed2644a2608525a3f02d0c982c843.tar.gz
spack-1f3aefb0a35ed2644a2608525a3f02d0c982c843.tar.bz2
spack-1f3aefb0a35ed2644a2608525a3f02d0c982c843.tar.xz
spack-1f3aefb0a35ed2644a2608525a3f02d0c982c843.zip
perl-cache-memcached and deps: new packages (#42911)
Adds Cache::Memcached and its dependencies. Installed OK with build-time tests. Added dependencies: - Cache::Memcached
-rw-r--r--var/spack/repos/builtin/packages/perl-cache-memcached/package.py27
-rw-r--r--var/spack/repos/builtin/packages/perl-string-crc32/package.py27
2 files changed, 54 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-cache-memcached/package.py b/var/spack/repos/builtin/packages/perl-cache-memcached/package.py
new file mode 100644
index 0000000000..273b74a7be
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-cache-memcached/package.py
@@ -0,0 +1,27 @@
+# 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 PerlCacheMemcached(PerlPackage):
+ """Client library for memcached (memory cache daemon)"""
+
+ homepage = "https://metacpan.org/pod/Cache::Memcached"
+ url = "https://cpan.metacpan.org/authors/id/D/DO/DORMANDO/Cache-Memcached-1.30.tar.gz"
+
+ maintainers("EbiArnie")
+
+ version("1.30", sha256="31b3c51ec0eaaf03002e2cc8e3d7d5cbe61919cfdada61c008eb9853acac42a9")
+
+ depends_on("perl-string-crc32", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Cache::Memcached; 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-string-crc32/package.py b/var/spack/repos/builtin/packages/perl-string-crc32/package.py
new file mode 100644
index 0000000000..e95085e399
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-string-crc32/package.py
@@ -0,0 +1,27 @@
+# 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 PerlStringCrc32(PerlPackage):
+ """Perl interface for cyclic redundancy check generation"""
+
+ homepage = "https://metacpan.org/pod/String::CRC32"
+ url = "https://cpan.metacpan.org/authors/id/L/LE/LEEJO/String-CRC32-2.100.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("CC0-1.0 OR SSLeay")
+
+ version("2.100", sha256="9706093b2d068b6715d35b4c58f51558e37960083202129fbb00a57e19a74713")
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use String::CRC32; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out