diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-03-05 19:22:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 11:22:38 -0800 |
commit | dd59f4ba345382ce89ee1a4448c077833b52f66d (patch) | |
tree | 8e9997903b15287de6d99eecfe9b47691d15b27e | |
parent | 18ab14e65976345ce15b47303de7b43cbe6eba5d (diff) | |
download | spack-dd59f4ba345382ce89ee1a4448c077833b52f66d.tar.gz spack-dd59f4ba345382ce89ee1a4448c077833b52f66d.tar.bz2 spack-dd59f4ba345382ce89ee1a4448c077833b52f66d.tar.xz spack-dd59f4ba345382ce89ee1a4448c077833b52f66d.zip |
perl-text-csv-xs: new package (#43030)
Adds Text::CSV_XS
-rw-r--r-- | var/spack/repos/builtin/packages/perl-text-csv-xs/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-text-csv-xs/package.py b/var/spack/repos/builtin/packages/perl-text-csv-xs/package.py new file mode 100644 index 0000000000..9162bfccf4 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-text-csv-xs/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 PerlTextCsvXs(PerlPackage): + """Comma-Separated Values manipulation routines""" + + homepage = "https://metacpan.org/pod/Text::CSV_XS" + url = "https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-1.53.tgz" + + maintainers("EbiArnie") + + license("Artistic-1.0-Perl OR GPL-1.0-or-later") + + version("1.53", sha256="ba3231610fc755a69e14eb4a3c6d8cce46cc4fd32853777a6c9ce485a8878b42") + + depends_on("perl@5.6.1:", type=("build", "link", "run", "test")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Text::CSV_XS; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |