summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/kyotocabinet/package.py10
-rw-r--r--var/spack/repos/builtin/packages/perl-kyotocabinet/package.py32
2 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kyotocabinet/package.py b/var/spack/repos/builtin/packages/kyotocabinet/package.py
index 2a75ef2c89..409fbc1532 100644
--- a/var/spack/repos/builtin/packages/kyotocabinet/package.py
+++ b/var/spack/repos/builtin/packages/kyotocabinet/package.py
@@ -19,3 +19,13 @@ class Kyotocabinet(AutotoolsPackage):
version("1.2.80", sha256="4c85d736668d82920bfdbdb92ac3d66b7db1108f09581a769dd9160a02def349")
depends_on("zlib-api@1.2.3:", type=("build", "link"))
+ depends_on("lzo", type=("build", "link"))
+ depends_on("xz", type=("build", "link"))
+
+ def configure_args(self):
+ args = []
+
+ args.append("--enable-lzo")
+ args.append("--enable-lzma")
+
+ return args
diff --git a/var/spack/repos/builtin/packages/perl-kyotocabinet/package.py b/var/spack/repos/builtin/packages/perl-kyotocabinet/package.py
new file mode 100644
index 0000000000..5971035ac0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-kyotocabinet/package.py
@@ -0,0 +1,32 @@
+# 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 PerlKyotocabinet(PerlPackage):
+ """Kyoto Cabinet is a library of routines for managing a database."""
+
+ homepage = "https://dbmx.net/kyotocabinet/"
+ url = "https://dbmx.net/kyotocabinet/perlpkg/kyotocabinet-perl-1.20.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("GPL-3.0-or-later")
+
+ version("1.20", sha256="19b3654dc6febfd0b91e54f36b2a0ebdaeaefaf7875f5aab337ad846a4095c32")
+
+ depends_on("kyotocabinet", type=("build", "link", "run", "test"))
+ depends_on("zlib-api", type=("build", "link", "run", "test"))
+ depends_on("lzo", type=("build", "link", "run", "test"))
+ depends_on("xz", type=("build", "link", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use KyotoCabinet; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out