portage: add v1.2.2 (#11842)
* portage: add v1.2.2 * Update package.py * Update package.py * Update package.py * Update package.py * flake8
This commit is contained in:
parent
ff877a567e
commit
d6ecc29e4b
10
var/spack/repos/builtin/packages/portage/gcc-7.patch
Normal file
10
var/spack/repos/builtin/packages/portage/gcc-7.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- portage/portage/interpolate/interpolate_1st_order.h.orig 2019-06-19 13:52:51.930855056 -0600
|
||||
+++ portage/portage/interpolate/interpolate_1st_order.h 2019-06-19 13:53:05.087946460 -0600
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
+#include <math.h>
|
||||
|
||||
#include "portage/support/portage.h"
|
||||
|
@ -0,0 +1,17 @@
|
||||
diff -Naur portage.orig/cinch/cmake/FindLAPACKE.cmake portage/cinch/cmake/FindLAPACKE.cmake
|
||||
--- portage.orig/cinch/cmake/FindLAPACKE.cmake 2018-07-27 14:38:17.894800000 -0600
|
||||
+++ portage/cinch/cmake/FindLAPACKE.cmake 2018-08-01 10:14:59.880569000 -0600
|
||||
@@ -13,11 +13,12 @@
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
+set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON)
|
||||
pkg_check_modules(PC_LAPACKE lapacke)
|
||||
|
||||
find_path(LAPACKE_INCLUDE_DIR lapacke.h HINTS ${PC_LAPACKE_NCLUDE_DIRS} PATH_SUFFIXES lapacke)
|
||||
|
||||
-find_library(LAPACKE_LIBRARY NAMES lapacke ${PC_LAPACKE_LIBRARIES} HINTS ${PC_LAPACKE_LIBRARY_DIRS} )
|
||||
+find_library(LAPACKE_LIBRARY NAMES lapacke openblas ${PC_LAPACKE_LIBRARIES} HINTS ${PC_LAPACKE_LIBRARY_DIRS} )
|
||||
|
||||
find_package(LAPACK)
|
||||
|
@ -17,14 +17,23 @@ class Portage(CMakePackage):
|
||||
|
||||
# tarballs don't have submodules, so use git tags
|
||||
version('develop', branch='master', submodules=True)
|
||||
version('1.2.2', tag='v1.2.2', submodules=True)
|
||||
version('1.1.1', tag='v1.1.1', submodules=True)
|
||||
version('1.1.0', tag='v1.1.0', submodules=True)
|
||||
|
||||
# fabs() needs math.h for gcc-7, got fixed in
|
||||
# versions above 1.2.2
|
||||
patch('gcc-7.patch', when='@:1.2.2 %gcc@7:')
|
||||
# part of https://github.com/laristra/cinch/commit/f87f848269fac25aa5b8d0bd5d9c9b2d2d6fb0ad
|
||||
# fixed in version above 1.2.2
|
||||
patch('p_lapacke_config.patch', when='@1.2.2')
|
||||
|
||||
variant('mpi', default=True, description='Support MPI')
|
||||
|
||||
depends_on("cmake@3.1:", type='build')
|
||||
depends_on('mpi', when='+mpi')
|
||||
depends_on('lapack')
|
||||
depends_on('boost')
|
||||
|
||||
def cmake_args(self):
|
||||
options = ['-DENABLE_UNIT_TESTS=ON', '-DENABLE_APP_TESTS=ON']
|
||||
|
Loading…
Reference in New Issue
Block a user