Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2014 16:13:58 +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: r348574 - head/databases/kyotocabinet
Message-ID:  <201403181613.s2IGDwWn028040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Mar 18 16:13:58 2014
New Revision: 348574
URL: http://svnweb.freebsd.org/changeset/ports/348574
QAT: https://qat.redports.org/buildarchive/r348574/

Log:
  - Strip binary executable and shared library in post-install: phase
  - Add regression-test:

Modified:
  head/databases/kyotocabinet/Makefile

Modified: head/databases/kyotocabinet/Makefile
==============================================================================
--- head/databases/kyotocabinet/Makefile	Tue Mar 18 15:10:46 2014	(r348573)
+++ head/databases/kyotocabinet/Makefile	Tue Mar 18 16:13:58 2014	(r348574)
@@ -28,15 +28,12 @@ NOT_FOR_ARCHS_REASON=	does not link
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lstdc++ ||g' ${WRKSRC}/configure ${WRKSRC}/doc/spex.html ${WRKSRC}/example/Makefile ${WRKSRC}/lab/kcdict/Makefile
 
-post-build:
-	@cd ${WRKSRC}/ && ${STRIP_CMD} libkyotocabinet.so.16.13.0 kccachetest \
-		kcdirmgr kcdirtest kcforestmgr kcforesttest kcgrasstest \
-		kchashmgr kchashtest kclangctest kcpolymgr kcpolytest \
-		kcprototest kcstashtest kctreemgr kctreetest kcutilmgr \
-		kcutiltest
-
 post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so.16.13.0
 	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} '{}' \;
 	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} '{}' \;
 
+regression-test test: build
+	cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check
+
 .include <bsd.port.mk>



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