Files
spack/var/spack/repos/builtin/packages/porta/package.py
2025-01-13 22:51:20 -07:00

29 lines
799 B
Python

# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Porta(Package):
"""PORTA is a collection of routines for analyzing polytopes and
polyhedra"""
homepage = "https://porta.zib.de"
url = "https://porta.zib.de/porta-1.4.1.zip"
license("GPL-2.0-or-later")
version("1.4.1", sha256="21e3784f46f4f2154100a0c39cbd9211a26e513ffe0c9f70ab75a3bb2810b059")
depends_on("libtool", type="build")
depends_on("gmake", type="build")
patch("Makefile.spack.patch")
def install(self, spec, prefix):
with working_dir("src"):
make("-f", "Makefile.spack", "PREFIX=%s" % prefix)
make("-f", "Makefile.spack", "PREFIX=%s" % prefix, "install")