aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-12-12 23:51:45 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-12-12 23:51:45 +0800
commitf4c33618bb989533dbb8a09cdac78e310b527847 (patch)
tree11ecbfeea9c9b40d1da5a9228181e9e962bac54c /math
parenta63adf97cd8dcf5808fa63dfcc56281bb7297c07 (diff)
downloadfreebsd-ports-gnome-f4c33618bb989533dbb8a09cdac78e310b527847.tar.gz
freebsd-ports-gnome-f4c33618bb989533dbb8a09cdac78e310b527847.tar.zst
freebsd-ports-gnome-f4c33618bb989533dbb8a09cdac78e310b527847.zip
- Switch to options helpers
- Switch to new test framework Approved by: portmgr blanket
Diffstat (limited to 'math')
-rw-r--r--math/gnuplot/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile
index db5dbd20317a..695cbe1a8e8b 100644
--- a/math/gnuplot/Makefile
+++ b/math/gnuplot/Makefile
@@ -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 hidden3d
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>