summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-02-28 22:22:19 +0000
committerGitHub <noreply@github.com>2024-02-28 14:22:19 -0800
commitae5b605f99f60119b70054f2f55d1a5c693e7890 (patch)
tree2b8c510d84d089056a92a73718fbac80b444575a
parent35898d94d2f27079457b8862bc3bfaa3e84a1a85 (diff)
downloadspack-ae5b605f99f60119b70054f2f55d1a5c693e7890.tar.gz
spack-ae5b605f99f60119b70054f2f55d1a5c693e7890.tar.bz2
spack-ae5b605f99f60119b70054f2f55d1a5c693e7890.tar.xz
spack-ae5b605f99f60119b70054f2f55d1a5c693e7890.zip
perl-uri-find: New package (#42894)
Adds URI::Find
-rw-r--r--var/spack/repos/builtin/packages/perl-uri-find/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-uri-find/package.py b/var/spack/repos/builtin/packages/perl-uri-find/package.py
new file mode 100644
index 0000000000..8b9876d936
--- /dev/null
+++ b/var/spack/repos/builtin/packages/perl-uri-find/package.py
@@ -0,0 +1,30 @@
+# 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 PerlUriFind(PerlPackage):
+ """Find URIs in arbitrary text"""
+
+ homepage = "https://metacpan.org/pod/URI::Find"
+ url = "https://cpan.metacpan.org/authors/id/M/MS/MSCHWERN/URI-Find-20160806.tar.gz"
+
+ maintainers("EbiArnie")
+
+ license("Artistic-1.0-Perl OR GPL-1.0-or-later")
+
+ version("20160806", sha256="e213a425a51b5f55324211f37909d78749d0bacdea259ba51a9855d0d19663d6")
+
+ depends_on("perl@5.8.8:", type=("build", "link", "run", "test"))
+ depends_on("perl-uri@1.60:", type=("build", "run", "test"))
+
+ def test_use(self):
+ """Test 'use module'"""
+ options = ["-we", 'use strict; use URI::Find; print("OK\n")']
+
+ perl = self.spec["perl"].command
+ out = perl(*options, output=str.split, error=str.split)
+ assert "OK" in out