summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/perl-dbd-mysql/package.py
blob: 0cdf051ce06c569be75c9698c8ff8af15eb026b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 PerlDbdMysql(PerlPackage):
    """MySQL driver for the Perl5 Database Interface (DBI)"""

    homepage = "https://metacpan.org/pod/DBD::mysql"
    url = "https://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/DBD-mysql-4.043.tar.gz"

    license("GPL-1.0-or-later OR Artistic-1.0-Perl")

    version(
        "4.050",
        sha256="4f48541ff15a0a7405f76adc10f81627c33996fbf56c95c26c094444c0928d78",
        url="https://cpan.metacpan.org/authors/id/D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz",
    )
    version("4.043", sha256="629f865e8317f52602b2f2efd2b688002903d2e4bbcba5427cb6188b043d6f99")

    depends_on("perl-devel-checklib", type="build", when="@4.050:")
    depends_on("perl-test-deep", type=("build", "run"))
    depends_on("perl-dbi", type=("build", "run"))
    depends_on("mysql-client")