build-block:
- use modbuild in shebang - refactor function calls
This commit is contained in:
1 parent
bc9e63799e
commit
1434c8a886
1 file changed
+7
-9
@@ -1,12 +1,10 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
source $(dirname $0)/../../../lib/libpmodules.bash
|
||||
|
||||
pmodules.pre_configure() {
|
||||
pbuild::pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
pmodules.configure() {
|
||||
pbuild::configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-h5hut \
|
||||
@@ -15,8 +13,8 @@ pmodules.configure() {
|
||||
--with-pic
|
||||
}
|
||||
|
||||
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
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
|
||||
pbuild::set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
|
||||
pbuild::make_all
|
||||
|
||||
Reference in new issue
Block a user