svn commit: r395952 - head/sysutils/slurm-wlm

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Sep 3 13:02:44 UTC 2015


Author: amdmi3
Date: Thu Sep  3 13:02:43 2015
New Revision: 395952
URL: https://svnweb.freebsd.org/changeset/ports/395952

Log:
  - Switch to options helpers
  - Fix installation command
  - No need to remove docsdir, it is handled in plist
  
  Approved by:	portmgr blanket

Modified:
  head/sysutils/slurm-wlm/Makefile

Modified: head/sysutils/slurm-wlm/Makefile
==============================================================================
--- head/sysutils/slurm-wlm/Makefile	Thu Sep  3 13:00:27 2015	(r395951)
+++ head/sysutils/slurm-wlm/Makefile	Thu Sep  3 13:02:43 2015	(r395952)
@@ -39,8 +39,6 @@ OPTIONS_SUB=	yes
 
 GTK2_DESC=	Build GUI config tool sview
 
-.include <bsd.port.options.mk>
-
 # SLURM's configure enables interactive jobs if pty.h exists.  Replacing
 # #include <pty.h> with appropriate headers will therefore not work, so instead
 # add a pty.h for the build.
@@ -51,10 +49,7 @@ post-patch:
 		${WRKSRC}/doc/html/shtml2html.py \
 		${WRKSRC}/doc/man/man2html.py
 
-post-stage:
-.if ! ${PORT_OPTIONS:MDOCS}
-	${RM} -rf ${STAGEDIR}${LOCALBASE}/share/doc/${PORTNAME}-${PORTVERSION}
-.endif
-	${CP} ${FILESDIR}/slurm.conf.example ${STAGEDIR}${PREFIX}/etc/
+post-install:
+	${INSTALL_DATA} ${FILESDIR}/slurm.conf.example ${STAGEDIR}${PREFIX}/etc/
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list