summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/dcap/package.py
blob: 87c25a443dc88653849c358b9133f4807cc9431a (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
28
29
30
31
32
# 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 Dcap(AutotoolsPackage):
    """dCache access protocol client library."""

    homepage = "https://github.com/dCache/dcap"
    url = "https://github.com/dCache/dcap/archive/2.47.12.tar.gz"

    license("LGPL-2.0-or-later")

    version("2.47.12", sha256="050a8d20c241abf358d5d72586f9abc43940e61d9ec9480040ac7da52ec804ac")

    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")
    depends_on("m4", type="build")

    variant("plugins", default=True, description="Build plugins")

    def patch(self):
        if self.spec.satisfies("~plugins"):
            filter_file("SUBDIRS = .*", "SUBDIRS = src", "Makefile.am")

    def autoreconf(self, spec, prefix):
        bash = which("bash")
        bash("./bootstrap.sh")