diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-03-01 00:37:58 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-03-01 00:37:58 +0000 |
| commit | 8ddb1a3d1229412a438971f82d37d518a0223726 (patch) | |
| tree | 83438b5ddb9d23a390f1a3fc505303d3d2223bf2 /app-admin/modules/modules-4.7.0.ebuild | |
| parent | 9acab46e1a820daece7b2e631485c157ce2210ad (diff) | |
| download | baldeagleos-repo-21.1.5.tar.gz baldeagleos-repo-21.1.5.tar.xz baldeagleos-repo-21.1.5.zip | |
Adding metadatav21.1.5
Diffstat (limited to 'app-admin/modules/modules-4.7.0.ebuild')
| -rw-r--r-- | app-admin/modules/modules-4.7.0.ebuild | 48 |
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" +} |
