- em.xyz renamed to pmodules.xxy

- underscore removed as prefix of function names
- keyword function removed
This commit is contained in:
2015-06-04 20:38:33 +02:00
parent e26a9fae7f
commit b129a8d05d
68 changed files with 522 additions and 522 deletions

View File

@@ -1,12 +1,12 @@
#!/bin/bash
source $(dirname $0)/../../../lib/libem.bash
source $(dirname $0)/../../../lib/libpmodules.bash
function em.pre_configure() {
pmodules.pre_configure() {
./autogen.sh
}
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-h5hut \
@@ -15,8 +15,8 @@ function em.configure() {
--with-pic
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
em.set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
pmodules.set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
pmodules.make_all

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
SHELL = /bin/sh
PLAT =
@@ -25,12 +25,12 @@ COMMON_PROF = -pg
EOF
}
function em.build() {
pmodules.build() {
cd "${MODULE_SRCDIR}"
make
}
function em.install() {
pmodules.install() {
make PREFIX="${PREFIX}" install
# We have to build shared libs and remove them here.
# Building with NOSHARED gives an error during install -
@@ -40,10 +40,10 @@ function em.install() {
#( cd "${PREFIX}/lib"; ln -fs
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.set_docfiles 'LICENSE' 'README.md'
em.set_supported_compilers 'gcc'
em.make_all
em.cleanup_src
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.set_docfiles 'LICENSE' 'README.md'
pmodules.set_supported_compilers 'gcc'
pmodules.make_all
pmodules.cleanup_src

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
SHELL = /bin/sh
PLAT =
@@ -25,12 +25,12 @@ COMMON_PROF = -pg
EOF
}
function em.build() {
pmodules.build() {
cd "${MODULE_SRCDIR}"
make
}
function em.install() {
pmodules.install() {
make PREFIX="${PREFIX}" install
# We have to build shared libs and remove them here.
# Building with NOSHARED gives an error during install -
@@ -40,10 +40,10 @@ function em.install() {
#( cd "${PREFIX}/lib"; ln -fs
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.set_docfiles 'LICENSE' 'README.md'
em.set_supported_compilers 'gcc'
em.make_all
em.cleanup_src
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.set_docfiles 'LICENSE' 'README.md'
pmodules.set_supported_compilers 'gcc'
pmodules.make_all
pmodules.cleanup_src

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
PLAT =
SuperLUroot = \${PREFIX}
@@ -28,21 +28,21 @@ CDEFS = -DAdd_
EOF
}
function em.build() {
pmodules.build() {
cd "${MODULE_SRCDIR}"
mkdir -p "${PREFIX}/lib"
make
}
function em.install() {
pmodules.install() {
make install
mkdir -p "${PREFIX}/include"
install -m 0444 "${MODULE_SRCDIR}"/SRC/*.h "${PREFIX}/include"
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" 'OpenBLAS'
em.set_docfiles 'README'
em.make_all
em.cleanup_src
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}" 'OpenBLAS'
pmodules.set_docfiles 'README'
pmodules.make_all
pmodules.cleanup_src

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
cat <<EOF > "${MODULE_SRCDIR}/SuiteSparse_config/SuiteSparse_config.mk"
CF = \$(CFLAGS) \$(CPPFLAGS) \$(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER
RANLIB = ranlib
@@ -26,19 +26,19 @@ TBB =
EOF
}
function em.build() {
pmodules.build() {
cd "${MODULE_SRCDIR}/UMFPACK"
make TARGET=CORE2 BINARY=64 USE_THREAD=0 NO_SHARED=1
}
function em.install() {
pmodules.install() {
install -d "${PREFIX}/include"
install -d "${PREFIX}/lib"
make PREFIX="${PREFIX}" install
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" 'OpenBLAS'
em.set_build_dependencies "${COMPILER}" 'OpenBLAS'
em.make_all
#em.cleanup_src
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}" 'OpenBLAS'
pmodules.set_build_dependencies "${COMPILER}" 'OpenBLAS'
pmodules.make_all
#pmodules.cleanup_src

View File

@@ -1,17 +1,17 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.make_all
# Local Variables:
# mode: sh

View File

@@ -1,21 +1,20 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
# :TODO: detect compiler
TOOLSET=gcc
function em.configure() {
pmodules.configure() {
cd "${MODULE_SRCDIR}"
"${MODULE_SRCDIR}"/bootstrap.sh \
--prefix="${PREFIX}" \
--with-toolset=${TOOLSET} \
--with-libraries=all \
--with-python-root="${PYTHON_PREFIX}" \
|| exit 1
}
function em.build() {
pmodules.build() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
@@ -28,7 +27,7 @@ function em.build() {
stage
}
function em.install() {
pmodules.install() {
cd "${MODULE_SRCDIR}"
./b2 \
--build-type=minimal \
@@ -41,8 +40,8 @@ function em.install() {
install
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" 'Python'
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}" 'Python'
pmodules.make_all

View File

@@ -1,15 +1,15 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
em.add_to_family 'Compiler'
em.set_docfiles \
pmodules.add_to_group 'Compiler'
pmodules.set_docfiles \
'AUTHORS' \
'BUGS' \
'COPYING' \
@@ -20,9 +20,9 @@ em.set_docfiles \
'THANKS' \
'TODO'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.make_all
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.make_all
# Local Variables:
# mode: sh

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-shared \
@@ -12,8 +12,8 @@ function em.configure() {
|| exit 1
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.make_all

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
unset F90
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
@@ -12,8 +12,8 @@ function em.configure() {
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.set_docfiles 'COPYRIGHT' 'README'
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.set_docfiles 'COPYRIGHT' 'README'
pmodules.make_all

View File

@@ -1,8 +1,8 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-mpi-cxx \
@@ -15,8 +15,8 @@ function em.configure() {
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.set_docfiles 'AUTHORS' 'LICENSE' 'NEWS' 'README'
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.set_docfiles 'AUTHORS' 'LICENSE' 'NEWS' 'README'
pmodules.make_all

View File

@@ -1,6 +1,6 @@
#!/bin/bash
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
case ${OS} in
Darwin )
@@ -12,7 +12,7 @@ Darwin )
;;
esac
function em.configure() {
pmodules.configure() {
"${MODULE_SRCDIR}"/configure \
--disable-ldap \
--disable-mysql \
@@ -27,11 +27,11 @@ function em.configure() {
|| exit 1
}
function em.build() {
pmodules.build() {
make -j 4
}
function em.install() {
pmodules.install() {
make clean
rm -f Makefile
@@ -66,7 +66,7 @@ function em.install() {
mv "${PREFIX}/README" "${DOCDIR}"
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}"
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies "${COMPILER}"
pmodules.make_all

View File

@@ -6,11 +6,11 @@
# and remove these strings.
#
source "$(dirname $0)/../../../lib/libem.bash"
source "$(dirname $0)/../../../lib/libpmodules.bash"
case ${OS} in
Darwin )
em.pre_configure() {
pmodules.pre_configure() {
# for the time being: on Mac OS X we need GL/gl.h from MacPorts:
append_path C_INLCUDE_PATH '/opt/local/include'
append_path CPLUS_INCLUDE_PATH '/opt/local/include'
@@ -18,7 +18,7 @@ Darwin )
;;
esac
function em.configure() {
pmodules.configure() {
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
-DVTK_INSTALL_INCLUDE_DIR:PATH=include \
-DVTK_INSTALL_LIB_DIR:PATH=lib \
@@ -26,8 +26,8 @@ function em.configure() {
"${MODULE_SRCDIR}"
}
em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies 'cmake' "${COMPILER}"
em.make_all
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies 'cmake' "${COMPILER}"
pmodules.make_all