2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-06-19 04:37:08 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-06-19 04:37:08 +08:00
|
|
|
|
|
|
|
from spack import *
|
|
|
|
|
2016-08-24 01:52:28 +08:00
|
|
|
|
2016-06-19 04:37:08 +08:00
|
|
|
class Cdd(Package):
|
|
|
|
"""The program cdd+ (cdd, respectively) is a C++ (ANSI C)
|
|
|
|
implementation of the Double Description Method [MRTT53] for
|
|
|
|
generating all vertices (i.e. extreme points) and extreme rays of
|
|
|
|
a general convex polyhedron given by a system of linear
|
|
|
|
inequalities"""
|
|
|
|
homepage = "https://www.inf.ethz.ch/personal/fukudak/cdd_home/cdd.html"
|
2017-01-31 22:56:35 +08:00
|
|
|
url = "http://www.cs.mcgill.ca/~fukuda/download/cdd/cdd-061a.tar.gz"
|
2016-06-19 04:37:08 +08:00
|
|
|
|
2016-08-24 01:52:28 +08:00
|
|
|
version('0.61a', '22c24a7a9349dd7ec0e24531925a02d9')
|
2016-06-19 04:37:08 +08:00
|
|
|
|
2016-08-24 01:52:28 +08:00
|
|
|
depends_on("libtool", type="build")
|
2016-06-19 04:37:08 +08:00
|
|
|
|
|
|
|
patch("Makefile.spack.patch")
|
|
|
|
|
2016-10-21 22:49:36 +08:00
|
|
|
def url_for_version(self, version):
|
2017-01-31 22:56:35 +08:00
|
|
|
url = "http://www.cs.mcgill.ca/~fukuda/download/cdd/cdd-{0}.tar.gz"
|
2016-10-21 22:49:36 +08:00
|
|
|
return url.format(version.joined)
|
|
|
|
|
2016-06-19 04:37:08 +08:00
|
|
|
def install(self, spec, prefix):
|
|
|
|
# The Makefile isn't portable; use our own instead
|
|
|
|
makeargs = ["-f", "Makefile.spack", "PREFIX=%s" % prefix]
|
|
|
|
make(*makeargs)
|
|
|
|
make("install", *makeargs)
|