1 |
commit: 4aede7ec9a402c32df7aff7f98f20fd2e671e2c2 |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Tue Dec 29 15:36:34 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Tue Dec 29 15:37:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4aede7ec |
7 |
|
8 |
sys-cluster/lmod: version bump to 8.4.19 |
9 |
|
10 |
major change: also update to slotted lua |
11 |
|
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
14 |
|
15 |
profiles/updates/4Q-2020 | 1 + |
16 |
sys-cluster/Lmod/Lmod-8.4.11.ebuild | 112 ------------------ |
17 |
sys-cluster/Lmod/Lmod-8.4.16.ebuild | 110 ------------------ |
18 |
sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch | 26 ----- |
19 |
.../lmod/files/lmod-8.4.19-no-libsandbox.patch | 13 +++ |
20 |
sys-cluster/lmod/lmod-8.4.19.ebuild | 126 +++++++++++++++++++++ |
21 |
sys-cluster/lmod/lmod-9999.ebuild | 126 +++++++++++++++++++++ |
22 |
sys-cluster/{Lmod => lmod}/metadata.xml | 0 |
23 |
8 files changed, 266 insertions(+), 248 deletions(-) |
24 |
|
25 |
diff --git a/profiles/updates/4Q-2020 b/profiles/updates/4Q-2020 |
26 |
index fe4449bff..533fbbee0 100644 |
27 |
--- a/profiles/updates/4Q-2020 |
28 |
+++ b/profiles/updates/4Q-2020 |
29 |
@@ -1 +1,2 @@ |
30 |
move sci-libs/amdlibm sci-libs/aocl-libm |
31 |
+move sys-cluster/Lmod sys-cluster/lmod |
32 |
|
33 |
diff --git a/sys-cluster/Lmod/Lmod-8.4.11.ebuild b/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
34 |
deleted file mode 100644 |
35 |
index afe34b143..000000000 |
36 |
--- a/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,112 +0,0 @@ |
39 |
-# Copyright 1999-2020 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-DESCRIPTION="Environment Module System based on Lua" |
45 |
-HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
46 |
-SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
- |
48 |
-KEYWORDS="~amd64" |
49 |
- |
50 |
-LICENSE="MIT" |
51 |
-SLOT="0" |
52 |
-IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
53 |
-RESTRICT="!test? ( test )" |
54 |
- |
55 |
-RDEPEND+=" |
56 |
- app-shells/tcsh |
57 |
- || ( |
58 |
- app-shells/loksh |
59 |
- app-shells/mksh |
60 |
- app-shells/ksh |
61 |
- ) |
62 |
- app-shells/zsh |
63 |
- dev-lang/tcl |
64 |
- dev-lua/luafilesystem |
65 |
- dev-lua/luajson |
66 |
- dev-lua/luaposix |
67 |
- dev-lua/lua-term |
68 |
-" |
69 |
-DEPEND+="${RDEPEND}" |
70 |
-BDEPEND+=" |
71 |
- test? ( |
72 |
- dev-util/Hermes |
73 |
- ) |
74 |
-" |
75 |
- |
76 |
-PATCHES=( "${FILESDIR}"/${PN}-8.4.11-ldflags.patch ) |
77 |
- |
78 |
-pkg_setup() { |
79 |
- elog "There is a lot of options for this package," |
80 |
- elog "especially for run time behaviour." |
81 |
- elog "You can set them using EXTRA_ECONF variable." |
82 |
- elog "To see full list of options visit:" |
83 |
- elog "https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
84 |
-} |
85 |
- |
86 |
-src_prepare() { |
87 |
- default |
88 |
- |
89 |
- rm -r "${S}"/rt/{colorize,end2end,help,ifur,settarg} || die |
90 |
-} |
91 |
- |
92 |
-src_configure() { |
93 |
- # set environment variables to pass to Lmod configuration |
94 |
- local -x CACHE_LIFETIME="${CACHE_LIFETIME:-86400}" |
95 |
- local -x SHORT_TIME="${SHORT_TIME:-2}" |
96 |
- local -x SYSTEM_TOUCH="${SYSTEM_TOUCH:-/var/lmod/latest_system_update.time}" |
97 |
- local -x SITE_NAME="${SITE_NAME:-Gentoo}" |
98 |
- local -x SYSHOST="${SYSHOST:-Gentoo}" |
99 |
- |
100 |
- local myconf=( |
101 |
- --with-tcl |
102 |
- --with-fastTCLInterp |
103 |
- --with-colorize |
104 |
- --prefix=/opt |
105 |
- --with-ancient="${CACHE_LIFETIME}" |
106 |
- --with-supportKsh |
107 |
- --with-updateSystemFn="${SYSTEM_TOUCH}" |
108 |
- --with-siteName="${SITE_NAME}" |
109 |
- --with-syshost="${SYSHOST}" |
110 |
- --with-shortTime="${SHORT_TIME}" |
111 |
- --without-useBuiltinPkgs |
112 |
- $(use_with duplicate duplicatePaths) |
113 |
- $(use_with nocase caseIndependentSorting) |
114 |
- $(use_with italic hiddenItalic) |
115 |
- $(use_with auto-swap autoSwap) |
116 |
- $(use_with module-cmd exportedModuleCmd) |
117 |
- $(use_with redirect) |
118 |
- $(use_with dotfiles useDotFiles) |
119 |
- $(use_with cache cachedLoads) |
120 |
- $(use_with extend extendedDefault) |
121 |
- ) |
122 |
- |
123 |
- econf ${myconf[@]} ${EXTRA_ECONF[@]} |
124 |
-} |
125 |
- |
126 |
-src_compile() { |
127 |
- CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
128 |
- default |
129 |
-} |
130 |
- |
131 |
-src_test() { |
132 |
- local -x PATH="/opt/hermes/bin:${PATH}" |
133 |
- tm -vvv || die |
134 |
-} |
135 |
- |
136 |
-src_install() { |
137 |
- CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
138 |
- default |
139 |
- |
140 |
- keepdir /var/lmod |
141 |
-} |
142 |
- |
143 |
-pkg_postinst() { |
144 |
- elog "Lmod has been installed at /opt/lmod/{lmod -> ${PV}}" |
145 |
- elog "To activate Lmod, you need to source the profile" |
146 |
- elog "script provided" |
147 |
- elog " $ . /opt/lmod/lmod/init/profile" |
148 |
- elog "This will provide you with the 'module' command" |
149 |
- elog " $ man module" |
150 |
-} |
151 |
|
152 |
diff --git a/sys-cluster/Lmod/Lmod-8.4.16.ebuild b/sys-cluster/Lmod/Lmod-8.4.16.ebuild |
153 |
deleted file mode 100644 |
154 |
index fafdc2cd7..000000000 |
155 |
--- a/sys-cluster/Lmod/Lmod-8.4.16.ebuild |
156 |
+++ /dev/null |
157 |
@@ -1,110 +0,0 @@ |
158 |
-# Copyright 1999-2020 Gentoo Authors |
159 |
-# Distributed under the terms of the GNU General Public License v2 |
160 |
- |
161 |
-EAPI=7 |
162 |
- |
163 |
-DESCRIPTION="Environment Module System based on Lua" |
164 |
-HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
165 |
-SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
166 |
- |
167 |
-KEYWORDS="~amd64" |
168 |
- |
169 |
-LICENSE="MIT" |
170 |
-SLOT="0" |
171 |
-IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
172 |
-RESTRICT="!test? ( test )" |
173 |
- |
174 |
-RDEPEND+=" |
175 |
- app-shells/tcsh |
176 |
- || ( |
177 |
- app-shells/loksh |
178 |
- app-shells/mksh |
179 |
- app-shells/ksh |
180 |
- ) |
181 |
- app-shells/zsh |
182 |
- dev-lang/tcl |
183 |
- dev-lua/luafilesystem |
184 |
- dev-lua/luajson |
185 |
- dev-lua/luaposix |
186 |
- dev-lua/lua-term |
187 |
-" |
188 |
-DEPEND+="${RDEPEND}" |
189 |
-BDEPEND+=" |
190 |
- test? ( |
191 |
- dev-util/Hermes |
192 |
- ) |
193 |
-" |
194 |
- |
195 |
-pkg_setup() { |
196 |
- elog "There is a lot of options for this package," |
197 |
- elog "especially for run time behaviour." |
198 |
- elog "You can set them using EXTRA_ECONF variable." |
199 |
- elog "To see full list of options visit:" |
200 |
- elog "https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
201 |
-} |
202 |
- |
203 |
-src_prepare() { |
204 |
- default |
205 |
- |
206 |
- rm -r "${S}"/rt/{colorize,end2end,help,ifur,settarg} || die |
207 |
-} |
208 |
- |
209 |
-src_configure() { |
210 |
- # set environment variables to pass to Lmod configuration |
211 |
- local -x CACHE_LIFETIME="${CACHE_LIFETIME:-86400}" |
212 |
- local -x SHORT_TIME="${SHORT_TIME:-2}" |
213 |
- local -x SYSTEM_TOUCH="${SYSTEM_TOUCH:-/var/lmod/latest_system_update.time}" |
214 |
- local -x SITE_NAME="${SITE_NAME:-Gentoo}" |
215 |
- local -x SYSHOST="${SYSHOST:-Gentoo}" |
216 |
- |
217 |
- local myconf=( |
218 |
- --with-tcl |
219 |
- --with-fastTCLInterp |
220 |
- --with-colorize |
221 |
- --prefix=/opt |
222 |
- --with-ancient="${CACHE_LIFETIME}" |
223 |
- --with-supportKsh |
224 |
- --with-updateSystemFn="${SYSTEM_TOUCH}" |
225 |
- --with-siteName="${SITE_NAME}" |
226 |
- --with-syshost="${SYSHOST}" |
227 |
- --with-shortTime="${SHORT_TIME}" |
228 |
- --without-useBuiltinPkgs |
229 |
- $(use_with duplicate duplicatePaths) |
230 |
- $(use_with nocase caseIndependentSorting) |
231 |
- $(use_with italic hiddenItalic) |
232 |
- $(use_with auto-swap autoSwap) |
233 |
- $(use_with module-cmd exportedModuleCmd) |
234 |
- $(use_with redirect) |
235 |
- $(use_with dotfiles useDotFiles) |
236 |
- $(use_with cache cachedLoads) |
237 |
- $(use_with extend extendedDefault) |
238 |
- ) |
239 |
- |
240 |
- econf ${myconf[@]} ${EXTRA_ECONF[@]} |
241 |
-} |
242 |
- |
243 |
-src_compile() { |
244 |
- CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
245 |
- default |
246 |
-} |
247 |
- |
248 |
-src_test() { |
249 |
- local -x PATH="/opt/hermes/bin:${PATH}" |
250 |
- tm -vvv || die |
251 |
-} |
252 |
- |
253 |
-src_install() { |
254 |
- CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
255 |
- default |
256 |
- |
257 |
- keepdir /var/lmod |
258 |
-} |
259 |
- |
260 |
-pkg_postinst() { |
261 |
- elog "Lmod has been installed at /opt/lmod/{lmod -> ${PV}}" |
262 |
- elog "To activate Lmod, you need to source the profile" |
263 |
- elog "script provided" |
264 |
- elog " $ . /opt/lmod/lmod/init/profile" |
265 |
- elog "This will provide you with the 'module' command" |
266 |
- elog " $ man module" |
267 |
-} |
268 |
|
269 |
diff --git a/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch b/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch |
270 |
deleted file mode 100644 |
271 |
index afd652142..000000000 |
272 |
--- a/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch |
273 |
+++ /dev/null |
274 |
@@ -1,26 +0,0 @@ |
275 |
-diff --git a/pkgs/luafilesystem/Makefile b/pkgs/luafilesystem/Makefile |
276 |
-index 9beaf12..7926e29 100644 |
277 |
---- a/pkgs/luafilesystem/Makefile |
278 |
-+++ b/pkgs/luafilesystem/Makefile |
279 |
-@@ -28,7 +28,7 @@ $(SONAME): |
280 |
- ln -s $(SONAMEV) $@ |
281 |
- |
282 |
- $(LIBRARY): $(OBJ) |
283 |
-- $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc |
284 |
-+ $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) $(LDFLAGS) -lc |
285 |
- |
286 |
- install: $(LIB) all |
287 |
- cp -a *.so* $(LIB) |
288 |
-diff --git a/pkgs/tcl2lua/Makefile b/pkgs/tcl2lua/Makefile |
289 |
-index dbce85e..be42a85 100644 |
290 |
---- a/pkgs/tcl2lua/Makefile |
291 |
-+++ b/pkgs/tcl2lua/Makefile |
292 |
-@@ -25,7 +25,7 @@ $(SONAME): |
293 |
- ln -s $(SONAMEV) $@ |
294 |
- |
295 |
- $(LIBRARY): $(OBJ) |
296 |
-- $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc $(LIBS) |
297 |
-+ $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) $(LDFLAGS) -lc $(LIBS) |
298 |
- |
299 |
- install: all |
300 |
- cp -a *.so* $(LIB) |
301 |
|
302 |
diff --git a/sys-cluster/lmod/files/lmod-8.4.19-no-libsandbox.patch b/sys-cluster/lmod/files/lmod-8.4.19-no-libsandbox.patch |
303 |
new file mode 100644 |
304 |
index 000000000..02248bc45 |
305 |
--- /dev/null |
306 |
+++ b/sys-cluster/lmod/files/lmod-8.4.19-no-libsandbox.patch |
307 |
@@ -0,0 +1,13 @@ |
308 |
+diff --git a/configure.ac b/configure.ac |
309 |
+index ca75e34c..e9cc49e0 100644 |
310 |
+--- a/configure.ac |
311 |
++++ b/configure.ac |
312 |
+@@ -616,7 +616,7 @@ AC_SUBST(SYS_LD_LIB_PATH) |
313 |
+ SYS_LD_LIB_PATH=$LD_LIBRARY_PATH |
314 |
+ |
315 |
+ AC_SUBST(SYS_LD_PRELOAD) |
316 |
+-SYS_LD_PRELOAD=$LD_PRELOAD |
317 |
++SYS_LD_PRELOAD=$(printf %s\\n $LD_PRELOAD | sed -e "s/libsandbox.so//g") |
318 |
+ |
319 |
+ AC_SUBST(PATH_TO_SRC) |
320 |
+ SRCDIR=$( cd $srcdir; pwd) |
321 |
|
322 |
diff --git a/sys-cluster/lmod/lmod-8.4.19.ebuild b/sys-cluster/lmod/lmod-8.4.19.ebuild |
323 |
new file mode 100644 |
324 |
index 000000000..cc30e4b48 |
325 |
--- /dev/null |
326 |
+++ b/sys-cluster/lmod/lmod-8.4.19.ebuild |
327 |
@@ -0,0 +1,126 @@ |
328 |
+# Copyright 1999-2020 Gentoo Authors |
329 |
+# Distributed under the terms of the GNU General Public License v2 |
330 |
+ |
331 |
+EAPI=7 |
332 |
+ |
333 |
+LUA_COMPAT=( lua5-{1..3} ) |
334 |
+inherit autotools lua-single |
335 |
+ |
336 |
+DESCRIPTION="Environment Module System based on Lua" |
337 |
+HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
338 |
+ |
339 |
+if [[ ${PV} == 9999 ]]; then |
340 |
+ inherit git-r3 |
341 |
+ EGIT_REPO_URI="https://github.com/TACC/Lmod" |
342 |
+else |
343 |
+ SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
344 |
+ S="${WORKDIR}"/Lmod-${PV} |
345 |
+ KEYWORDS="~amd64 ~x86" |
346 |
+fi |
347 |
+ |
348 |
+LICENSE="MIT" |
349 |
+SLOT="0" |
350 |
+IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
351 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
352 |
+RESTRICT="!test? ( test )" |
353 |
+ |
354 |
+RDEPEND="${LUA_DEPS} |
355 |
+ app-shells/tcsh |
356 |
+ || ( |
357 |
+ app-shells/loksh |
358 |
+ app-shells/mksh |
359 |
+ app-shells/ksh |
360 |
+ ) |
361 |
+ app-shells/zsh |
362 |
+ dev-lang/tcl |
363 |
+ dev-lang/tk |
364 |
+ $(lua_gen_cond_dep ' |
365 |
+ >=dev-lua/luafilesystem-1.8.0[${LUA_USEDEP}] |
366 |
+ dev-lua/luajson[${LUA_USEDEP}] |
367 |
+ dev-lua/luaposix[${LUA_USEDEP}] |
368 |
+ dev-lua/lua-term[${LUA_USEDEP}] |
369 |
+ ') |
370 |
+ virtual/pkgconfig |
371 |
+" |
372 |
+DEPEND="${RDEPEND}" |
373 |
+BDEPEND="${RDEPEND} |
374 |
+ test? ( |
375 |
+ $(lua_gen_cond_dep ' |
376 |
+ dev-util/hermes[${LUA_SINGLE_USEDEP}] |
377 |
+ ') |
378 |
+ ) |
379 |
+" |
380 |
+ |
381 |
+PATCHES=( "${FILESDIR}"/${PN}-8.4.19-no-libsandbox.patch ) |
382 |
+ |
383 |
+pkg_pretend() { |
384 |
+ elog "You can control the siteName and syshost settings by" |
385 |
+ elog "using the variables LMOD_SITENAME and LMOD_SYSHOST, during" |
386 |
+ elog "build time, which are both set to 'Gentoo' by default." |
387 |
+ elog "There are a lot of options for this package, especially" |
388 |
+ elog "for run time behaviour. Remember to use the EXTRA_ECONF variable." |
389 |
+ elog "To see full list of options visit:" |
390 |
+ elog "\t https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
391 |
+} |
392 |
+ |
393 |
+src_prepare() { |
394 |
+ default |
395 |
+ rm -rf pkgs/{luafilesystem,term} || die |
396 |
+ rm -rf rt/{colorize,end2end,help,ifur,settarg} || die |
397 |
+ eautoreconf |
398 |
+} |
399 |
+ |
400 |
+src_configure() { |
401 |
+ local LMOD_SITENAME="${LMOD_SITENAME:-Gentoo}" |
402 |
+ local LMOD_SYSHOST="${LMOD_SYSHOST:-Gentoo}" |
403 |
+ |
404 |
+ local LUAC="${LUA%/*}/luac${LUA#*lua}" |
405 |
+ |
406 |
+ local myconf=( |
407 |
+ --with-tcl |
408 |
+ --with-fastTCLInterp |
409 |
+ --with-colorize |
410 |
+ --with-supportKsh |
411 |
+ --without-useBuiltinPkgs |
412 |
+ --with-siteControlPrefix |
413 |
+ --with-siteName="${LMOD_SITENAME}" |
414 |
+ --with-syshost="${LMOD_SYSHOST}" |
415 |
+ --with-lua_include="$(lua_get_include_dir)" |
416 |
+ --with-lua="${LUA}" |
417 |
+ --with-luac="${LUAC}" |
418 |
+ --with-module-root-path="${EPREFIX}/etc/modulefiles" |
419 |
+ --with-updateSystemFn="${EPREFIX}/etc/modulefiles/.lmod_system_update" |
420 |
+ --prefix="${EPREFIX}/usr/share/Lmod" |
421 |
+ $(use_with duplicate duplicatePaths) |
422 |
+ $(use_with nocase caseIndependentSorting) |
423 |
+ $(use_with italic hiddenItalic) |
424 |
+ $(use_with auto-swap autoSwap) |
425 |
+ $(use_with module-cmd exportedModuleCmd) |
426 |
+ $(use_with redirect) |
427 |
+ $(use_with dotfiles useDotFiles) |
428 |
+ $(use_with cache cachedLoads) |
429 |
+ $(use_with extend extendedDefault) |
430 |
+ ) |
431 |
+ econf "${myconf[@]}" |
432 |
+} |
433 |
+ |
434 |
+src_compile() { |
435 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
436 |
+ default |
437 |
+} |
438 |
+ |
439 |
+src_test() { |
440 |
+ local -x PATH="/opt/hermes/bin:${PATH}" |
441 |
+ tm -vvv || die |
442 |
+ testcleanup || die |
443 |
+} |
444 |
+ |
445 |
+src_install() { |
446 |
+ default |
447 |
+ |
448 |
+ insinto /etc/profile.d |
449 |
+ newins "${ED}"/usr/share/Lmod/init/profile lmod.sh |
450 |
+ newins "${ED}"/usr/share/Lmod/init/profile.fish lmod.fish |
451 |
+ |
452 |
+ keepdir /etc/modulefiles |
453 |
+} |
454 |
|
455 |
diff --git a/sys-cluster/lmod/lmod-9999.ebuild b/sys-cluster/lmod/lmod-9999.ebuild |
456 |
new file mode 100644 |
457 |
index 000000000..cc30e4b48 |
458 |
--- /dev/null |
459 |
+++ b/sys-cluster/lmod/lmod-9999.ebuild |
460 |
@@ -0,0 +1,126 @@ |
461 |
+# Copyright 1999-2020 Gentoo Authors |
462 |
+# Distributed under the terms of the GNU General Public License v2 |
463 |
+ |
464 |
+EAPI=7 |
465 |
+ |
466 |
+LUA_COMPAT=( lua5-{1..3} ) |
467 |
+inherit autotools lua-single |
468 |
+ |
469 |
+DESCRIPTION="Environment Module System based on Lua" |
470 |
+HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
471 |
+ |
472 |
+if [[ ${PV} == 9999 ]]; then |
473 |
+ inherit git-r3 |
474 |
+ EGIT_REPO_URI="https://github.com/TACC/Lmod" |
475 |
+else |
476 |
+ SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
477 |
+ S="${WORKDIR}"/Lmod-${PV} |
478 |
+ KEYWORDS="~amd64 ~x86" |
479 |
+fi |
480 |
+ |
481 |
+LICENSE="MIT" |
482 |
+SLOT="0" |
483 |
+IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
484 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
485 |
+RESTRICT="!test? ( test )" |
486 |
+ |
487 |
+RDEPEND="${LUA_DEPS} |
488 |
+ app-shells/tcsh |
489 |
+ || ( |
490 |
+ app-shells/loksh |
491 |
+ app-shells/mksh |
492 |
+ app-shells/ksh |
493 |
+ ) |
494 |
+ app-shells/zsh |
495 |
+ dev-lang/tcl |
496 |
+ dev-lang/tk |
497 |
+ $(lua_gen_cond_dep ' |
498 |
+ >=dev-lua/luafilesystem-1.8.0[${LUA_USEDEP}] |
499 |
+ dev-lua/luajson[${LUA_USEDEP}] |
500 |
+ dev-lua/luaposix[${LUA_USEDEP}] |
501 |
+ dev-lua/lua-term[${LUA_USEDEP}] |
502 |
+ ') |
503 |
+ virtual/pkgconfig |
504 |
+" |
505 |
+DEPEND="${RDEPEND}" |
506 |
+BDEPEND="${RDEPEND} |
507 |
+ test? ( |
508 |
+ $(lua_gen_cond_dep ' |
509 |
+ dev-util/hermes[${LUA_SINGLE_USEDEP}] |
510 |
+ ') |
511 |
+ ) |
512 |
+" |
513 |
+ |
514 |
+PATCHES=( "${FILESDIR}"/${PN}-8.4.19-no-libsandbox.patch ) |
515 |
+ |
516 |
+pkg_pretend() { |
517 |
+ elog "You can control the siteName and syshost settings by" |
518 |
+ elog "using the variables LMOD_SITENAME and LMOD_SYSHOST, during" |
519 |
+ elog "build time, which are both set to 'Gentoo' by default." |
520 |
+ elog "There are a lot of options for this package, especially" |
521 |
+ elog "for run time behaviour. Remember to use the EXTRA_ECONF variable." |
522 |
+ elog "To see full list of options visit:" |
523 |
+ elog "\t https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
524 |
+} |
525 |
+ |
526 |
+src_prepare() { |
527 |
+ default |
528 |
+ rm -rf pkgs/{luafilesystem,term} || die |
529 |
+ rm -rf rt/{colorize,end2end,help,ifur,settarg} || die |
530 |
+ eautoreconf |
531 |
+} |
532 |
+ |
533 |
+src_configure() { |
534 |
+ local LMOD_SITENAME="${LMOD_SITENAME:-Gentoo}" |
535 |
+ local LMOD_SYSHOST="${LMOD_SYSHOST:-Gentoo}" |
536 |
+ |
537 |
+ local LUAC="${LUA%/*}/luac${LUA#*lua}" |
538 |
+ |
539 |
+ local myconf=( |
540 |
+ --with-tcl |
541 |
+ --with-fastTCLInterp |
542 |
+ --with-colorize |
543 |
+ --with-supportKsh |
544 |
+ --without-useBuiltinPkgs |
545 |
+ --with-siteControlPrefix |
546 |
+ --with-siteName="${LMOD_SITENAME}" |
547 |
+ --with-syshost="${LMOD_SYSHOST}" |
548 |
+ --with-lua_include="$(lua_get_include_dir)" |
549 |
+ --with-lua="${LUA}" |
550 |
+ --with-luac="${LUAC}" |
551 |
+ --with-module-root-path="${EPREFIX}/etc/modulefiles" |
552 |
+ --with-updateSystemFn="${EPREFIX}/etc/modulefiles/.lmod_system_update" |
553 |
+ --prefix="${EPREFIX}/usr/share/Lmod" |
554 |
+ $(use_with duplicate duplicatePaths) |
555 |
+ $(use_with nocase caseIndependentSorting) |
556 |
+ $(use_with italic hiddenItalic) |
557 |
+ $(use_with auto-swap autoSwap) |
558 |
+ $(use_with module-cmd exportedModuleCmd) |
559 |
+ $(use_with redirect) |
560 |
+ $(use_with dotfiles useDotFiles) |
561 |
+ $(use_with cache cachedLoads) |
562 |
+ $(use_with extend extendedDefault) |
563 |
+ ) |
564 |
+ econf "${myconf[@]}" |
565 |
+} |
566 |
+ |
567 |
+src_compile() { |
568 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
569 |
+ default |
570 |
+} |
571 |
+ |
572 |
+src_test() { |
573 |
+ local -x PATH="/opt/hermes/bin:${PATH}" |
574 |
+ tm -vvv || die |
575 |
+ testcleanup || die |
576 |
+} |
577 |
+ |
578 |
+src_install() { |
579 |
+ default |
580 |
+ |
581 |
+ insinto /etc/profile.d |
582 |
+ newins "${ED}"/usr/share/Lmod/init/profile lmod.sh |
583 |
+ newins "${ED}"/usr/share/Lmod/init/profile.fish lmod.fish |
584 |
+ |
585 |
+ keepdir /etc/modulefiles |
586 |
+} |
587 |
|
588 |
diff --git a/sys-cluster/Lmod/metadata.xml b/sys-cluster/lmod/metadata.xml |
589 |
similarity index 100% |
590 |
rename from sys-cluster/Lmod/metadata.xml |
591 |
rename to sys-cluster/lmod/metadata.xml |