summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:20:52 +0000
committerGitHub <noreply@github.com>2024-02-28 14:20:52 -0800
commit35898d94d2f27079457b8862bc3bfaa3e84a1a85 (patch)
tree58c6c4a73e6cfc30a9aca90628b2ae3f6f3bc6d8
parent7e00bd501491893c091f83a540b2e544074b8c87 (diff)
downloadspack-35898d94d2f27079457b8862bc3bfaa3e84a1a85.tar.gz
spack-35898d94d2f27079457b8862bc3bfaa3e84a1a85.tar.bz2
spack-35898d94d2f27079457b8862bc3bfaa3e84a1a85.tar.xz
spack-35898d94d2f27079457b8862bc3bfaa3e84a1a85.zip
perl-net-cidr-lite: new package (#42898)
* perl-net-cidr-lite: new package Adds Net::CIDR::Lite * Add license
-rw-r--r--var/spack/repos/builtin/packages/perl-net-cidr-lite/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-net-cidr-lite/package.py b/var/spack/repos/builtin/packages/perl-net-cidr-lite/package.py
new file mode 100644
index 0000000000..fbbe0e3e46
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-net-cidr-lite/package.py
@@ -0,0 +1,27 @@
+# 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 PerlNetCidrLite(PerlPackage):
+ """Perl extension for merging IPv4 or IPv6 CIDR addresses"""
+
+ homepage = "https://metacpan.org/pod/Net::CIDR::Lite"
+ url = "https://cpan.metacpan.org/authors/id/S/ST/STIGTSP/Net-CIDR-Lite-0.22.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("0.22", sha256="4317d8cb341a617b9e0888da43c09cdffffcb0c9edf7b8c9928d742a563b8517")
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use Net::CIDR::Lite; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out