From a247879be377c0d55ba24b7ebf3a460ccea8ebeb Mon Sep 17 00:00:00 2001 From: Arne Becker <101113822+EbiArnie@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:25:59 +0000 Subject: [PATCH] perl-tie-ixhash: new package (#43029) Adds Tie::IxHash --- .../packages/perl-tie-ixhash/package.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/perl-tie-ixhash/package.py 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