perl-alien-build-plugin-download-gitlab: New package (#41706)
* perl-alien-build-plugin-download-gitlab: New package Adds Alien::Build::Plugin::Download::GitLab * Remove copyright line * New year
This commit is contained in:
parent
dbc283f0bd
commit
e2b25b9acf
@ -0,0 +1,31 @@
|
|||||||
|
# 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 PerlAlienBuildPluginDownloadGitlab(PerlPackage):
|
||||||
|
"""Alien::Build plugin to download from GitLab"""
|
||||||
|
|
||||||
|
homepage = "https://metacpan.org/pod/Alien::Build::Plugin::Download::GitLab"
|
||||||
|
url = "https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-0.01.tar.gz"
|
||||||
|
|
||||||
|
maintainers("EbiArnie")
|
||||||
|
|
||||||
|
version("0.01", sha256="c1f089c8ea152a789909d48a83dbfcf2626f773daf30431c8622582b26aba902")
|
||||||
|
|
||||||
|
depends_on("perl@5.8.4:", type=("build", "link", "run", "test"))
|
||||||
|
depends_on("perl-alien-build", type=("build", "run", "test"))
|
||||||
|
depends_on("perl-path-tiny", type=("build", "run", "test"))
|
||||||
|
depends_on("perl-test2-suite", type=("build", "test"))
|
||||||
|
depends_on("perl-uri", type=("build", "run", "test"))
|
||||||
|
|
||||||
|
def test_use(self):
|
||||||
|
"""Test 'use module'"""
|
||||||
|
options = ["-we", 'use strict; use Alien::Build::Plugin::Download::GitLab; print("OK\n")']
|
||||||
|
|
||||||
|
perl = self.spec["perl"].command
|
||||||
|
out = perl(*options, output=str.split, error=str.split)
|
||||||
|
assert "OK" in out
|
Loading…
Reference in New Issue
Block a user