summaryrefslogblamecommitdiff
path: root/var/spack/repos/builtin/packages/porta/package.py
blob: d3bc8a466bc3eb9ca326f5dca52c73703f683fa0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                         
                                                                         
 

                                              


                   
 



                                                                    
                                                    
 
                                                                                               
 
                                       






                                                                         
# Copyright 2013-2019 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 import *


class Porta(Package):
    """PORTA is a collection of routines for analyzing polytopes and
    polyhedra"""
    homepage = "http://porta.zib.de"
    url      = "http://porta.zib.de/porta-1.4.1.zip"

    version('1.4.1', sha256='21e3784f46f4f2154100a0c39cbd9211a26e513ffe0c9f70ab75a3bb2810b059')

    depends_on("libtool", 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")