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
This commit is contained in:
William Hart 2024-06-10 19:48:19 -04:00 committed by GitHub
parent 211ad9e7d9
commit cfc042d901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,20 +9,39 @@
class Cppad(CMakePackage): class Cppad(CMakePackage):
"""A Package for Differentiation of C++ Algorithms.""" """A Package for Differentiation of C++ Algorithms."""
homepage = "https://www.coin-or.org/CppAD/" homepage = "https://github.com/coin-or/CppAD"
url = "http://www.coin-or.org/download/source/CppAD/cppad-20170114.gpl.tgz" url = "https://github.com/coin-or/CppAD/archive/refs/tags/20240000.4.tar.gz"
git = "https://github.com/coin-or/CppAD.git" git = "https://github.com/coin-or/CppAD.git"
version("develop", branch="master") maintainers("whart222")
version("master", branch="master")
version( version(
"20180000.0", sha256="1c355713e720fc5226ff3d6db2909922d46cd7ee0d36ee7985882f86905f655a" "20240000.4", sha256="0dfc1e30b32d5dd3086ee3adb6d2746a019e9d670b644c4d5ec1df3c35dd1fe5"
)
version(
"20220000.5", sha256="9fb4562f6169855eadcd86ac4671593d1c0edf97bb6ce7cbb28e19af2bfc165e"
)
version(
"20180000.0",
sha256="a5226e4c5aa2ad6d95668f987b39939315bf134a0a793231984e6d42d6488cca",
deprecated=True,
)
version(
"20170114",
sha256="fa3980a882be2a668a7522146273a1b4f1d8dabe66ad4aafa8964c8c1fd6f957",
deprecated=True,
) )
version("20170114", sha256="fa3980a882be2a668a7522146273a1b4f1d8dabe66ad4aafa8964c8c1fd6f957")
def cmake_args(self): def cmake_args(self):
# This package does not obey CMAKE_INSTALL_PREFIX # NOTE: This package does not obey CMAKE_INSTALL_PREFIX
args = [ args = [
self.define("cppad_prefix", self.prefix), 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 return args