summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-dir-expiry/package.py
blob: 0ddb1f457d043fa2933a9cda192af569054d366f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 RDirExpiry(RPackage):
    """Managing Expiration for Cache Directories.

    Implements an expiration system for access to versioned directories.
    Directories that have not been accessed by a registered function within a
    certain time frame are deleted. This aims to reduce disk usage by
    eliminating obsolete caches generated by old versions of packages."""

    bioc = "dir.expiry"

    version("1.8.0", commit="271f76cb2e8565817400e85fcc2c595923af4af6")

    depends_on("r-filelock", type=("build", "run"))