parent
7b46993fed
commit
a247879be3
1 changed files with 29 additions and 0 deletions
29
var/spack/repos/builtin/packages/perl-tie-ixhash/package.py
Normal file
29
var/spack/repos/builtin/packages/perl-tie-ixhash/package.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue