b6d2fb1048
Create ${PREFIX}/etc/modulefiles and add it to the default modulepath.
This gives a stable, non-versioned location for local modulefiles that
survives Modules upgrades without mixing site files into
${PREFIX}/Modules/${DISTVERSION}/modulefiles.
Add pkg-message with shell initialization instructions.
Bump PORTREVISION.
PR: 295476
Reviewed by: thierry (mentor)
Approved by: thierry (mentor)
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
PORTNAME= modules
|
|
DISTVERSION= 5.6.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils tcl
|
|
MASTER_SITES= https://github.com/envmodules/modules/releases/download/v${DISTVERSION}/
|
|
|
|
MAINTAINER= laurent@FreeBSD.org
|
|
COMMENT= Dynamic modification of a user environment
|
|
WWW= https://modules.sourceforge.net/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.GPLv2
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} \
|
|
bash:shells/bash
|
|
TEST_DEPENDS= runtest:misc/dejagnu
|
|
|
|
USES= gmake python:env shebangfix tar:bzip2 tcl
|
|
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_PREFIX= ${PREFIX}/Modules
|
|
CONFIGURE_ARGS= --enable-versioning \
|
|
--with-modulepath=${GNU_CONFIGURE_PREFIX}/\$$MODULE_VERSION/modulefiles:${PREFIX}/etc/modulefiles \
|
|
--with-python="${PYTHON_CMD}"
|
|
|
|
TEST_TARGET= test
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_SUB= MODULES_VERSION=${DISTVERSION}
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${GNU_CONFIGURE_PREFIX}/${DISTVERSION}/lib/libtclenvmodules.so
|
|
|
|
post-stage:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/modulefiles \
|
|
${STAGEDIR}${PREFIX}/etc/profile.d
|
|
${RLN} ${STAGEDIR}${PREFIX}/Modules/${PORTVERSION}/init/profile.sh \
|
|
${STAGEDIR}${PREFIX}/etc/profile.d/module.sh
|
|
${RLN} ${STAGEDIR}${PREFIX}/Modules/${PORTVERSION}/init/profile.csh \
|
|
${STAGEDIR}${PREFIX}/etc/profile.d/module.csh
|
|
|
|
.include <bsd.port.mk>
|