svn commit: r456170 - head/math/gnuplot
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Dec 12 15:51:46 UTC 2017
Author: amdmi3
Date: Tue Dec 12 15:51:45 2017
New Revision: 456170
URL: https://svnweb.freebsd.org/changeset/ports/456170
Log:
- Switch to options helpers
- Switch to new test framework
Approved by: portmgr blanket
Modified:
head/math/gnuplot/Makefile
Modified: head/math/gnuplot/Makefile
==============================================================================
--- head/math/gnuplot/Makefile Tue Dec 12 15:50:51 2017 (r456169)
+++ head/math/gnuplot/Makefile Tue Dec 12 15:51:45 2017 (r456170)
@@ -40,6 +40,7 @@ CONFIGURE_ARGS+=--with-readline=gnu \
ac_cv_prog_PLAINTEX=${LOCALBASE}/bin/tex \
ac_cv_prog_LATEX=${LOCALBASE}/bin/latex \
ac_cv_prog_PDFLATEX=${LOCALBASE}/bin/pdflatex
+TEST_TARGET= check
PORTDOCS= *
PORTEXAMPLES= *
@@ -48,8 +49,6 @@ GRIDBOX_DESC= Use the gridbox optimization for hidden
GRIDBOX_CONFIGURE_OFF= --disable-h3d-quadtree --enable-h3d-gridbox
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e \
'/^install:/s/install-am//' ${WRKSRC}/share/LaTeX/Makefile.in
@@ -58,10 +57,8 @@ post-patch:
@${REINPLACE_CMD} -e \
's|luaL_checkint(|(int)luaL_checkinteger(|' ${WRKSRC}/term/lua.trm
-.if ${PORT_OPTIONS:MDOCS}
-post-build:
+post-build-DOCS-on:
@cd ${WRKSRC}/docs && ${MAKE} groff
-.endif
pre-install:
${MKDIR} ${STAGEDIR}${DATADIR}/5.2 ; \
@@ -71,14 +68,11 @@ pre-install:
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/psdoc
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
gnuplot.ps ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${STAGEDIR}${DOCSDIR}/psdoc
-.endif
-
-check test: build
- @( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; )
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list