summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorthelfer <thomas.helfer@cea.fr>2020-01-09 16:32:17 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2020-01-09 09:32:17 -0600
commitff2367259147fc70a20f35ccbd4681e47812a2dc (patch)
treebeff27baab400a7cbdeeb5345ed4063b41167620 /var
parent4bd4ed0f84f733cb958bfd18f914abed6212a9d6 (diff)
downloadspack-ff2367259147fc70a20f35ccbd4681e47812a2dc.tar.gz
spack-ff2367259147fc70a20f35ccbd4681e47812a2dc.tar.bz2
spack-ff2367259147fc70a20f35ccbd4681e47812a2dc.tar.xz
spack-ff2367259147fc70a20f35ccbd4681e47812a2dc.zip
new versions of `TFEL` and `MGIS` (#14249)
* fixes #967 * Version bump to 0.9.1 - Bugfixes for spack find - 0.9.1 can read specs from current develop. * Don't assume spack is in the path when building docs. * Quick fix for relocation issues. * elf relocation fix: cherry-picked from develop branch (#6889) * Revert "Quick fix for relocation issues." This reverts commit 57608a6dc495af6c042945767ac3bd0c009fadd5. * Buildcache: relocate fixes (#6512) * Updated function which checks if a binary file needs relocation. Previously this was incorrectly identifying ELF binaries as symbolic links (so they were being excluded from relocation). Added test to check that ELF binaries are not considered symlinks. * relocate_text was not replacing paths in text files. Added test to check that text files are relocated properly (i.e. paths in the file are converted to the new prefix). * Exclude backup files created by filter_file when installing from binary cache. * Update write_buildinfo_file method signature to distinguish between the spec prefix and the working directory for the binary cache package. * Final changes for v0.11.0 (#6318) * Fix logo link in README.md to point to the develop branch. (#6969) * Compiler flag handlers (#6415) This adds the ability for packages to apply compiler flags in one of three ways: by injecting them into the compiler wrapper calls (the default in this PR and previously the only automated choice); exporting environment variable definitions for variables with corresponding names (e.g. CPPFLAGS=...); providing them as arguments to the build system (e.g. configure). When applying compiler flags using build system arguments, a package must implement the 'flags_to_build_system_args" function. This is provided for CMake and autotools packages, so for packages which subclass those build systems, they need only update their flag handler method specify which compiler flags should be specified as arguments to the build system. Convenience methods are provided to specify that all flags be applied in one of the 3 available ways, so a custom implementation is only required if more than one method of applying compiler flags is needed. This also removes redundant build system definitions from tutorial examples * Fix type issues with setting flag handlers (#6960) The flag_handlers method was being set as a bound method, but when reset in the package.py file it was being set as an unbound method (all python2 issues). This gets the underlying function information, which is the same in either case. The bug was uncovered for parmetis in #6858. This is a partial fix. Included are changes to the parmetis package.py file to make use of flag_handlers. * Bump version to 0.11.1 * Added flags to unit tests + OSX build done once per day (#6988) * Adding flags to codecov reports * OSX builds are triggered once a day * Pull R list_urls from upstream. * travis: removed /usr/local/include/c++ before installing gcc on OSX (#6515) (#7027) "brew install gcc" fails for travis build because of an existing /usr/local/include/c++. This commit removes the offending file as suggested by brew. * Fix gfortran 7 detection (#7017) * Add NameError to exceptions caught from configure_args in module generation (#7173) * Revert "Binary caching: remove symlinks, copy files instead (#9747)" This reverts commit 058cf81312d07d13b0b6de9949c641892d50ad0b. * Make Spack relocate text files in build caches with relative binaries * add the tfel package * fix the tfel package * fix the tfel package * fix the tfel package * Taking Adam J. Steward' remarks into account * fixes trailing white spaces * Update description * Update dependencies following @adamjstewart adices * Style fixes * Style fixes * Add java optional support * add the maintainers attribute (following @alalazo advice), disable interface not selected (following @adamjstewart advice) * flake8 fixes * Fix Cast3M and python-bindings support. Python detection is made compatible with cmake'FindPythonLibs module (at least how it is used in TFEL) * Style fixes * Style fixes * Fix test on python version * Follow @adamjstewart advices: code is much cleaner and readable * Small fix * Small fix * Add comment * Small fix in cmake option * try again (trying to overcome Travis CI unstable build process) * Add support for the MFrontGenericInterfaceSupport project (MGIS) * Style fixes * Package documentation update * Package documentation update * Fix a typo thanks to Andreas Baumbach review * Follow Adam J. Stewart advices * Fix type * bugfix: add back r's for invalid regexes * tutorial basics section: fix gcc install version * version bump: v0.12.1 * bugfix: bring in .travis.yml from develop * Add new TFEL' versions (3.0.4, 3.1.4 and 3.2.1). Add new MGIS version (1.0.1). Fix MGIS dependency * merge with spack:develop * add missing dependency * new versions of and * Fix MGIS url. Fix duplicate variant in TFEL * Fix tfel packaging according to Adam J. Stewart' advices * Fix flake8 warning Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com> Co-authored-by: Todd Gamblin <tgamblin@llnl.gov> Co-authored-by: Peter Scheibel <scheibel1@llnl.gov> Co-authored-by: Greg Becker <becker33@llnl.gov> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mgis/package.py8
-rw-r--r--var/spack/repos/builtin/packages/tfel/package.py18
2 files changed, 22 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/mgis/package.py b/var/spack/repos/builtin/packages/mgis/package.py
index 79f25b20bf..c03680a7d6 100644
--- a/var/spack/repos/builtin/packages/mgis/package.py
+++ b/var/spack/repos/builtin/packages/mgis/package.py
@@ -18,15 +18,17 @@ class Mgis(CMakePackage):
"""
homepage = "https://thelfer.github.io/mgis/web/index.html"
- url = "https://github.com/thelfer/MFrontGenericInterfaceSupport/archive/MFrontGenericInterfaceSupport-1.0.tar.gz"
+ url = "https://github.com/thelfer/MFrontGenericInterfaceSupport/archive/MFrontGenericInterfaceSupport-1.1.tar.gz"
git = "https://github.com/thelfer/MFrontGenericInterfaceSupport.git"
maintainers = ['thelfer']
# development branches
version("master", branch="master")
+ version("rliv-1.1", branch="rliv-1.1")
version("rliv-1.0", branch="rliv-1.0")
# released version
+ version('1.1', sha256='06593d7a052678deaee87ef60b2213db7545c5be9823f261d3388b3978a0b7a5')
version('1.0.1', sha256='6102621455bc5d9b1591cd33e93b2e15a9572d2ce59ca6dfa30ba57ae1265c08')
version('1.0', sha256='279c98da00fa6855edf29c2b8f8bad6e7732298dc62ef67d028d6bbeaac043b3')
@@ -42,8 +44,10 @@ class Mgis(CMakePackage):
values=('Debug', 'Release'))
# dependencies
- depends_on('tfel@3.2.0', when="@1.0")
+ depends_on('tfel@3.3.0', when="@1.1")
depends_on('tfel@3.2.1', when="@1.0.1")
+ depends_on('tfel@3.2.0', when="@1.0")
+ depends_on('tfel@rliv-3.3', when="@rliv-1.1")
depends_on('tfel@rliv-3.2', when="@rliv-1.0")
depends_on('tfel@master', when="@master")
depends_on('boost+python+numpy', when='+python')
diff --git a/var/spack/repos/builtin/packages/tfel/package.py b/var/spack/repos/builtin/packages/tfel/package.py
index f3406801ed..86305d69f8 100644
--- a/var/spack/repos/builtin/packages/tfel/package.py
+++ b/var/spack/repos/builtin/packages/tfel/package.py
@@ -29,12 +29,13 @@ class Tfel(CMakePackage):
"""
homepage = "http://tfel.sourceforge.net"
- url = "https://github.com/thelfer/tfel/archive/TFEL-3.2.0.tar.gz"
+ url = "https://github.com/thelfer/tfel/archive/TFEL-3.3.0.tar.gz"
git = "https://github.com/thelfer/tfel.git"
maintainers = ['thelfer']
# development branches
version("master", branch="master")
+ version("rliv-3.3", branch="rliv-3.3")
version("rliv-3.2", branch="rliv-3.2")
version("rliv-3.1", branch="rliv-3.1")
version("rliv-3.0", branch="rliv-3.0")
@@ -42,13 +43,17 @@ class Tfel(CMakePackage):
version("rliv-1.2", branch="rliv-1.2")
# released version
+ version('3.3.0', sha256='884ad68b0fbbededc3a602d559433c24114ae4534dc9f0a759d31ca3589dace0')
+ version('3.2.2', sha256='69b01ae0d1f9140b619aaa9135948284ff40d4654672c335e55ab4934c02eb43')
version('3.2.1', sha256='12786480524a7fe86889120fb334fa00211dfd44ad5ec71e2279e7adf1ddc807')
version('3.2.0', sha256='089d79745e9f267a2bd03dcd8841d484e668bd27f5cc2ff7453634cb39016848')
+ version('3.1.5', sha256='e22cf2110f19666f004b8acda32e87beae74721f82e7f83fd0c4fafb86812763')
version('3.1.4', sha256='8dc2904fc930636976baaf7e91ac89c0377afb1629c336343dfad8ab651cf87d')
version('3.1.3', sha256='2022fa183d2c2902ada982ec6550ebe15befafcb748fd988fc9accdde7976a42')
version('3.1.2', sha256='2eaa191f0699031786d8845ac769320a42c7e035991d82b3738289886006bfba')
version('3.1.1', sha256='a4c0c21c6c22752cc90c82295a6bafe637b3395736c66fcdfcfe4aeccb5be7af')
version('3.1.0', sha256='dd67b400b5f157aef503aa3615b9bf6b52333876a29e75966f94ee3f79ab37ad')
+ version('3.0.5', sha256='abf58f87962cf98b6129e873a841819a2a751f2ebd4e08490eb89fb933cd7887')
version('3.0.4', sha256='e832d421a0dc9f315c60c5ea23f958dcaa299913c50a4eb73bde0e053067a3cc')
version('3.0.3', sha256='3ff1c14bcc27e9b615aab5748eaf3afac349050b27b55a2b57648aba28b801ac')
version('3.0.2', sha256='edd54ac652e99621410137ea2f7f90f133067615a17840440690365e2c3906f5')
@@ -81,6 +86,12 @@ class Tfel(CMakePackage):
variant('java', default=False,
description='Enables java interface')
+ # only since TFEL-3.3, no effect on version below
+ variant('comsol', default=True,
+ description='Enables comsol interface')
+ variant('diana-fea', default=True,
+ description='Enables DIANA-FEA interface')
+
variant('build_type', default='Release',
description='The build type to build',
values=('Debug', 'Release'))
@@ -99,7 +110,8 @@ class Tfel(CMakePackage):
args = []
for i in ['fortran', 'java', 'aster', 'abaqus', 'calculix',
- 'ansys', 'europlexus', 'cyrano', 'lsdyna', 'python']:
+ 'ansys', 'europlexus', 'cyrano', 'lsdyna', 'python',
+ 'comsol', 'diana-fea']:
if '+' + i in self.spec:
args.append("-Denable-{0}=ON".format(i))
else:
@@ -128,5 +140,7 @@ class Tfel(CMakePackage):
if '+python_bindings' in self.spec:
args.append('-DBOOST_ROOT={0}'.
format(self.spec['boost'].prefix))
+ args.append('-DBoost_NO_SYSTEM_PATHS=ON')
+ args.append('-DBoost_NO_BOOST_CMAKE=ON')
return args