Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mkit.profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ profile_bzip2()
add_run_dep bzip2
}

profile_cantera()
{
add_run_dep fmt
add_run_dep cantera
}

profile_proj()
{
profile_curl
Expand Down
24 changes: 24 additions & 0 deletions modules/cantera/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# cantera
#
build_cantera()
{
typeset rc local_venv
[ -z "$VIRTUAL_ENV" ] &&
{
local_venv="/tmp/venv_$RANDOM"

mkdir "$local_venv" && python3 -m venv "$local_venv" && . "$local_venv/bin/activate"
[ $? -ne 0 ] && return 1
}

pip3 install scons numpy cython wheel && # this should be run in a virtualenv
scons build optimize=n prefix="$prefix" -f "$srcdir_cantera/SConstruct"
rc=$?

[ -d "$local_venv" ] &&
{
rm -rf "$local_venv"
}
return $rc
}
6 changes: 6 additions & 0 deletions modules/fmt/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build_fmt()
{
build_raw_lite fmt

return $?
}
4 changes: 4 additions & 0 deletions modules/fmt/hooks/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# generate Makefiles with cmake/"bootstrap"

cd ${BUILDDIR}/fmt
cmake "${srcdir_fmt}" -DCMAKE_INSTALL_PREFIX=${prefix}