mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sys-cluster/lmod: add 9.0.8
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST lmod-8.7.60-load-err.txt 24381 BLAKE2B e6ac02394163d23a8ad8ce1d8a86a5c0f612
|
||||
DIST lmod-8.7.60.tar.gz 30818169 BLAKE2B 988301d4aaaf22487d974575ba4a002dd7a0a05ec0bd1ffe64f38b4b95037a40204f521238ad34f923115da45ecb2ec63952de4348351de83ca7e48f12704c92 SHA512 3b4683f7869ec9886deba5a5548169b48c74044718b22818e49c1b901b84088398cecc0dd7d38074ed331fd0cf86f1bfe26ec7747032a8ead67e3c53ac1671d6
|
||||
DIST lmod-8.7.64.tar.gz 30862730 BLAKE2B 65a1b4917153942dfa1f02bed4520906356534d5c900c5e066af18e738d60243a39bc846a4ab282d6b761212beac51c12d7ae2f4da0c770486127fd458885d7b SHA512 099ee06573499fdda18b8c6abeecafca4311b2b728c94a951c8e4f4128ff55cd315a26911c66578410170a17b4b51fa17743cd945fed0462d6f883be074ab15b
|
||||
DIST lmod-8.7.67.tar.gz 30877151 BLAKE2B fb8953d1105152bb7e492983e10895092f0767818a6b49610a4a82cf545c33fbe718f9e8dc89e0a2156aff219d2884983505efdd47250805cf3f0981ab40eab5 SHA512 00a340ea934f476cac7c68b37bbf6877655bbeb86b33a6db4191b806f75f6d9de4c41eec6ac23de907ab21edcb7f22cafe25a64e1a314816089c51317cb58c57
|
||||
DIST lmod-9.0.3-load-err.txt 24370 BLAKE2B 334fbd31610a4781d0e15ce241b9a1e7e6ad7320af054ae6d5683f8d40bc5ec11b12a6f59f92eda3a465f1e1d0e2497c23de3960d2e29fc49886061f836e7a8b SHA512 bc14aeabd010dc8fba3bc290479a5203dc8aacfba722e405a6533751e5945a7f6135826f303c56567eaf8a6b6676db5df647dde14b8750a5ac7a31ce44023f56
|
||||
DIST lmod-9.0.8.tar.gz 33383436 BLAKE2B cb7be1fbea5befc5a099dede34552b9a941881930cd79a24d35954f52d0574c2dcc5fd961a6b6d4c005de69a3067a03102cd33af095926e27405b62096ffa925 SHA512 02a94e7b50202c13ca3d20af63da7fdf87fb9413a0c5e965d18964783fe251f40e31500c1ac24b20de1c8fe12ba098e53ea4a98a972d27729bc7034797c7581f
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..3} )
|
||||
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
|
||||
SRC_URI+=" https://dev.gentoo.org/~tupone/distfiles/${PN}-9.0.3-load-err.txt"
|
||||
|
||||
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? (
|
||||
$(lua_gen_cond_dep '
|
||||
dev-util/hermes[${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 pkgs/{luafilesystem,term} || die
|
||||
rm -r rt/{ck_mtree_syntax,colorize,end2end,help,ifur,settarg} || die
|
||||
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
|
||||
sed -i \
|
||||
-e "s|/usr/sbin:/sbin:||" \
|
||||
-e 's|/usr/sbin:1\\;/sbin:1\\;||' \
|
||||
rt/changeMPATH/out.txt \
|
||||
|| die
|
||||
cp "${DISTDIR}"/${PN}-9.0.3-load-err.txt \
|
||||
rt/load/err.txt || 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() {
|
||||
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
|
||||
}
|
||||
@@ -17,7 +17,7 @@ else
|
||||
S="${WORKDIR}"/Lmod-${PV}
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
fi
|
||||
SRC_URI+=" https://dev.gentoo.org/~tupone/distfiles/${PN}-8.7.60-load-err.txt"
|
||||
SRC_URI+=" https://dev.gentoo.org/~tupone/distfiles/${PN}-9.0.3-load-err.txt"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
@@ -70,10 +70,7 @@ src_prepare() {
|
||||
sed -i \
|
||||
-e "1s|#!/usr/bin/env lua|#!${LUA}|" \
|
||||
proj_mgmt/joinBase64Results \
|
||||
|| die
|
||||
sed -i \
|
||||
-e "s|@path_to_lua@|${LUA}|" \
|
||||
src/lmod.in.lua \
|
||||
proj_mgmt/clean_gold_files/regularize \
|
||||
|| die
|
||||
sed -i \
|
||||
-e "s| lua| ${LUA}|" \
|
||||
@@ -89,7 +86,7 @@ src_prepare() {
|
||||
-e 's|/usr/sbin:1\\;/sbin:1\\;||' \
|
||||
rt/changeMPATH/out.txt \
|
||||
|| die
|
||||
cp "${DISTDIR}"/${PN}-8.7.60-load-err.txt \
|
||||
cp "${DISTDIR}"/${PN}-9.0.3-load-err.txt \
|
||||
rt/load/err.txt || die
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user