Gentoo Archives: gentoo-commits

From: Guilherme Amadio <amadio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/lmod/
Date: Tue, 22 Jun 2021 13:39:22
Message-Id: 1624369136.47e2738b19b39b65617bdcb4e619a3ba3c799037.amadio@gentoo
1 commit: 47e2738b19b39b65617bdcb4e619a3ba3c799037
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 22 13:33:50 2021 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 22 13:38:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47e2738b
7
8 sys-cluster/lmod: version bump to 8.5.6
9
10 This version has a fix for the prefix issue that needed a
11 workaround in 8.5.3.
12
13 Package-Manager: Portage-3.0.20, Repoman-3.0.3
14 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
15
16 sys-cluster/lmod/Manifest | 1 +
17 sys-cluster/lmod/lmod-8.5.6.ebuild | 130 +++++++++++++++++++++++++++++++++++++
18 2 files changed, 131 insertions(+)
19
20 diff --git a/sys-cluster/lmod/Manifest b/sys-cluster/lmod/Manifest
21 index a2db2427deb..755a59e588b 100644
22 --- a/sys-cluster/lmod/Manifest
23 +++ b/sys-cluster/lmod/Manifest
24 @@ -1,2 +1,3 @@
25 DIST lmod-8.4.20.tar.gz 19889342 BLAKE2B aef498ec8dd2b87aca02d66f394418aba4a81d1fec4684750e59d48d06bad16db7a24290920e40290ecba8a4bc65c7dbe5c23be28654db79433f41164fa4aaf6 SHA512 9749e34e7ad75531c87770b73fd20dab16c89c24e1a2d01e58f09f8510ffc8f896dfa7eab9dab26fe4d6d14ba04d331f98e08e92e0943aede9fe5131af038970
26 DIST lmod-8.5.3.tar.gz 20987187 BLAKE2B 3b0bf30524e7ba1f364650385afabaffce54db3fdcce7710a8d4a0fc3d4b2e852bed00fd8c155790ea3e2fb4aed33883af7edc3418b20cf7890f422962af9eb6 SHA512 41d7eda5aa2a1e9e91db3aa854f1810a5a2fadc9f5118561cec6a33a246870b25244aa3a5106f7a434278a76d4ceac4b8bbeb6d55ba82332615fc43a6e215629
27 +DIST lmod-8.5.6.tar.gz 20986562 BLAKE2B 49a8062f92beb40ce364281f452d221df73ad540f4a510998a909d5733446c45e2cc017901ce5d2384b37a570b8dddcb16d0dc229209137e3a6483e29b97c8bf SHA512 652c678907740c89d6a86f1e403a3e8370e3e4666c03795340b4e70fab8c67a2e705c31fba84f05fd1bf15eb9868808896c73627e87617d2f2c0b5142c48fa97
28
29 diff --git a/sys-cluster/lmod/lmod-8.5.6.ebuild b/sys-cluster/lmod/lmod-8.5.6.ebuild
30 new file mode 100644
31 index 00000000000..b8c9fbcde3b
32 --- /dev/null
33 +++ b/sys-cluster/lmod/lmod-8.5.6.ebuild
34 @@ -0,0 +1,130 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +LUA_COMPAT=( lua5-{1..3} )
41 +inherit autotools lua-single
42 +
43 +DESCRIPTION="Environment Module System based on Lua"
44 +HOMEPAGE="https://lmod.readthedocs.io/en/latest https://github.com/TACC/Lmod"
45 +
46 +if [[ ${PV} == 9999 ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI="https://github.com/TACC/Lmod"
49 +else
50 + SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz"
51 + S="${WORKDIR}"/Lmod-${PV}
52 + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
53 +fi
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +IUSE="+auto-swap +cache duplicate-paths test"
58 +REQUIRED_USE="${LUA_REQUIRED_USE}"
59 +RESTRICT="!test? ( test )"
60 +
61 +RDEPEND="${LUA_DEPS}
62 + dev-lang/tcl
63 + dev-lang/tk
64 + $(lua_gen_cond_dep '
65 + >=dev-lua/luafilesystem-1.8.0[${LUA_USEDEP}]
66 + dev-lua/luajson[${LUA_USEDEP}]
67 + dev-lua/luaposix[${LUA_USEDEP}]
68 + dev-lua/lua-term[${LUA_USEDEP}]
69 + ')
70 + virtual/pkgconfig
71 +"
72 +DEPEND="${RDEPEND}"
73 +BDEPEND="${RDEPEND}
74 + test? (
75 + $(lua_gen_cond_dep '
76 + dev-util/hermes[${LUA_SINGLE_USEDEP}]
77 + ')
78 + app-shells/tcsh
79 + )
80 +"
81 +
82 +PATCHES=( "${FILESDIR}"/${PN}-8.4.19-no-libsandbox.patch )
83 +
84 +pkg_pretend() {
85 + elog "You can control the siteName and syshost settings by"
86 + elog "using the variables LMOD_SITENAME and LMOD_SYSHOST, during"
87 + elog "build time, which are both set to 'Gentoo' by default."
88 + elog "There are a lot of options for this package, especially"
89 + elog "for run time behaviour. Remember to use the EXTRA_ECONF variable."
90 + elog "To see full list of options visit:"
91 + elog "\t https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html"
92 +}
93 +
94 +src_prepare() {
95 + default
96 + rm -r pkgs/{luafilesystem,term} || die
97 + rm -r rt/{ck_mtree_syntax,colorize,end2end,help,ifur,settarg} || die
98 + eautoreconf
99 +}
100 +
101 +src_configure() {
102 + local LMOD_SITENAME="${LMOD_SITENAME:-Gentoo}"
103 + local LMOD_SYSHOST="${LMOD_SYSHOST:-Gentoo}"
104 +
105 + local LUAC="${LUA%/*}/luac${LUA#*lua}"
106 +
107 + local myconf=(
108 + --with-tcl
109 + --with-fastTCLInterp
110 + --with-colorize
111 + --with-supportKsh
112 + --without-useBuiltinPkgs
113 + --with-siteControlPrefix
114 + --with-siteName="${LMOD_SITENAME}"
115 + --with-syshost="${LMOD_SYSHOST}"
116 + --with-lua_include="$(lua_get_include_dir)"
117 + --with-lua="${LUA}"
118 + --with-luac="${LUAC}"
119 + --with-module-root-path="${EPREFIX}/etc/modulefiles"
120 + --with-spiderCacheDir="${EPREFIX}/etc/lmod_cache/spider_cache"
121 + --with-updateSystemFn="${EPREFIX}/etc/lmod_cache/system.txt"
122 + --prefix="${EPREFIX}/usr/share/Lmod"
123 + --with-caseIndependentSorting
124 + --without-hiddenItalic
125 + --with-exportedModuleCmd
126 + --with-useDotFiles
127 + --without-redirect
128 + --with-extendedDefault
129 + $(use_with cache cachedLoads)
130 + $(use_with duplicate-paths duplicatePaths)
131 + $(use_with auto-swap autoSwap)
132 + )
133 + econf "${myconf[@]}"
134 +}
135 +
136 +src_compile() {
137 + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
138 + default
139 +}
140 +
141 +src_test() {
142 + local -x PATH="${EPREFIX}/opt/hermes/bin:${PATH}"
143 + tm -vvv || die
144 + testcleanup || die
145 +}
146 +
147 +src_install() {
148 + default
149 + newman "${FILESDIR}"/module.1-8.4.20 module.1
150 + # not a real man page
151 + rm -r "${ED}"/usr/share/Lmod/share/man || die
152 + doenvd "${FILESDIR}"/99lmod
153 + keepdir /etc/modulefiles
154 + keepdir /etc/lmod_cache
155 +}
156 +
157 +pkg_postinst() {
158 + if use cache ; then
159 + elog "Lmod spider cache has been enabled."
160 + elog "Remember to update the spider cache with"
161 + elog "/usr/share/Lmod/libexec/update_lmod_system_cache_files \ "
162 + elog "\t \$MODULEPATH"
163 + fi
164 +}