29 lines
1008 B
Python
29 lines
1008 B
Python
# 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 Cddlib(AutotoolsPackage):
|
|
"""The C-library cddlib is a C implementation of the Double Description
|
|
Method of Motzkin et al. for generating all vertices (i.e. extreme points)
|
|
and extreme rays of a general convex polyhedron in R^d given by a system
|
|
of linear inequalities"""
|
|
|
|
homepage = "https://www.inf.ethz.ch/personal/fukudak/cdd_home/"
|
|
url = "ftp://ftp.math.ethz.ch/users/fukudak/cdd/cddlib-094h.tar.gz"
|
|
|
|
version('0.94h', '1467d270860bbcb26d3ebae424690e7c')
|
|
|
|
# Note: It should be possible to build cddlib also without gmp
|
|
|
|
depends_on("gmp")
|
|
depends_on("libtool", type="build")
|
|
|
|
def url_for_version(self, version):
|
|
url = "ftp://ftp.math.ethz.ch/users/fukudak/cdd/cddlib-{0}.tar.gz"
|
|
return url.format(version.joined)
|