diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2024-01-10 23:43:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 15:43:02 -0800 |
commit | e2b25b9acfc6692ef729d2d643bb80cbffd5e9a4 (patch) | |
tree | 5d0a7c57c26bc3c4854e14a646080637bfbd705d /var | |
parent | dbc283f0bd0b133722a04f0da1fc79f2189f790a (diff) | |
download | spack-e2b25b9acfc6692ef729d2d643bb80cbffd5e9a4.tar.gz spack-e2b25b9acfc6692ef729d2d643bb80cbffd5e9a4.tar.bz2 spack-e2b25b9acfc6692ef729d2d643bb80cbffd5e9a4.tar.xz spack-e2b25b9acfc6692ef729d2d643bb80cbffd5e9a4.zip |
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
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-alien-build-plugin-download-gitlab/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-alien-build-plugin-download-gitlab/package.py b/var/spack/repos/builtin/packages/perl-alien-build-plugin-download-gitlab/package.py new file mode 100644 index 0000000000..dc33076ab8 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-alien-build-plugin-download-gitlab/package.py @@ -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 |