summaryrefslogtreecommitdiff
path: root/app-admin/modules/modules-4.7.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/modules/modules-4.7.0.ebuild')
-rw-r--r--app-admin/modules/modules-4.7.0.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-admin/modules/modules-4.7.0.ebuild b/app-admin/modules/modules-4.7.0.ebuild
new file mode 100644
index 000000000000..1bedc33c98f1
--- /dev/null
+++ b/app-admin/modules/modules-4.7.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2020-2021 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=7
+
+DESCRIPTION="An environment module system supporting TCL and software hierarchy"
+HOMEPAGE="https://sourceforge.net/projects/modules/"
+SRC_URI="https://github.com/cea-hpc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 x86"
+IUSE="doc test"
+
+DEPEND=">=dev-lang/tcl-8.4.0
+ doc? ( >=dev-python/sphinx-1.0.0 )
+ test? ( dev-util/dejagnu )"
+RDEPEND="${DEPEND}"
+
+LDIR="/etc/Modules"
+MDIR="${LDIR}/modules"
+
+src_configure() {
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --docdir=/usr/share/doc/${P} \
+ --libdir=/usr/lib64 \
+ --with-modulepath=${MDIR} \
+ --etcdir=${LDIR} \
+ --with-initconf-in=etcdir \
+ --with-moduleshome=${MDIR}
+}
+
+src_install() {
+ dodir ${MDIR}
+ doins -r "${FILESDIR}/etc"
+ default
+}
+
+pkg_postinst() {
+ elog "You should add the following to your ~/.bashrc to use ${PN}:"
+ elog "export MODULEPATH=/usr/modulefiles:${MDIR}"
+ elog "[ -f /usr/init/bash ] && \\ "
+ elog " source /usr/init/bash"
+ elog ""
+ elog "You may also want to run the following commands to update the system cache dir:"
+ elog "export MODULEPATH=/usr/modulefiles:${MDIR}"
+ elog "source /usr/init/bash"
+}