summaryrefslogtreecommitdiff
path: root/sys-cluster
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-09 03:04:44 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-09 03:04:44 -0500
commitdd4dbff7d90d19cb3b8a4657236e598887ffbd41 (patch)
treefc3717b00180b43464a834fd1f3c9442f57ae45a /sys-cluster
parent23850c0a8390d403a1fe131e47265df579818dd5 (diff)
downloadbaldeagleos-repo-dd4dbff7d90d19cb3b8a4657236e598887ffbd41.tar.gz
baldeagleos-repo-dd4dbff7d90d19cb3b8a4657236e598887ffbd41.tar.xz
baldeagleos-repo-dd4dbff7d90d19cb3b8a4657236e598887ffbd41.zip
Adding metadata
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/lmod/Manifest1
-rw-r--r--sys-cluster/lmod/lmod-9.4.ebuild150
2 files changed, 151 insertions, 0 deletions
diff --git a/sys-cluster/lmod/Manifest b/sys-cluster/lmod/Manifest
index 3b76eed2f158..e3eeb37a3c37 100644
--- a/sys-cluster/lmod/Manifest
+++ b/sys-cluster/lmod/Manifest
@@ -10,3 +10,4 @@ DIST lmod-9.2.1.tar.gz 35593011 BLAKE2B b6bfa7842b6e4a3e75d2932f3431bfdd485caaff
DIST lmod-9.2.2.tar.gz 35593465 BLAKE2B c861b3388e4159329bd4d1b21eed899a2a71126f0cb4bfd338ce428b9f6f0c5383d1057ebb2d8a2de9326b0cc426dac9bfbc02e20853e0bccdf8e135d0dfaf06 SHA512 a61d83abaccbd0874cb0ddd7066f224f38f1e9dbe1e0ea0c2ae588e22ab3415e1d29aa85f0a1e73bb665ac076c53b0b881f218986884d8439b553918edda29cd
DIST lmod-9.2.4.tar.gz 35611799 BLAKE2B 74b1969600ee3367ce022969a288ebaa78934c1b0187e7309c93cd1c436e34db361c804533e73fa3a38598e1cf21c37cdcc410e706cef0f57acfffce52f8b538 SHA512 5de7049f5ab48d83642946ca121f287330f735ac75936172522fc86b9dc9e1244ce345055c16f82ae59f73f0f89109efeeb67ffc11913a6bd0e8167bbb26f0fe
DIST lmod-9.2.tar.gz 34130784 BLAKE2B d6e2d936d60c396a7c308590c2c908ddc7f5e2dd6a271d51dc5f76e8308866ca733565301e98f2beae996b8debb39e7de566d39b7f7720c042d94f14cfcd3ee1 SHA512 46d0a3b1e51c70249c03a4fce8c4664a3b882bd7b56277a141c14cdd81b49c8ade92b63a7b65ada327ec5d6bc23ece0e17045d9a3c0821ec05f91bb1c31fbda1
+DIST lmod-9.4.tar.gz 35642279 BLAKE2B 3c65429de57a59c3fc92128c07cbf210475c45fa3db18055a7d8630a2e7d842fc11b92eba273ba85bcd45a37398dabd741d520319e3399a02a726694a6d35550 SHA512 eb143cdf147ef42e7cda6eeb97adc6043d2124970f664eb3764abd80cd9fdf1e0b4c7bb92160c9d4c075580c5b4390caa0f6dd193fc3cc31094c6fefcf684b56
diff --git a/sys-cluster/lmod/lmod-9.4.ebuild b/sys-cluster/lmod/lmod-9.4.ebuild
new file mode 100644
index 000000000000..0fa7b8397c08
--- /dev/null
+++ b/sys-cluster/lmod/lmod-9.4.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1,3,4} luajit )
+inherit autotools lua-single prefix
+
+DESCRIPTION="Environment Module System based on Lua"
+HOMEPAGE="https://lmod.readthedocs.io/en/latest https://github.com/TACC/Lmod"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/TACC/Lmod"
+else
+ SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/Lmod-${PV}
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="+auto-swap +cache duplicate-paths test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}
+ dev-lang/tcl
+ dev-lang/tk
+ $(lua_gen_cond_dep '
+ >=dev-lua/luafilesystem-1.8.0[${LUA_USEDEP}]
+ dev-lua/luajson[${LUA_USEDEP}]
+ dev-lua/luaposix[${LUA_USEDEP}]
+ dev-lua/lua-term[${LUA_USEDEP}]
+ ')
+"
+BDEPEND="${RDEPEND}
+ app-alternatives/bc
+ test? (
+ >=dev-util/hermes-3.1[${LUA_SINGLE_USEDEP}]
+ app-shells/tcsh
+ )
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.4.19-no-libsandbox.patch
+ "${FILESDIR}"/${PN}-8.7.55-make.patch
+)
+
+pkg_pretend() {
+ elog "You can control the siteName and syshost settings by"
+ elog "using the variables LMOD_SITENAME and LMOD_SYSHOST, during"
+ elog "build time, which are both set to 'Gentoo' by default."
+ elog "There are a lot of options for this package, especially"
+ elog "for run time behaviour. Remember to use the EXTRA_ECONF variable."
+ elog "To see full list of options visit:"
+ elog "\t https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html"
+}
+
+src_prepare() {
+ default
+ rm -r rt/end2end || die # should run in a git repository
+ hprefixify -w '/#\!\/bin\/tcsh/' rt/csh_swap/csh_swap.tdesc || die
+ eautoreconf
+ sed -i \
+ -e "1s|#!/usr/bin/env lua|#!${LUA}|" \
+ proj_mgmt/joinBase64Results \
+ proj_mgmt/clean_gold_files/regularize \
+ || die
+ sed -i \
+ -e "s| lua| ${LUA}|" \
+ rt/csh_swap/csh_swap.tdesc \
+ || die
+ sed -i \
+ -e "/prepend_path/d" \
+ rt/changeMPATH/mf/Core/admin/admin-1.0.lua \
+ rt/changeMPATH/mf/Core2/admin/admin-1.0.lua \
+ || die
+}
+
+src_configure() {
+ local LMOD_SITENAME="${LMOD_SITENAME:-Gentoo}"
+ local LMOD_SYSHOST="${LMOD_SYSHOST:-Gentoo}"
+
+ local LUAC="${LUA%/*}/luac${LUA#*lua}"
+
+ local myconf=(
+ --with-tcl
+ --with-fastTCLInterp
+ --with-colorize
+ --with-supportKsh
+ --without-useBuiltinPkgs
+ --with-siteControlPrefix
+ --with-siteName="${LMOD_SITENAME}"
+ --with-syshost="${LMOD_SYSHOST}"
+ --with-lua_include="$(lua_get_include_dir)"
+ --with-lua="${LUA}"
+ --with-luac="${LUAC}"
+ --with-module-root-path="${EPREFIX}/etc/modulefiles"
+ --with-spiderCacheDir="${EPREFIX}/etc/lmod_cache/spider_cache"
+ --with-updateSystemFn="${EPREFIX}/etc/lmod_cache/system.txt"
+ --prefix="${EPREFIX}/usr/share/Lmod"
+ --with-caseIndependentSorting
+ --without-hiddenItalic
+ --with-exportedModuleCmd
+ --without-redirect
+ --with-extendedDefault
+ $(use_with cache cachedLoads)
+ $(use_with duplicate-paths duplicatePaths)
+ $(use_with auto-swap autoSwap)
+ )
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
+ default
+}
+
+src_test() {
+ # With current version test pass only when we eselect
+ # the 5.1 version of lua
+ local -x PATH="${EPREFIX}/opt/hermes/bin:${PATH}"
+ tm -vvv || die
+ testcleanup || die
+}
+
+src_install() {
+ dosym -r /usr/share/Lmod/init/profile /etc/bash/bashrc.d/z00_lmod.sh
+ dosym -r /usr/share/Lmod/init/profile /etc/profile.d/z00_lmod.sh
+ dosym -r /usr/share/Lmod/init/cshrc /etc/profile.d/z00_lmod.csh
+ dosym -r /usr/share/Lmod/init/profile.fish /etc/fish/conf.d/z00_lmod.fish
+ default
+ newman "${FILESDIR}"/module.1-8.4.20 module.1
+ # not a real man page
+ rm -r "${ED}"/usr/share/Lmod/share/man || die
+ doenvd "${FILESDIR}"/99lmod
+ keepdir /etc/modulefiles
+ keepdir /etc/lmod_cache
+}
+
+pkg_postinst() {
+ if use cache ; then
+ elog "Lmod spider cache has been enabled."
+ elog "Remember to update the spider cache with"
+ elog "/usr/share/Lmod/libexec/update_lmod_system_cache_files \ "
+ elog "\t \$MODULEPATH"
+ fi
+}