From nobody@FreeBSD.org  Mon Mar 17 18:14:05 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 708443F2
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Mar 2014 18:14:05 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5C1A977E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Mar 2014 18:14:05 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2HIE5B7009513
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Mar 2014 18:14:05 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2HIE5nT009507;
	Mon, 17 Mar 2014 18:14:05 GMT
	(envelope-from nobody)
Message-Id: <201403171814.s2HIE5nT009507@cgiserv.freebsd.org>
Date: Mon, 17 Mar 2014 18:14:05 GMT
From: Horia Racoviceanu <horia@racoviceanu.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [MAINTAINER] math/ent: Add DOCS and clang patch
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187671
>Category:       ports
>Synopsis:       [MAINTAINER] math/ent: Add DOCS and clang patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    swills
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 17 18:20:00 UTC 2014
>Closed-Date:    Tue Mar 18 14:59:43 UTC 2014
>Last-Modified:  Tue Mar 18 15:00:01 UTC 2014
>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@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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->swills 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Mar 17 18:20:03 UTC 2014 
Responsible-Changed-Why:  
swills@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187671 

From: Horia Racoviceanu <horia@racoviceanu.com>
To: bug-followup@FreeBSD.org, horia@racoviceanu.com
Cc:  
Subject: Re: ports/187671: [MAINTAINER] math/ent: Add DOCS and clang patch
Date: Mon, 17 Mar 2014 20:15:20 +0000

 Build log:
 https://redports.org/buildarchive/20140317045802-47850/
State-Changed-From-To: open->closed 
State-Changed-By: swills 
State-Changed-When: Tue Mar 18 14:59:42 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187671 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187671: commit references a PR
Date: Tue, 18 Mar 2014 14:58:27 +0000 (UTC)

 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>
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
