mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-26 17:43:09 +02:00
Lua and Lmod recipes added
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# https://
|
||||
#
|
||||
P=lua
|
||||
V=${LUA_VERSION:-5.4.6}
|
||||
FNAME="$P-$V.tar.gz"
|
||||
DOWNLOAD_URL="http://www.lua.org/ftp/$P-$V.tar.gz"
|
||||
|
||||
source "$(dirname "$0")/librecipes.bash"
|
||||
|
||||
#---
|
||||
# configure
|
||||
|
||||
LUA_PREFIX="${PREFIX}/libexec/lua"
|
||||
export INSTALL_TOP="${LUA_PREFIX}"
|
||||
PATH="${LUA_PREFIX}/bin:$PATH"
|
||||
sed -i "s;/usr/local/;${INSTALL_TOP}/;" "${SRC_DIR}/src/luaconf.h"
|
||||
#---
|
||||
# compile & install
|
||||
make -e -j ${NJOBS} || exit ${PB_ERR_MAKE}
|
||||
make -e install || exit ${PB_ERR_INSTALL}
|
||||
|
||||
#---
|
||||
# post-install
|
||||
|
||||
#---
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# https://
|
||||
#
|
||||
P=luarocks
|
||||
V=${LUAROCKS_VERSION:-3.9.2}
|
||||
FNAME="$P-$V.tar.gz"
|
||||
DOWNLOAD_URL="https://luarocks.org/releases/$P-$V.tar.gz"
|
||||
|
||||
source "$(dirname "$0")/librecipes.bash"
|
||||
|
||||
#---
|
||||
# configure
|
||||
LUA_PREFIX="${PREFIX}/libexec/lua"
|
||||
PATH="${LUA_PREFIX}/bin:$PATH"
|
||||
"${SRC_DIR}"/configure \
|
||||
--prefix="${LUA_PREFIX}" \
|
||||
|
||||
|
||||
#---
|
||||
# compile & install
|
||||
make -e -j ${NJOBS} || exit ${PB_ERR_MAKE}
|
||||
make -e install || exit ${PB_ERR_INSTALL}
|
||||
|
||||
#---
|
||||
# post-install
|
||||
|
||||
#---
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# https://
|
||||
#
|
||||
#---
|
||||
LUA_PREFIX="${PREFIX}/libexec/lua"
|
||||
PATH="${LUA_PREFIX}/bin:$PATH"
|
||||
|
||||
luarocks install luaposix
|
||||
|
||||
#---
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Executable
+55
@@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# https://
|
||||
#
|
||||
P=lmod
|
||||
V=${LMOD_VERSION:-8.7}
|
||||
FNAME="$P-$V.tar.gz"
|
||||
DOWNLOAD_URL="https://sourceforge.net/projects/lmod/files/Lmod-$V.tar.bz2/download"
|
||||
|
||||
source "$(dirname "$0")/librecipes.bash"
|
||||
|
||||
#---
|
||||
# configure
|
||||
mkdir -p "${BUILD_DIR}" && cd "$_" || exit ${PB_ERR_SYSTEM}
|
||||
case $(uname -s) in
|
||||
Linux )
|
||||
: declare -x LIBS="-lz -lpthread"
|
||||
;;
|
||||
Darwin )
|
||||
: declare -x LIBS="-lz -framework CoreFoundation"
|
||||
;;
|
||||
* )
|
||||
echo "Oops: unsupported OS!" 1>&2
|
||||
exit ${PB_ERR_SYSTEM}
|
||||
;;
|
||||
esac
|
||||
|
||||
#export C_INCLUDE_PATH+=":${PREFIX}/include"
|
||||
#export LIBRARY_PATH+=":${PREFIX}/lib"
|
||||
#export TCL_INCLUDE="${PREFIX}/include/tcl.h"
|
||||
#export TCL_LIBS="${PREFIX}/lib/libtcl8.6.a"
|
||||
|
||||
PATH="${PREFIX}/libexec/lua/bin:$PAT:$PATH"
|
||||
LMOD_PREFIX="${PREFIX}/libexec"
|
||||
"${SRC_DIR}"/configure \
|
||||
--prefix="${LMOD_PREFIX}" \
|
||||
--exec-prefix="${LMOD_PREFIX}" \
|
||||
--with-module-path="${PREFIX%%/Tools*}/Tools/${PMODULES_MODULEFILES_DIR}" \
|
||||
--with-fastTCLInterp=no \
|
||||
|| exit ${PB_ERR_CONFIGURE}
|
||||
|
||||
#---
|
||||
# compile & install
|
||||
make -j ${NJOBS} || exit ${PB_ERR_MAKE}
|
||||
make install || exit ${PB_ERR_INSTALL}
|
||||
|
||||
#---
|
||||
# post-install
|
||||
|
||||
#---
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Reference in New Issue
Block a user