mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sys-cluster/lmod: version bump to 8.7.60
Closes: https://github.com/gentoo/gentoo/pull/42480 Signed-off-by: Bob Dröge <b.e.droge@rug.nl> Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
This commit is contained in:
parent
778aba288f
commit
5521f16ff5
@ -1,3 +1,4 @@
|
||||
DIST lmod-8.6.14.tar.gz 15804818 BLAKE2B 5a5f076cb7121d073de456da3ad2937127c013cc47d0f389eaf00f9923b571bc4c941f8efd5cc527628d14d328d696e27e062629b4eede2f4c0273cc7015293e SHA512 b14acf4a008ccfe04d12352664bc6d4afe87a677803534ea7ccf9c3adb012a3df83edfb205e39f3d0e65db418f16dbce70871932d90b837924b889dc1829e672
|
||||
DIST lmod-8.7.23.tar.gz 20609950 BLAKE2B 20b2028c15a602f7b165eae342a83a238313d37ea4669e08c5ff22c47ae4e18e3190c83739bc6e39178b60d9e3ed19c7ade20466a65833e28677ca56799aa065 SHA512 029be9c08dbe3f3f8fd5c034eaab94746679b8403d8c401bc76b18b800f4f72d21f14b0a71fe20d2c1546b8b9d6f2e032226ea3528992ea6cdab8f02c2a5d99d
|
||||
DIST lmod-8.7.55.tar.gz 29572901 BLAKE2B a898fbcf738870035548d47ef79651904c31c67476d70434ab9fbd1ff2bee35aa66a65cfa5e2c64a040773521b63da62137d8c7cb93d60b85882fe31f4d345c6 SHA512 d278ef77f58dc67685415410dfe0de3ccf03c6a6507e74b9ce084057c6e6c0b1e881f03e0c8c3b2f35a014266a773a5b5d3a58ba9853bd77c4cddc7755400401
|
||||
DIST lmod-8.7.60.tar.gz 30818169 BLAKE2B 988301d4aaaf22487d974575ba4a002dd7a0a05ec0bd1ffe64f38b4b95037a40204f521238ad34f923115da45ecb2ec63952de4348351de83ca7e48f12704c92 SHA512 3b4683f7869ec9886deba5a5548169b48c74044718b22818e49c1b901b84088398cecc0dd7d38074ed331fd0cf86f1bfe26ec7747032a8ead67e3c53ac1671d6
|
||||
|
||||
134
sys-cluster/lmod/lmod-8.7.60.ebuild
Normal file
134
sys-cluster/lmod/lmod-8.7.60.ebuild
Normal file
@ -0,0 +1,134 @@
|
||||
# Copyright 1999-2024 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
|
||||
|
||||
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 )
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user