svn commit: r439158 - head/devel/swig20
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Apr 22 10:58:23 UTC 2017
Author: sunpoet
Date: Sat Apr 22 10:58:21 2017
New Revision: 439158
URL: https://svnweb.freebsd.org/changeset/ports/439158
Log:
Convert to test framework and options target helper
Approved by: portmgr (blanket)
Modified:
head/devel/swig20/Makefile
Modified: head/devel/swig20/Makefile
==============================================================================
--- head/devel/swig20/Makefile Sat Apr 22 10:58:16 2017 (r439157)
+++ head/devel/swig20/Makefile Sat Apr 22 10:58:21 2017 (r439158)
@@ -21,6 +21,7 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} V
GNU_CONFIGURE= yes
ALL_TARGET= # none
+TEST_TARGET= check
CONFIGURE_ARGS+=--program-suffix=${VER}
@@ -32,8 +33,6 @@ OCTAVE_VER_CMD= ${LOCALBASE}/bin/octave-
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
post-patch:
${SETENV} OCTAVE_VER=$$(${OCTAVE_VER_CMD}) \
${REINPLACE_CMD} -e 's|$$RUBY |${RUBY} |; \
@@ -48,23 +47,18 @@ post-patch:
post-configure:
${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile
-post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
- cd ${WRKSRC}/Examples && ${FIND} . -type d \
- -exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
- cd ${WRKSRC}/Examples && ${FIND} . -type f \
- -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
cd ${WRKSRC}/Doc && ${FIND} . -type d \
-exec ${INSTALL} -d ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \;
cd ${WRKSRC}/Doc && ${FIND} . -type f \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \;
-.endif
-regression-test: build
- cd ${WRKSRC} && ${MAKE_CMD} check
+post-install-EXAMPLES-on:
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
+ cd ${WRKSRC}/Examples && ${FIND} . -type d \
+ -exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
+ cd ${WRKSRC}/Examples && ${FIND} . -type f \
+ -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list