From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 17 18:20:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AEC5D4C1 for ; Mon, 17 Mar 2014 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8B3427D7 for ; Mon, 17 Mar 2014 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2HIK0QX048623 for ; Mon, 17 Mar 2014 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2HIK0YH048622; Mon, 17 Mar 2014 18:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 17 Mar 2014 18:20:00 GMT Resent-Message-Id: <201403171820.s2HIK0YH048622@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Horia Racoviceanu 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 ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187671: [MAINTAINER] math/ent: Add DOCS and clang patch X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 18:20:00 -0000 >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@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 + 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 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include >Release-Note: >Audit-Trail: >Unformatted: