ports/187671: [MAINTAINER] math/ent: Add DOCS and clang patch
Horia Racoviceanu
horia at racoviceanu.com
Mon Mar 17 18:20:00 UTC 2014
>Number: 187671
>Category: ports
>Synopsis: [MAINTAINER] math/ent: Add DOCS and clang patch
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 17 18:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Horia Racoviceanu
>Release: 9.2-RELEASE
>Organization:
>Environment:
FreeBSD aitch 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013 root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
>Description:
>How-To-Repeat:
>Fix:
- Bump PORTREVISION
- Add USES=compiler, needed for clang patch
- Add DOCS to Options
- Change REINPLACE, CC and CFLAGS
- Remove unused -g CFLAGS for clang
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 348441)
+++ Makefile (working copy)
@@ -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 @@
MAINTAINER= horia at 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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list