#%Module #########
set is_module_rm [module-info mode remove]

#---- whatis is used by module apropos
module-whatis   "Set environnement for SLiPP (2024)"


#---- module help message
proc ModulesHelp { } {
  puts stderr "This modulefile defines the requisite environement"
  puts stderr "needed to use package: SLiPP version (2024)"
  puts stderr ""
  puts stderr "extracts pocket information from given protein models and predict the possibility of the pocket being lipid-binding pockets through machine learning."
  puts stderr "URL: https://github.com/dassamalab/SLiPP_2024"
  puts stderr ""
  puts stderr "WARNING: SLiPP requires module(s) < fpocket >. to be loaded first"
  puts stderr ""
  ## is there any program to document.
  puts stderr "package provides following commands:"
  puts stderr "\tslipp.py"
  puts stderr ""
}


#---- hack for auto-loading module based on AUTOLOADMODULE env var
if {[info exists env(AUTOLOADMODULE)]} {
     module load  fpocket
}
#---- check for prereq modules
if { [ module-info mode load ] && ! (  [ is-loaded "fpocket" ] )} {
    puts stderr "error: SLiPP requires module(s) < fpocket > to be loaded first"
    exit
}

#---- set PATHs.
prepend-path PATH   /opt/gensoft/exe/SLiPP/2024/bin 

#---- set library path

#---- set pkgconfig path

#---- set CMAKE_PREFIX_PATH


#---- set include path

#---- prepend specified env var

#---- set ACLOCAL_PATH

#---- export usefull variables

#---- export aliases

