summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/sam2p/package.py
blob: 3fca39dad285734b05773d8fdf7035a7a0b16c07 (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
# Copyright 2013-2023 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 Sam2p(Package):
    """A raster to PostScript/PDF image conversion program"""

    homepage = "https://github.com/pts/sam2p"
    url = "https://github.com/pts/sam2p/archive/v0.49.4.tar.gz"
    git = homepage

    maintainers("robertu94")

    version("master", branch="master")
    version("2021-05-04", commit="f3e9cc0a2df1880a63f9f37c96e3595bca890cfa")

    def install(self, spec, prefix):
        compile_sh = Executable("./compile.sh")
        compile_sh()
        mkdirp(prefix.bin)
        install("sam2p", prefix.bin)