2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 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.
|
2017-01-16 08:20:26 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2017-01-16 08:20:26 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Cppad(CMakePackage):
|
|
|
|
"""A Package for Differentiation of C++ Algorithms."""
|
|
|
|
|
|
|
|
homepage = "https://www.coin-or.org/CppAD/"
|
2017-04-04 06:34:16 +08:00
|
|
|
url = "http://www.coin-or.org/download/source/CppAD/cppad-20170114.gpl.tgz"
|
2018-07-23 15:00:15 +08:00
|
|
|
git = "https://github.com/coin-or/CppAD.git"
|
2017-01-16 08:20:26 +08:00
|
|
|
|
2018-07-25 10:08:43 +08:00
|
|
|
version('develop', branch='master')
|
2019-10-12 16:49:54 +08:00
|
|
|
version('20170114', sha256='fa3980a882be2a668a7522146273a1b4f1d8dabe66ad4aafa8964c8c1fd6f957')
|
2017-01-16 08:20:26 +08:00
|
|
|
|
|
|
|
def cmake_args(self):
|
|
|
|
# This package does not obey CMAKE_INSTALL_PREFIX
|
|
|
|
args = [
|
|
|
|
"-Dcppad_prefix=%s" % (self.prefix),
|
|
|
|
"-Dcmake_install_docdir=share/cppad/doc"
|
|
|
|
]
|
|
|
|
return args
|