svn commit: r331034 - head/games/qstat
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Oct 20 16:24:05 UTC 2013
Author: danfe
Date: Sun Oct 20 16:24:04 2013
New Revision: 331034
URL: http://svnweb.freebsd.org/changeset/ports/331034
Log:
Stagify; simplify one regex; do not hardcode operating system name.
PR: ports/182535
Submitted by: amdmi3
Modified:
head/games/qstat/Makefile
Modified: head/games/qstat/Makefile
==============================================================================
--- head/games/qstat/Makefile Sun Oct 20 16:07:22 2013 (r331033)
+++ head/games/qstat/Makefile Sun Oct 20 16:24:04 2013 (r331034)
@@ -15,26 +15,18 @@ CONFLICTS_INSTALL= torque-[0-9]*
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
post-extract:
@${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.default
post-patch:
- @${REINPLACE_CMD} -e 's|\(qstat\.cfg\)|\1\.default|' \
- ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's|OpenBSD|FreeBSD|' ${WRKSRC}/qstat.c
+ @${REINPLACE_CMD} -e 's|qstat\.cfg|&.default|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|' ${WRKSRC}/qstat.c
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}/info ${DOCSDIR}/template
- ${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template
+ ${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \
- ${DOCSDIR}/template
- ${INSTALL_DATA} ${WRKSRC}/info/*.txt ${DOCSDIR}/info
-.endif
- @[ -f ${PREFIX}/etc/qstat.cfg ] || \
- ${CP} ${PREFIX}/etc/qstat.cfg.default ${PREFIX}/etc/qstat.cfg
+ ${STAGEDIR}${DOCSDIR}/template
+ ${INSTALL_DATA} ${WRKSRC}/info/*.txt ${STAGEDIR}${DOCSDIR}/info
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list