Date: Tue, 18 Mar 2014 14:58:24 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348565 - head/math/ent Message-ID: <201403181458.s2IEwON6095268@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Tue Mar 18 14:58:23 2014 New Revision: 348565 URL: http://svnweb.freebsd.org/changeset/ports/348565 QAT: https://qat.redports.org/buildarchive/r348565/ Log: - Add USES=compiler, needed for clang patch - Add DOCS to Options - Change REINPLACE, CC and CFLAGS - Remove unused -g CFLAGS for clang - Bump PORTREVISION PR: ports/187671 Submitted by: Horia Racoviceanu <horia@racoviceanu.com> (maintainer) Modified: head/math/ent/Makefile Modified: head/math/ent/Makefile ============================================================================== --- head/math/ent/Makefile Tue Mar 18 14:55:42 2014 (r348564) +++ head/math/ent/Makefile Tue Mar 18 14:58:23 2014 (r348565) @@ -3,6 +3,7 @@ PORTNAME= ent PORTVERSION= 0.20080128 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.fourmilab.ch/random/ DISTNAME= random @@ -11,19 +12,30 @@ DIST_SUBDIR= ${PORTNAME}/${PORTVERSION} MAINTAINER= horia@racoviceanu.com COMMENT= Entropy calculation and analysis of putative random sequences -USES= zip +USES= compiler zip NO_WRKSUBDIR= yes ALL_TARGET= ent PLIST_FILES= bin/ent +PORTDOCS= ent.html entitle.gif +OPTIONS_DEFINE= DOCS + regression-test: build @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check) +.include <bsd.port.pre.mk> + post-patch: - ${REINPLACE_CMD} -e '/CC = /d' -e '/CFLAGS = /s,$$, ${CFLAGS},' \ - ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's|gcc|${CC}|; s|^CFLAGS |&+|' ${WRKSRC}/Makefile + +.if ${COMPILER_TYPE} == clang + ${REINPLACE_CMD} -e 's|-g ||' ${WRKSRC}/Makefile +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin -.include <bsd.port.mk> + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403181458.s2IEwON6095268>