summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ladot/package.py
blob: 1042d32e684bd6823539c7a1ce45093c1440eb30 (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
# 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 Ladot(Package):
    """Ladot is a script that makes using LaTeX in graphs generated by dot
    (graphviz) relatively easy."""

    homepage = "https://brighten.bigw.org/projects/ladot/"
    url = "https://brighten.bigw.org/projects/ladot/ladot-1.2.tar.gz"

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

    version("1.2", sha256="f829eeca829b82c0315cd87bffe410bccab96309b86b1c883b3ddaa93170f25e")

    depends_on("perl", type=("run", "test"))
    depends_on("graphviz", type=("run", "test"))
    depends_on("texlive", type="test")

    def install(self, spec, prefix):
        if self.run_tests:
            with working_dir("example"):
                make()

        mkdir(prefix.bin)
        install("ladot", prefix.bin)