1 |
commit: b5082d98c8c3f43edba891c9a74a6c08e4e95c98 |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Oct 30 23:07:27 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Fri Oct 30 23:07:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b5082d98 |
7 |
|
8 |
sys-cluster/Lmod: drop old version 8.4.5 |
9 |
|
10 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
11 |
|
12 |
sys-cluster/Lmod/Lmod-8.4.11.ebuild | 8 ++ |
13 |
sys-cluster/Lmod/Lmod-8.4.5.ebuild | 104 ----------------------- |
14 |
sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch | 26 ++++++ |
15 |
3 files changed, 34 insertions(+), 104 deletions(-) |
16 |
|
17 |
diff --git a/sys-cluster/Lmod/Lmod-8.4.11.ebuild b/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
18 |
index 925e1d5e9..afe34b143 100644 |
19 |
--- a/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
20 |
+++ b/sys-cluster/Lmod/Lmod-8.4.11.ebuild |
21 |
@@ -35,6 +35,8 @@ BDEPEND+=" |
22 |
) |
23 |
" |
24 |
|
25 |
+PATCHES=( "${FILESDIR}"/${PN}-8.4.11-ldflags.patch ) |
26 |
+ |
27 |
pkg_setup() { |
28 |
elog "There is a lot of options for this package," |
29 |
elog "especially for run time behaviour." |
30 |
@@ -83,12 +85,18 @@ src_configure() { |
31 |
econf ${myconf[@]} ${EXTRA_ECONF[@]} |
32 |
} |
33 |
|
34 |
+src_compile() { |
35 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
36 |
+ default |
37 |
+} |
38 |
+ |
39 |
src_test() { |
40 |
local -x PATH="/opt/hermes/bin:${PATH}" |
41 |
tm -vvv || die |
42 |
} |
43 |
|
44 |
src_install() { |
45 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
46 |
default |
47 |
|
48 |
keepdir /var/lmod |
49 |
|
50 |
diff --git a/sys-cluster/Lmod/Lmod-8.4.5.ebuild b/sys-cluster/Lmod/Lmod-8.4.5.ebuild |
51 |
deleted file mode 100644 |
52 |
index 925e1d5e9..000000000 |
53 |
--- a/sys-cluster/Lmod/Lmod-8.4.5.ebuild |
54 |
+++ /dev/null |
55 |
@@ -1,104 +0,0 @@ |
56 |
-# Copyright 1999-2020 Gentoo Authors |
57 |
-# Distributed under the terms of the GNU General Public License v2 |
58 |
- |
59 |
-EAPI=7 |
60 |
- |
61 |
-DESCRIPTION="Environment Module System based on Lua" |
62 |
-HOMEPAGE="https://lmod.readthedocs.io/en/latest" |
63 |
-SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" |
64 |
- |
65 |
-KEYWORDS="~amd64" |
66 |
- |
67 |
-LICENSE="MIT" |
68 |
-SLOT="0" |
69 |
-IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" |
70 |
-RESTRICT="!test? ( test )" |
71 |
- |
72 |
-RDEPEND+=" |
73 |
- app-shells/tcsh |
74 |
- || ( |
75 |
- app-shells/loksh |
76 |
- app-shells/mksh |
77 |
- app-shells/ksh |
78 |
- ) |
79 |
- app-shells/zsh |
80 |
- dev-lang/tcl |
81 |
- dev-lua/luafilesystem |
82 |
- dev-lua/luajson |
83 |
- dev-lua/luaposix |
84 |
- dev-lua/lua-term |
85 |
-" |
86 |
-DEPEND+="${RDEPEND}" |
87 |
-BDEPEND+=" |
88 |
- test? ( |
89 |
- dev-util/Hermes |
90 |
- ) |
91 |
-" |
92 |
- |
93 |
-pkg_setup() { |
94 |
- elog "There is a lot of options for this package," |
95 |
- elog "especially for run time behaviour." |
96 |
- elog "You can set them using EXTRA_ECONF variable." |
97 |
- elog "To see full list of options visit:" |
98 |
- elog "https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" |
99 |
-} |
100 |
- |
101 |
-src_prepare() { |
102 |
- default |
103 |
- |
104 |
- rm -r "${S}"/rt/{colorize,end2end,help,ifur,settarg} || die |
105 |
-} |
106 |
- |
107 |
-src_configure() { |
108 |
- # set environment variables to pass to Lmod configuration |
109 |
- local -x CACHE_LIFETIME="${CACHE_LIFETIME:-86400}" |
110 |
- local -x SHORT_TIME="${SHORT_TIME:-2}" |
111 |
- local -x SYSTEM_TOUCH="${SYSTEM_TOUCH:-/var/lmod/latest_system_update.time}" |
112 |
- local -x SITE_NAME="${SITE_NAME:-Gentoo}" |
113 |
- local -x SYSHOST="${SYSHOST:-Gentoo}" |
114 |
- |
115 |
- local myconf=( |
116 |
- --with-tcl |
117 |
- --with-fastTCLInterp |
118 |
- --with-colorize |
119 |
- --prefix=/opt |
120 |
- --with-ancient="${CACHE_LIFETIME}" |
121 |
- --with-supportKsh |
122 |
- --with-updateSystemFn="${SYSTEM_TOUCH}" |
123 |
- --with-siteName="${SITE_NAME}" |
124 |
- --with-syshost="${SYSHOST}" |
125 |
- --with-shortTime="${SHORT_TIME}" |
126 |
- --without-useBuiltinPkgs |
127 |
- $(use_with duplicate duplicatePaths) |
128 |
- $(use_with nocase caseIndependentSorting) |
129 |
- $(use_with italic hiddenItalic) |
130 |
- $(use_with auto-swap autoSwap) |
131 |
- $(use_with module-cmd exportedModuleCmd) |
132 |
- $(use_with redirect) |
133 |
- $(use_with dotfiles useDotFiles) |
134 |
- $(use_with cache cachedLoads) |
135 |
- $(use_with extend extendedDefault) |
136 |
- ) |
137 |
- |
138 |
- econf ${myconf[@]} ${EXTRA_ECONF[@]} |
139 |
-} |
140 |
- |
141 |
-src_test() { |
142 |
- local -x PATH="/opt/hermes/bin:${PATH}" |
143 |
- tm -vvv || die |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- default |
148 |
- |
149 |
- keepdir /var/lmod |
150 |
-} |
151 |
- |
152 |
-pkg_postinst() { |
153 |
- elog "Lmod has been installed at /opt/lmod/{lmod -> ${PV}}" |
154 |
- elog "To activate Lmod, you need to source the profile" |
155 |
- elog "script provided" |
156 |
- elog " $ . /opt/lmod/lmod/init/profile" |
157 |
- elog "This will provide you with the 'module' command" |
158 |
- elog " $ man module" |
159 |
-} |
160 |
|
161 |
diff --git a/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch b/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch |
162 |
new file mode 100644 |
163 |
index 000000000..afd652142 |
164 |
--- /dev/null |
165 |
+++ b/sys-cluster/Lmod/files/Lmod-8.4.11-ldflags.patch |
166 |
@@ -0,0 +1,26 @@ |
167 |
+diff --git a/pkgs/luafilesystem/Makefile b/pkgs/luafilesystem/Makefile |
168 |
+index 9beaf12..7926e29 100644 |
169 |
+--- a/pkgs/luafilesystem/Makefile |
170 |
++++ b/pkgs/luafilesystem/Makefile |
171 |
+@@ -28,7 +28,7 @@ $(SONAME): |
172 |
+ ln -s $(SONAMEV) $@ |
173 |
+ |
174 |
+ $(LIBRARY): $(OBJ) |
175 |
+- $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc |
176 |
++ $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) $(LDFLAGS) -lc |
177 |
+ |
178 |
+ install: $(LIB) all |
179 |
+ cp -a *.so* $(LIB) |
180 |
+diff --git a/pkgs/tcl2lua/Makefile b/pkgs/tcl2lua/Makefile |
181 |
+index dbce85e..be42a85 100644 |
182 |
+--- a/pkgs/tcl2lua/Makefile |
183 |
++++ b/pkgs/tcl2lua/Makefile |
184 |
+@@ -25,7 +25,7 @@ $(SONAME): |
185 |
+ ln -s $(SONAMEV) $@ |
186 |
+ |
187 |
+ $(LIBRARY): $(OBJ) |
188 |
+- $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc $(LIBS) |
189 |
++ $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) $(LDFLAGS) -lc $(LIBS) |
190 |
+ |
191 |
+ install: all |
192 |
+ cp -a *.so* $(LIB) |