From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 292D0138359 for ; Fri, 30 Oct 2020 22:54:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 155F8E0831; Fri, 30 Oct 2020 22:54:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE727E0831 for ; Fri, 30 Oct 2020 22:54:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1EB7C33BEA3 for ; Fri, 30 Oct 2020 22:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 908302CA for ; Fri, 30 Oct 2020 22:54:12 +0000 (UTC) From: "Aisha Tammy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" Message-ID: <1604098443.e1929e883619900266bdfac43218dd327fdafe1e.epsilon-0@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/Lmod/ X-VCS-Repository: proj/sci X-VCS-Files: sys-cluster/Lmod/Lmod-8.4.11.ebuild X-VCS-Directories: sys-cluster/Lmod/ X-VCS-Committer: epsilon-0 X-VCS-Committer-Name: Aisha Tammy X-VCS-Revision: e1929e883619900266bdfac43218dd327fdafe1e X-VCS-Branch: master Date: Fri, 30 Oct 2020 22:54:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 07fc85ce-61f7-4e25-8ec0-49187499a470 X-Archives-Hash: acb9227fb71c16e3733b5132ecd2253f commit: e1929e883619900266bdfac43218dd327fdafe1e Author: Aisha Tammy aisha cc> AuthorDate: Fri Oct 30 22:54:03 2020 +0000 Commit: Aisha Tammy aisha cc> CommitDate: Fri Oct 30 22:54:03 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e1929e88 sys-cluster/Lmod: version bump to 8.4.11 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy aisha.cc> sys-cluster/Lmod/Lmod-8.4.11.ebuild | 104 ++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/sys-cluster/Lmod/Lmod-8.4.11.ebuild b/sys-cluster/Lmod/Lmod-8.4.11.ebuild new file mode 100644 index 000000000..925e1d5e9 --- /dev/null +++ b/sys-cluster/Lmod/Lmod-8.4.11.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Environment Module System based on Lua" +HOMEPAGE="https://lmod.readthedocs.io/en/latest" +SRC_URI="https://github.com/TACC/Lmod/archive/${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64" + +LICENSE="MIT" +SLOT="0" +IUSE="auto-swap cache dotfiles duplicate +extend italic module-cmd nocase redirect test" +RESTRICT="!test? ( test )" + +RDEPEND+=" + app-shells/tcsh + || ( + app-shells/loksh + app-shells/mksh + app-shells/ksh + ) + app-shells/zsh + dev-lang/tcl + dev-lua/luafilesystem + dev-lua/luajson + dev-lua/luaposix + dev-lua/lua-term +" +DEPEND+="${RDEPEND}" +BDEPEND+=" + test? ( + dev-util/Hermes + ) +" + +pkg_setup() { + elog "There is a lot of options for this package," + elog "especially for run time behaviour." + elog "You can set them using EXTRA_ECONF variable." + elog "To see full list of options visit:" + elog "https://lmod.readthedocs.io/en/latest/090_configuring_lmod.html" +} + +src_prepare() { + default + + rm -r "${S}"/rt/{colorize,end2end,help,ifur,settarg} || die +} + +src_configure() { + # set environment variables to pass to Lmod configuration + local -x CACHE_LIFETIME="${CACHE_LIFETIME:-86400}" + local -x SHORT_TIME="${SHORT_TIME:-2}" + local -x SYSTEM_TOUCH="${SYSTEM_TOUCH:-/var/lmod/latest_system_update.time}" + local -x SITE_NAME="${SITE_NAME:-Gentoo}" + local -x SYSHOST="${SYSHOST:-Gentoo}" + + local myconf=( + --with-tcl + --with-fastTCLInterp + --with-colorize + --prefix=/opt + --with-ancient="${CACHE_LIFETIME}" + --with-supportKsh + --with-updateSystemFn="${SYSTEM_TOUCH}" + --with-siteName="${SITE_NAME}" + --with-syshost="${SYSHOST}" + --with-shortTime="${SHORT_TIME}" + --without-useBuiltinPkgs + $(use_with duplicate duplicatePaths) + $(use_with nocase caseIndependentSorting) + $(use_with italic hiddenItalic) + $(use_with auto-swap autoSwap) + $(use_with module-cmd exportedModuleCmd) + $(use_with redirect) + $(use_with dotfiles useDotFiles) + $(use_with cache cachedLoads) + $(use_with extend extendedDefault) + ) + + econf ${myconf[@]} ${EXTRA_ECONF[@]} +} + +src_test() { + local -x PATH="/opt/hermes/bin:${PATH}" + tm -vvv || die +} + +src_install() { + default + + keepdir /var/lmod +} + +pkg_postinst() { + elog "Lmod has been installed at /opt/lmod/{lmod -> ${PV}}" + elog "To activate Lmod, you need to source the profile" + elog "script provided" + elog " $ . /opt/lmod/lmod/init/profile" + elog "This will provide you with the 'module' command" + elog " $ man module" +}