diff options
author | Arne Becker <101113822+EbiArnie@users.noreply.github.com> | 2023-12-15 18:18:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 10:18:04 -0800 |
commit | 9fe4cef89e9a4ace7e7a15a5949a871436ffde09 (patch) | |
tree | 7eb141a057d686a51850b8ae395f835c811eb686 /var | |
parent | 165c6cef08fabc7a869436ca2f06cbab7a52706b (diff) | |
download | spack-9fe4cef89e9a4ace7e7a15a5949a871436ffde09.tar.gz spack-9fe4cef89e9a4ace7e7a15a5949a871436ffde09.tar.bz2 spack-9fe4cef89e9a4ace7e7a15a5949a871436ffde09.tar.xz spack-9fe4cef89e9a4ace7e7a15a5949a871436ffde09.zip |
perl-dbd-oracle: New package (#41719)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl-dbd-oracle/package.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-dbd-oracle/package.py b/var/spack/repos/builtin/packages/perl-dbd-oracle/package.py new file mode 100644 index 0000000000..00b2483e5f --- /dev/null +++ b/var/spack/repos/builtin/packages/perl-dbd-oracle/package.py @@ -0,0 +1,34 @@ +# 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 PerlDbdOracle(PerlPackage): + """Oracle database driver for the DBI module""" + + homepage = "https://metacpan.org/pod/DBD::Oracle" + url = "https://cpan.metacpan.org/authors/id/Z/ZA/ZARQUON/DBD-Oracle-1.83.tar.gz" + + maintainers("EbiArnie") + + version("1.83", sha256="51fe9c158955fda0ca917a806863f0bc51068b533fbbc7423b3cc4ad595ed153") + + depends_on("perl@5.8.0:", type=("build", "link", "run", "test")) + depends_on("perl-dbi@1.623:", type=("build", "run", "test")) + depends_on("perl-test-nowarnings", type=("build", "link")) + depends_on("oracle-instant-client", type=("build", "link", "run", "test")) + + def setup_build_environment(self, env): + env.set("ORACLE_HOME", self.spec["oracle-instant-client"].prefix) + + def test_use(self): + """Test 'use module'""" + options = ["-we", 'use strict; use DBD::Oracle; print("OK\n")'] + + perl = self.spec["perl"].command + out = perl(*options, output=str.split, error=str.split) + assert "OK" in out |