Merge branch 'master' of gitlab.psi.ch:Pmodules/buildblocks

This commit is contained in:
2017-04-24 08:31:17 +02:00
9 changed files with 48 additions and 3 deletions

View File

@@ -16,3 +16,4 @@ boost/1.62.0 stable gcc/4.9.4 Python/2.7.12
boost/1.62.0 stable gcc/5.4.0 Python/2.7.12
boost/1.62.0 stable gcc/6.2.0 Python/2.7.12
boost/1.62.0 unstable gcc/6.3.0 Python/2.7.12
boost/1.63.0 stable gcc/6.3.0 Python/2.7.12

View File

@@ -4,5 +4,6 @@ openmpi/2.0.1 stable gcc/4.8.5
openmpi/2.0.1 stable gcc/4.9.4
openmpi/2.0.1 stable gcc/5.4.0
openmpi/2.0.1 stable gcc/6.2.0
openmpi/2.0.1 stable gcc/6.3.0
openmpi/2.0.0 stable intel/16.3

View File

@@ -1,3 +1,4 @@
gmp/6.0.0 stable
gmp/6.1.0 stable
gmp/6.1.1 stable
gmp/6.1.2 stable

View File

@@ -2,3 +2,4 @@ mpfr/3.1.2 stable b:gmp/5.1.1
mpfr/3.1.3 stable b:gmp/6.0.0
mpfr/3.1.4 stable b:gmp/6.1.0
mpfr/3.1.4-1 stable b:gmp/6.1.1
mpfr/3.1.5 stable b:gmp/6.1.2

View File

@@ -1,4 +1,4 @@
OPAL/1.5.0-20161209 unstable gcc/5.4.0 openmpi/1.10.4 dks/1.0.1 boost/1.62.0 hdf5/1.8.18 H5hut/2.0.0rc3 gsl/2.2.1 trilinos/12.10.1 cuda/8.0.44 b:cmake/3.6.3 b:OpenBLAS/0.2.19
OPAL/1.5.0-20170126 unstable gcc/5.4.0 openmpi/1.10.4 dks/1.0.1 boost/1.62.0 hdf5/1.8.18 H5hut/2.0.0rc3 gsl/2.2.1 trilinos/12.10.1 cuda/8.0.44 b:cmake/3.6.3 b:OpenBLAS/0.2.19
OPAL/1.5.1-20170210 unstable gcc/5.4.0 openmpi/1.10.4 dks/1.0.1 boost/1.62.0 hdf5/1.8.18 H5hut/2.0.0rc3 gsl/2.2.1 trilinos/12.10.1 cuda/8.0.44 b:cmake/3.6.3 b:OpenBLAS/0.2.19
OPAL/1.5.1-20170216 unstable gcc/5.4.0 openmpi/1.10.4 dks/1.0.1 boost/1.62.0 hdf5/1.8.18 H5hut/2.0.0rc3 gsl/2.2.1 trilinos/12.10.1 cuda/8.0.44 b:cmake/3.6.3 b:OpenBLAS/0.2.19

View File

@@ -1,2 +1,3 @@
gcc/6.1.0 stable b:gmp/6.1.0 b:mpfr/3.1.4 b:mpc/1.0.3
gcc/6.2.0 stable b:gmp/6.1.1 b:mpfr/3.1.4 b:mpc/1.0.3
gcc/6.3.0 stable b:gmp/6.1.2 b:mpfr/3.1.5 b:mpc/1.0.3

View File

@@ -0,0 +1 @@
gtest/1.7.0 unstable b:cmake

View File

@@ -1,7 +1,36 @@
#!/usr/bin/env modbuild
declare -a config_args=()
pbuild::set_docfiles \
CHANGES \
CONTRIBUTORS \
LICENSE \
README
pbuild::configure() {
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
"${config_args[@]}" \
"${MODULE_SRCDIR}"
}
pbuild::install() {
local -r _include_srcdir="${MODULE_SRCDIR}/include/gtest"
local -r _include_dstdir="${PREFIX}/include"
if [[ -e "${_include_dstdir}" ]]; then
chmod -R u+w "${_include_dstdir}"
fi
mkdir -p "${_include_dstdir}"
cp -rv "${_include_srcdir}"/* "${_include_dstdir}"
local -r _lib_dstdir="${PREFIX}/lib"
mkdir -p "${_lib_dstdir}"
cp -v *.a "${_lib_dstdir}"
}
pbuild::add_to_group 'Programming'
pbuild::set_runtime_dependencies ""
pbuild::set_build_dependencies "${COMPILER}"
pbuild::make_all

View File

@@ -0,0 +1,10 @@
#%Module1.0
module-whatis "Google's C++ test framework"
module-url "https://github.com/google/googletest/"
module-license "See ${PREFIX}/share/doc/gtest/LICENSE"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
See https://github.com/google/googletest/blob/master/googletest/docs/Primer.md
"