summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pxz/package.py
blob: e7aab32335bcdf8c93d4422ab425c8b20a07df4a (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-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 Pxz(MakefilePackage):
    """Pxz is a parallel LZMA compressor using liblzma."""

    homepage = "https://jnovy.fedorapeople.org/pxz/pxz.html"
    url = "https://jnovy.fedorapeople.org/pxz/pxz-4.999.9beta.20091201git.tar.xz"
    git = "https://github.com/jnovy/pxz.git"

    version("develop", branch="master")
    version(
        "4.999.9beta.20091201git",
        sha256="df69f91103db6c20f0b523bb7f026d86ee662c49fe714647ed63f918cd39767a",
    )

    depends_on("xz")

    conflicts("platform=darwin", msg="Pxz runs only on Linux.")

    def install(self, spec, prefix):
        make("install", "DESTDIR=%s" % prefix, "BINDIR=/bin", "MANDIR=/share/man")