perl-uri-find: New package (#42894)

Adds URI::Find
This commit is contained in:
Arne Becker 2024-02-28 22:22:19 +00:00 committed by GitHub
parent 35898d94d2
commit ae5b605f99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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