diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2023-12-14 20:51:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 12:51:43 -0800 |
commit | ab84876e2c71a79c92de2507e1cfcc066efa19e8 (patch) | |
tree | 63195004bc8dac4191133702c4ef6b5bd44df852 /var | |
parent | e2d5be83e78bf537523e595afcbc922fc575d828 (diff) | |
download | spack-ab84876e2c71a79c92de2507e1cfcc066efa19e8.tar.gz spack-ab84876e2c71a79c92de2507e1cfcc066efa19e8.tar.bz2 spack-ab84876e2c71a79c92de2507e1cfcc066efa19e8.tar.xz spack-ab84876e2c71a79c92de2507e1cfcc066efa19e8.zip |
perl-proc-daemon: New package (#41666)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-proc-daemon/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-proc-daemon/package.py b/var/spack/repos/builtin/packages/perl-proc-daemon/package.py new file mode 100644 index 0000000000..af75367ef4 --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-proc-daemon/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# Copyright 2023 EMBL-European Bioinformatics Institute +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PerlProcDaemon(PerlPackage): + """Run Perl program(s) as a daemon process""" + + homepage = "https://metacpan.org/pod/Proc::Daemon" + url = "https://cpan.metacpan.org/authors/id/A/AK/AKREAL/Proc-Daemon-0.23.tar.gz" + + maintainers("EbiArnie") + + version("0.23", sha256="34c0b85b7948b431cbabc97cee580835e515ccf43badbd8339eb109474089b69") + + depends_on("perl-proc-processtable", type=("build", "link")) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use Proc::Daemon; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |