1 |
commit: e1929e883619900266bdfac43218dd327fdafe1e |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Oct 30 22:54:03 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Fri Oct 30 22:54:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e1929e88 |
7 |
|
8 |
sys-cluster/Lmod: version bump to 8.4.11 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
|
13 |
sys-cluster/Lmod/Lmod-8.4.11.ebuild | 104 ++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 104 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/Lmod/Lmod-8.4.11.ebuild b/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..925e1d5e9 |
19 |
--- /dev/null |
20 |
+++ b/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
21 |
@@ -0,0 +1,104 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DESCRIPTION="Environment Module System based on Lua" |
28 |
+HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
29 |
+SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
30 |
+ |
31 |
+KEYWORDS="~amd64" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
36 |
+RESTRICT="!test? ( test )" |
37 |
+ |
38 |
+RDEPEND+=" |
39 |
+ app-shells/tcsh |
40 |
+ || ( |
41 |
+ app-shells/loksh |
42 |
+ app-shells/mksh |
43 |
+ app-shells/ksh |
44 |
+ ) |
45 |
+ app-shells/zsh |
46 |
+ dev-lang/tcl |
47 |
+ dev-lua/luafilesystem |
48 |
+ dev-lua/luajson |
49 |
+ dev-lua/luaposix |
50 |
+ dev-lua/lua-term |
51 |
+" |
52 |
+DEPEND+="${RDEPEND}" |
53 |
+BDEPEND+=" |
54 |
+ test? ( |
55 |
+ dev-util/Hermes |
56 |
+ ) |
57 |
+" |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ elog "There is a lot of options for this package," |
61 |
+ elog "especially for run time behaviour." |
62 |
+ elog "You can set them using EXTRA_ECONF variable." |
63 |
+ elog "To see full list of options visit:" |
64 |
+ elog "https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ |
70 |
+ rm -r "${S}"/rt/{colorize,end2end,help,ifur,settarg} || die |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ # set environment variables to pass to Lmod configuration |
75 |
+ local -x CACHE_LIFETIME="${CACHE_LIFETIME:-86400}" |
76 |
+ local -x SHORT_TIME="${SHORT_TIME:-2}" |
77 |
+ local -x SYSTEM_TOUCH="${SYSTEM_TOUCH:-/var/lmod/latest_system_update.time}" |
78 |
+ local -x SITE_NAME="${SITE_NAME:-Gentoo}" |
79 |
+ local -x SYSHOST="${SYSHOST:-Gentoo}" |
80 |
+ |
81 |
+ local myconf=( |
82 |
+ --with-tcl |
83 |
+ --with-fastTCLInterp |
84 |
+ --with-colorize |
85 |
+ --prefix=/opt |
86 |
+ --with-ancient="${CACHE_LIFETIME}" |
87 |
+ --with-supportKsh |
88 |
+ --with-updateSystemFn="${SYSTEM_TOUCH}" |
89 |
+ --with-siteName="${SITE_NAME}" |
90 |
+ --with-syshost="${SYSHOST}" |
91 |
+ --with-shortTime="${SHORT_TIME}" |
92 |
+ --without-useBuiltinPkgs |
93 |
+ $(use_with duplicate duplicatePaths) |
94 |
+ $(use_with nocase caseIndependentSorting) |
95 |
+ $(use_with italic hiddenItalic) |
96 |
+ $(use_with auto-swap autoSwap) |
97 |
+ $(use_with module-cmd exportedModuleCmd) |
98 |
+ $(use_with redirect) |
99 |
+ $(use_with dotfiles useDotFiles) |
100 |
+ $(use_with cache cachedLoads) |
101 |
+ $(use_with extend extendedDefault) |
102 |
+ ) |
103 |
+ |
104 |
+ econf ${myconf[@]} ${EXTRA_ECONF[@]} |
105 |
+} |
106 |
+ |
107 |
+src_test() { |
108 |
+ local -x PATH="/opt/hermes/bin:${PATH}" |
109 |
+ tm -vvv || die |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ default |
114 |
+ |
115 |
+ keepdir /var/lmod |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ elog "Lmod has been installed at /opt/lmod/{lmod -> ${PV}}" |
120 |
+ elog "To activate Lmod, you need to source the profile" |
121 |
+ elog "script provided" |
122 |
+ elog " $ . /opt/lmod/lmod/init/profile" |
123 |
+ elog "This will provide you with the 'module' command" |
124 |
+ elog " $ man module" |
125 |
+} |