public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Aisha Tammy" <gentoo@aisha.cc>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/Lmod/
Date: Sat, 26 Sep 2020 15:09:48 +0000 (UTC)	[thread overview]
Message-ID: <1601132969.c389cf1c4521de0c89009fd3da28801e6207131f.epsilon-0@gentoo> (raw)

commit:     c389cf1c4521de0c89009fd3da28801e6207131f
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Sep 26 15:09:29 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Sat Sep 26 15:09:29 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c389cf1c

sys-cluster/Lmod: environment module system

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 sys-cluster/Lmod/Lmod-8.4.5.ebuild | 104 +++++++++++++++++++++++++++++++++++++
 sys-cluster/Lmod/metadata.xml      |  23 ++++++++
 2 files changed, 127 insertions(+)

diff --git a/sys-cluster/Lmod/Lmod-8.4.5.ebuild b/sys-cluster/Lmod/Lmod-8.4.5.ebuild
new file mode 100644
index 000000000..925e1d5e9
--- /dev/null
+++ b/sys-cluster/Lmod/Lmod-8.4.5.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"
+}

diff --git a/sys-cluster/Lmod/metadata.xml b/sys-cluster/Lmod/metadata.xml
new file mode 100644
index 000000000..6297993f4
--- /dev/null
+++ b/sys-cluster/Lmod/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>gentoo@aisha.cc</email>
+		<name>Aisha Tammy</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>sci@gentoo.org</email>
+		<name>Gentoo Science Project</name>
+	</maintainer>
+	<use>
+		<flag name="auto-swap">enable auto swapping of compiler</flag>
+		<flag name="cache">enable caching of modules</flag>
+		<flag name="dotfiles">use ~/.lmod.d/.cache instead of ~/.lmod.d/__cache__</flag>
+		<flag name="duplicate">allow duplicate entries in path</flag>
+		<flag name="extend">enable extended default functionality</flag>
+		<flag name="italic">use italics, instead of faint colors, to represent hidden folders</flag>
+		<flag name="module-cmd">export module command</flag>
+		<flag name="nocase">do case insensitive sortings and searches</flag>
+		<flag name="redirect">redirect messages to stdout</flag>
+	</use>
+</pkgmetadata>


             reply	other threads:[~2020-09-26 15:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-26 15:09 Aisha Tammy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-10-09  1:14 [gentoo-commits] proj/sci:master commit in: sys-cluster/Lmod/ Aisha Tammy
2020-10-21 14:55 Aisha Tammy
2020-10-30 22:54 Aisha Tammy
2020-10-30 23:13 Aisha Tammy
2020-10-30 23:13 Aisha Tammy
2020-12-05 22:47 Aisha Tammy
2021-01-13 18:29 [gentoo-commits] proj/sci:master commit in: sys-cluster/lmod/ Aisha Tammy
2021-01-24 16:05 Aisha Tammy
2021-01-25 12:23 Aisha Tammy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1601132969.c389cf1c4521de0c89009fd3da28801e6207131f.epsilon-0@gentoo \
    --to=gentoo@aisha.cc \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox