summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hart <728056+whart222@users.noreply.github.com>2024-06-10 19:48:19 -0400
committerGitHub <noreply@github.com>2024-06-10 16:48:19 -0700
commitcfc042d901dc98bce830d2977de33bca5fafe262 (patch)
tree54a586abdeb3124368ef019eda0c21436fd4336d
parent211ad9e7d951e37fa75c9f5ddb3813ba08886911 (diff)
downloadspack-cfc042d901dc98bce830d2977de33bca5fafe262.tar.gz
spack-cfc042d901dc98bce830d2977de33bca5fafe262.tar.bz2
spack-cfc042d901dc98bce830d2977de33bca5fafe262.tar.xz
spack-cfc042d901dc98bce830d2977de33bca5fafe262.zip
cppad: add v20180000.0, v20240000.4, master (#44299)
* Updating cppad package * Disabling doc generation * Adding whart222 as maintainer * Style fixes * Pushing changes based on Tamara's feedback. * Updating sha256 hash for version 20180000.0 * Reorg of declarations * Reworking cmake args * Reformatting
-rw-r--r--var/spack/repos/builtin/packages/cppad/package.py33
1 files changed, 26 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/cppad/package.py b/var/spack/repos/builtin/packages/cppad/package.py
index 2e8f779510..9828434fee 100644
--- a/var/spack/repos/builtin/packages/cppad/package.py
+++ b/var/spack/repos/builtin/packages/cppad/package.py
@@ -9,20 +9,39 @@ from spack.package import *
class Cppad(CMakePackage):
"""A Package for Differentiation of C++ Algorithms."""
- homepage = "https://www.coin-or.org/CppAD/"
- url = "http://www.coin-or.org/download/source/CppAD/cppad-20170114.gpl.tgz"
+ homepage = "https://github.com/coin-or/CppAD"
+ url = "https://github.com/coin-or/CppAD/archive/refs/tags/20240000.4.tar.gz"
git = "https://github.com/coin-or/CppAD.git"
- version("develop", branch="master")
+ maintainers("whart222")
+
+ version("master", branch="master")
+ version(
+ "20240000.4", sha256="0dfc1e30b32d5dd3086ee3adb6d2746a019e9d670b644c4d5ec1df3c35dd1fe5"
+ )
+ version(
+ "20220000.5", sha256="9fb4562f6169855eadcd86ac4671593d1c0edf97bb6ce7cbb28e19af2bfc165e"
+ )
+ version(
+ "20180000.0",
+ sha256="a5226e4c5aa2ad6d95668f987b39939315bf134a0a793231984e6d42d6488cca",
+ deprecated=True,
+ )
version(
- "20180000.0", sha256="1c355713e720fc5226ff3d6db2909922d46cd7ee0d36ee7985882f86905f655a"
+ "20170114",
+ sha256="fa3980a882be2a668a7522146273a1b4f1d8dabe66ad4aafa8964c8c1fd6f957",
+ deprecated=True,
)
- version("20170114", sha256="fa3980a882be2a668a7522146273a1b4f1d8dabe66ad4aafa8964c8c1fd6f957")
def cmake_args(self):
- # This package does not obey CMAKE_INSTALL_PREFIX
+ # NOTE: This package does not obey CMAKE_INSTALL_PREFIX
args = [
self.define("cppad_prefix", self.prefix),
- self.define("cmake_install_docdir", "share/cppad/doc"),
+ self.define("CMAKE_BUILD_TYPE", "Release"),
+ #
+ # Installing documents sometimes fails.
+ #
+ # self.define("cmake_install_docdir", "share/cppad/doc"),
]
+
return args