Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoetsch-lanl authored Dec 14, 2023
2 parents 2de8d98 + 06521b4 commit 9b67357
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
26 changes: 26 additions & 0 deletions var/spack/repos/builtin/packages/perl-common-sense/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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 PerlCommonSense(PerlPackage):
"""Save a tree AND a kitten, use common::sense!"""

homepage = "https://metacpan.org/pod/common::sense"
url = "https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-3.75.tar.gz"

maintainers("EbiArnie")

version("3.75", sha256="a86a1c4ca4f3006d7479064425a09fa5b6689e57261fcb994fe67d061cba0e7e")

def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use common::sense; print("OK\n")']

perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out
28 changes: 28 additions & 0 deletions var/spack/repos/builtin/packages/perl-sql-reservedwords/package.py
Original file line number Diff line number Diff line change
@@ -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 PerlSqlReservedwords(PerlPackage):
"""Reserved SQL words by ANSI/ISO"""

homepage = "https://metacpan.org/pod/SQL::ReservedWords"
url = "https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/SQL-ReservedWords-0.8.tar.gz"

maintainers("EbiArnie")

version("0.8", sha256="09f4aecf1bd8efdd3f9b39f16a240c4e9ceb61eb295b88145c96eb9d58504a2a")

depends_on("perl-sub-exporter", type=("build", "run", "test"))

def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use SQL::ReservedWords; print("OK\n")']

perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out
28 changes: 28 additions & 0 deletions var/spack/repos/builtin/packages/perl-time-clock/package.py
Original file line number Diff line number Diff line change
@@ -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 PerlTimeClock(PerlPackage):
"""Twenty-four hour clock object with nanosecond precision."""

homepage = "https://metacpan.org/pod/Time::Clock"
url = "https://cpan.metacpan.org/authors/id/J/JS/JSIRACUSA/Time-Clock-1.03.tar.gz"

maintainers("EbiArnie")

version("1.03", sha256="35e8a8bbfcdb35d86dd4852a9cd32cfb455a9b42e22669186e920c8aca017aef")

depends_on("perl@5.6.0:", type=("build", "link", "run", "test"))

def test_use(self):
"""Test 'use module'"""
options = ["-we", 'use strict; use Time::Clock; print("OK\n")']

perl = self.spec["perl"].command
out = perl(*options, output=str.split, error=str.split)
assert "OK" in out

0 comments on commit 9b67357

Please sign in to comment.