diff options
-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 |