sys-cluster/environment-modules - 5.5.0 (myov)

Search

Install

Install this version:

emerge -a =sys-cluster/environment-modules-5.5.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-cluster/environment-modules-5.5.0

Or alternatively:

emerge --autounmask-write -a =sys-cluster/environment-modules-5.5.0

Package Information

Description:
Environment Modules provide dynamic modification of user environment
Homepage:
https://envmodules.github.io/modules/ https://github.com/envmodules/modules/
License:
GPL-2+

Ebuild Details

Version EAPI Keywords Slot
5.5.0 8 ~amd64 ~arm ~arm64 ~mips ~ppc64 ~riscv ~x86 0/5.5.0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..13} )

inherit custom-cflags python-r1

DESCRIPTION="Environment Modules provide dynamic modification of user environment"
HOMEPAGE="https://envmodules.github.io/modules/
	https://github.com/envmodules/modules/"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3

	EGIT_REPO_URI="https://github.com/envmodules/modules.git"
else
	SRC_URI="https://github.com/envmodules/modules/archive/v${PV}.tar.gz
		-> ${P}.gh.tar.gz"
	S="${WORKDIR}/modules-${PV}"

	KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~riscv ~x86"
fi

LICENSE="GPL-2+"
SLOT="0/${PV}"
IUSE="test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
	${PYTHON_DEPS}

	dev-lang/tcl
"
DEPEND="
	${RDEPEND}
"
BDEPEND="
	${RDEPEND}

	test? (
		dev-tcltk/expect
		dev-util/dejagnu
	)
"
PDEPEND="
	virtual/editor
	virtual/pager
"

src_configure() {
	custom-cflags_src_configure

	local -a myconf=(
		--with-verbosity="normal"

		--etcdir="/etc/environment-modules"
		--initdir="/usr/share/modules/init"
		--modulefilesdir="/usr/share/modules/modulefiles"

		--with-editor="${EPREFIX}/usr/libexec/editor"
		--with-pager="${EPREFIX}/usr/libexec/pager"

		--enable-new-features
	)
	econf "${myconf[@]}"
}

src_compile() {
	local -x V="1"

	default
}

src_install() {
	default

	python_foreach_impl python_optimize "${ED}/usr/share"
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-cluster/environment-modules | euse -E <flag> -p sys-cluster/environment-modules | euse -D <flag> -p sys-cluster/environment-modules

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	
	

	dev-lang/tcl

RDEPEND

	

	dev-lang/tcl

BDEPEND

	
	

	dev-lang/tcl


	test? (
		dev-tcltk/expect
		dev-util/dejagnu
	)

Manifest for 5.5.0

Type File Size Source URLs
DIST environment-modules-5.5.0.gh.tar.gz 1643839 bytes https://github.com/envmodules/modules/archive/v5.5.0.tar.gz