Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2017 10:58:21 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r439158 - head/devel/swig20
Message-ID:  <201704221058.v3MAwLuC038863@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704221058.v3MAwLuC038863>