diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2023-12-15 18:20:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 10:20:46 -0800 |
commit | 5ccbe68f163307d554aa4cf9aac92a0502def476 (patch) | |
tree | ef9c1e1b3bdf2e0989053bb29b173a5a8c657db8 /var | |
parent | 9fe4cef89e9a4ace7e7a15a5949a871436ffde09 (diff) | |
download | spack-5ccbe68f163307d554aa4cf9aac92a0502def476.tar.gz spack-5ccbe68f163307d554aa4cf9aac92a0502def476.tar.bz2 spack-5ccbe68f163307d554aa4cf9aac92a0502def476.tar.xz spack-5ccbe68f163307d554aa4cf9aac92a0502def476.zip |
perl-compress-lzo: New package (#41716)
Adds Compress::LZO
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-compress-lzo/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-compress-lzo/package.py b/var/spack/repos/builtin/packages/perl-compress-lzo/package.py new file mode 100644 index 0000000000..52929b8b50 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-compress-lzo/package.py @@ -0,0 +1,30 @@ +# 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 PerlCompressLzo(PerlPackage): + """Interface to the LZO compression library""" + + homepage = "https://metacpan.org/pod/Compress::LZO" + url = "https://cpan.metacpan.org/authors/id/P/PE/PEPL/Compress-LZO-1.09.tar.gz" + + maintainers("EbiArnie") + + version("1.09", sha256="15dbcb5ae4be2da09545b891c66077da5b45e4842f2b99919d29973ff6be4f47") + + depends_on("perl@5.4.0:", type=("build", "link", "run", "test")) + depends_on("perl-devel-checklib@0.9:", type=("build")) + depends_on("lzo", type=("build", "link", "run")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Compress::LZO; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |