aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/slurm-hpc
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-15 03:01:33 +0800
committerwg <wg@FreeBSD.org>2013-12-15 03:01:33 +0800
commitcf33289f50e18d6263b8dbea11696702aa3d09d0 (patch)
treecc78cd9a01c946a509bbd150fb695121741c4cac /sysutils/slurm-hpc
parentaee734ca037e08a13b03153875c067eabb39a6d8 (diff)
downloadfreebsd-ports-gnome-cf33289f50e18d6263b8dbea11696702aa3d09d0.tar.gz
freebsd-ports-gnome-cf33289f50e18d6263b8dbea11696702aa3d09d0.tar.zst
freebsd-ports-gnome-cf33289f50e18d6263b8dbea11696702aa3d09d0.zip
sysutils/slurm-hpc: fix the usage of python
Reported by: exp-run (PR 184591) Approved by: portmgr (blanket)
Diffstat (limited to 'sysutils/slurm-hpc')
-rw-r--r--sysutils/slurm-hpc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/sysutils/slurm-hpc/Makefile b/sysutils/slurm-hpc/Makefile
index aaaa6dfac071..a3e558fbb5e6 100644
--- a/sysutils/slurm-hpc/Makefile
+++ b/sysutils/slurm-hpc/Makefile
@@ -78,11 +78,17 @@ CONFIGURE_ARGS+=--with-pg_config=/nopostgres
# preinstalled on 9.1-RELEASE. Worked fine on second try.
USE_GNOME= glib20 gtk20 # sview
PLIST_FILES+= bin/sview
-.else
-# Can't disable configure test, so make it fail
+.endif
+
post-patch:
+# Can't disable configure test, so make it fail
+.if ! ${PORT_OPTIONS:MGTK2}
${REINPLACE_CMD} -e 's|min_gtk_version=2.7.1|min_gtk_version=200.7.1|' \
${WRKSRC}/configure
.endif
+ @${REINPLACE_CMD} \
+ -e 's|/usr/bin/env python|${PYTHON_CMD}|g' \
+ ${WRKSRC}/doc/html/shtml2html.py \
+ ${WRKSRC}/doc/man/man2html.py
.include <bsd.port.mk>