summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2017-06-13 18:09:12 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2017-06-13 18:09:12 -0700
commit3025f9d30305c8af38288f8329081a7c2f713ac8 (patch)
tree3e79cc93b63878919d7935c80d7413fcaa558aeb /var
parent6af44e63add228614cd776229ff1da8c863e1fdc (diff)
downloadspack-3025f9d30305c8af38288f8329081a7c2f713ac8.tar.gz
spack-3025f9d30305c8af38288f8329081a7c2f713ac8.tar.bz2
spack-3025f9d30305c8af38288f8329081a7c2f713ac8.tar.xz
spack-3025f9d30305c8af38288f8329081a7c2f713ac8.zip
ipopt 3.12.7 (#4490)
* ipopt: update version to 3.12.7 * ipopt: add +coinhsl option * ipopt: add +metis option
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ipopt/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ipopt/package.py b/var/spack/repos/builtin/packages/ipopt/package.py
index f35fa45dad..8bfda4a10b 100644
--- a/var/spack/repos/builtin/packages/ipopt/package.py
+++ b/var/spack/repos/builtin/packages/ipopt/package.py
@@ -31,16 +31,26 @@ class Ipopt(Package):
homepage = "https://projects.coin-or.org/Ipopt"
url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.4.tgz"
+ version('3.12.7', '2a36e4a04717a8ed7012ac7d1253ae4ffbc1a8fd')
+ version('3.12.6', 'ed4072427fab786fcf6082fe7e6f6c2ed9b5e6f8')
+ version('3.12.5', '3f63ddfff517235ead17af6cceb426ca858dda37')
version('3.12.4', '12a8ecaff8dd90025ddea6c65b49cb03')
version('3.12.3', 'c560cbfa9cbf62acf8b485823c255a1b')
version('3.12.2', 'ec1e855257d7de09e122c446506fb00d')
version('3.12.1', 'ceaf895ce80c77778f2cab68ba9f17f3')
version('3.12.0', 'f7dfc3aa106a6711a85214de7595e827')
+ variant('coinhsl', default=False,
+ description="Build with Coin Harwell Subroutine Libraries")
+ variant('metis', default=False,
+ description="Build with METIS partitioning support")
+
depends_on("blas")
depends_on("lapack")
depends_on("pkg-config", type='build')
depends_on("mumps+double~mpi")
+ depends_on('coinhsl', when='+coinhsl')
+ depends_on('metis@4.0:4.999', when='+metis')
def install(self, spec, prefix):
# Dependency directories
@@ -68,6 +78,16 @@ class Ipopt(Package):
"--with-lapack-lib=%s" % lapack_lib
]
+ if 'coinhsl' in spec:
+ configure_args.extend([
+ '--with-hsl-lib=%s' % spec['coinhsl'].libs.ld_flags,
+ '--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
+
+ if 'metis' in spec:
+ configure_args.extend([
+ '--with-metis-lib=%s' % spec['metis'].libs.ld_flags,
+ '--with-metis-incdir=%s' % spec['metis'].prefix.include])
+
configure(*configure_args)
# IPOPT does not build correctly in parallel on OS X