diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-03-05 19:25:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 11:25:59 -0800 |
commit | a247879be377c0d55ba24b7ebf3a460ccea8ebeb (patch) | |
tree | e6a35a6050d36935f4a3e7ad7b636f9f42aec1d9 | |
parent | 7b46993fed4bc76f7f456f34a1e21f233646f6de (diff) | |
download | spack-a247879be377c0d55ba24b7ebf3a460ccea8ebeb.tar.gz spack-a247879be377c0d55ba24b7ebf3a460ccea8ebeb.tar.bz2 spack-a247879be377c0d55ba24b7ebf3a460ccea8ebeb.tar.xz spack-a247879be377c0d55ba24b7ebf3a460ccea8ebeb.zip |
perl-tie-ixhash: new package (#43029)
Adds Tie::IxHash
-rw-r--r-- | var/spack/repos/builtin/packages/perl-tie-ixhash/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-tie-ixhash/package.py b/var/spack/repos/builtin/packages/perl-tie-ixhash/package.py new file mode 100644 index 0000000000..a54e54a265 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-tie-ixhash/package.py @@ -0,0 +1,29 @@ +# 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 PerlTieIxhash(PerlPackage): + """Ordered associative arrays for Perl""" + + homepage = "https://metacpan.org/pod/Tie::IxHash" + url = "https://cpan.metacpan.org/authors/id/C/CH/CHORNY/Tie-IxHash-1.23.tar.gz" + + maintainers("EbiArnie") + + license("Artistic-1.0-Perl OR GPL-1.0-or-later") + + version("1.23", sha256="fabb0b8c97e67c9b34b6cc18ed66f6c5e01c55b257dcf007555e0b027d4caf56") + + depends_on("perl@5.5.0:", type=("build", "link", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Tie::IxHash; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |