1 |
commit: de9a9e1c986a2c881c41b484f705b4c38d36ead0 |
2 |
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> |
3 |
AuthorDate: Fri Dec 30 12:42:02 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 18:08:48 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=de9a9e1c |
7 |
|
8 |
sys-cluster/modules: strong blocked lmod |
9 |
|
10 |
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/modules/modules-4.6.0-r1.ebuild | 82 +++++++++++++++++++++++++++++ |
14 |
1 file changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/modules/modules-4.6.0-r1.ebuild b/sys-cluster/modules/modules-4.6.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..c7450c636 |
19 |
--- /dev/null |
20 |
+++ b/sys-cluster/modules/modules-4.6.0-r1.ebuild |
21 |
@@ -0,0 +1,82 @@ |
22 |
+# Copyright 2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{7..9} ) |
28 |
+ |
29 |
+inherit autotools python-single-r1 |
30 |
+ |
31 |
+DESCRIPTION="Dynamic modification of a user's environment via modulefiles" |
32 |
+HOMEPAGE="http://modules.sourceforge.net/" |
33 |
+SRC_URI="https://github.com/cea-hpc/modules/releases/download/v${PV}/${P}.tar.bz2" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="compat test" |
39 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+ |
42 |
+DEPEND=" |
43 |
+ ${PYTHON_DEPS} |
44 |
+ dev-lang/tcl:0= |
45 |
+ dev-tcltk/tclx |
46 |
+ compat? ( x11-libs/libX11 ) |
47 |
+" |
48 |
+# lmod is strong blocked since both want to install a module binary |
49 |
+RDEPEND=" |
50 |
+ ${DEPEND} |
51 |
+ !!sys-cluster/lmod |
52 |
+" |
53 |
+BDEPEND=" |
54 |
+ test? ( dev-util/dejagnu ) |
55 |
+" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ |
60 |
+ cd "${S}/lib" || die |
61 |
+ eautoreconf |
62 |
+ |
63 |
+ if use compat; then |
64 |
+ cd "${S}/compat" || die |
65 |
+ eautoreconf |
66 |
+ fi |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local myconf=( |
71 |
+ --disable-versioning |
72 |
+ --with-initconf-in=etcdir |
73 |
+ --enable-multilib-support |
74 |
+ --disable-set-shell-startup |
75 |
+ --prefix="${EPREFIX}/usr/share/Modules" |
76 |
+ --mandir="${EPREFIX}/usr/share/man" |
77 |
+ --docdir="${EPREFIX}/usr/share/doc/${P}" |
78 |
+ --libdir="${EPREFIX}/usr/share/Modules/$(get_libdir)" |
79 |
+ --datarootdir="${EPREFIX}/usr/share" |
80 |
+ --modulefilesdir="${EPREFIX}/etc/modulefiles" |
81 |
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)" |
82 |
+ --with-python="${PYTHON}" |
83 |
+ --with-quarantine-vars="LD_LIBRARY_PATH LD_PRELOAD" |
84 |
+ $(use_enable compat compat-version) |
85 |
+ ) |
86 |
+ econf "${myconf[@]}" "${EXTRA_ECONF[@]}" || die "configure failed" |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ # Remove known-broken tests |
91 |
+ # These test fine, but fail for random differences in the gentoo environment |
92 |
+ rm "${S}"/testsuite/modules.70-maint/210-clear.exp || die "rm failed" |
93 |
+ rm "${S}"/testsuite/modules.00-init/110-quar.exp || die "rm failed" |
94 |
+ |
95 |
+ RUNTESTARGS=-v emake test |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ dosym ../../usr/share/Modules/init/profile.sh /etc/profile.d/modules.sh |
101 |
+ dosym ../../usr/share/Modules/init/profile.csh /etc/profile.d/modules.csh |
102 |
+ dodir /etc/modulefiles |
103 |
+} |