forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
var/spack/repos/builtin/packages/perl-common-sense/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
var/spack/repos/builtin/packages/perl-sql-reservedwords/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
var/spack/repos/builtin/packages/perl-time-clock/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |