From nobody@FreeBSD.org  Fri Dec  6 23:10:30 2013
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 94D2125D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Dec 2013 23:10:30 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.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 67F841A7D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Dec 2013 23:10:30 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rB6NAUZZ001590
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 6 Dec 2013 23:10:30 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rB6NAUll001579;
	Fri, 6 Dec 2013 23:10:30 GMT
	(envelope-from nobody)
Message-Id: <201312062310.rB6NAUll001579@oldred.freebsd.org>
Date: Fri, 6 Dec 2013 23:10:30 GMT
From: Kevin Zheng <kevinz5000@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Update devel/astyle to 2.04
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184553
>Category:       ports
>Synopsis:       [patch] Update devel/astyle to 2.04
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lme
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 06 23:20:00 UTC 2013
>Closed-Date:    Sat Dec 07 14:06:30 UTC 2013
>Last-Modified:  Sat Dec  7 14:10:01 UTC 2013
>Originator:     Kevin Zheng
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD sigma.local 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:
Update devel/astyle to 2.04. In addition:
 - Attach LICENSE (LGPL3)
 - Don't include LICENSE_FILE, because port only has a HTML-ified license
 - Add missing DOCS option to OPTIONS_DEFINE
 - Fix pkg-plist when not installing PORTDOCS

The port also ships with a 'Makefile' that uses `clang`, perhaps it should be used to avoid the dependency on GCC?
>How-To-Repeat:

>Fix:
Apply the attached patch.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 335786)
+++ Makefile	(working copy)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	astyle
-PORTVERSION=	2.03
-PORTREVISION=	1
+PORTVERSION=	2.04
 CATEGORIES=	devel textproc
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
 DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
@@ -11,6 +10,8 @@
 MAINTAINER=	lme@FreeBSD.org
 COMMENT=	Source code indenter and formatter for C, C++, C\#, and Java
 
+LICENSE=	LGPL3
+
 ALL_TARGET=	astyle
 CFLAGS+=	-W -Wall -fno-rtti -fno-exceptions
 LDFLAGS+=	-s
@@ -20,6 +21,8 @@
 
 WRKSRC=		${WRKDIR}/astyle/build/gcc
 
+OPTIONS_DEFINE=	DOCS
+
 pre-patch:
 	@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
 
@@ -27,7 +30,9 @@
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${STAGEDIR}${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 335786)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (astyle_2.03_linux.tar.gz) = 22b5249a0b8c9fab3b3bcd467abcb3c6b4a78458b528028634a83dca4c6ca389
-SIZE (astyle_2.03_linux.tar.gz) = 142577
+SHA256 (astyle_2.04_linux.tar.gz) = 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60
+SIZE (astyle_2.04_linux.tar.gz) = 156974


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lme 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Dec 6 23:20:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184553 
State-Changed-From-To: open->closed 
State-Changed-By: lme 
State-Changed-When: Sat Dec 7 14:06:29 UTC 2013 
State-Changed-Why:  
New port added, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184553: commit references a PR
Date: Sat,  7 Dec 2013 14:06:12 +0000 (UTC)

 Author: lme
 Date: Sat Dec  7 14:06:04 2013
 New Revision: 335828
 URL: http://svnweb.freebsd.org/changeset/ports/335828
 
 Log:
   - Update to 2.04
   - Add LICENCSE
   
   PR:		ports/184553
   Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
 
 Modified:
   head/devel/astyle/Makefile
   head/devel/astyle/distinfo
 
 Modified: head/devel/astyle/Makefile
 ==============================================================================
 --- head/devel/astyle/Makefile	Sat Dec  7 12:26:48 2013	(r335827)
 +++ head/devel/astyle/Makefile	Sat Dec  7 14:06:04 2013	(r335828)
 @@ -2,8 +2,7 @@
  # $FreeBSD$
  
  PORTNAME=	astyle
 -PORTVERSION=	2.03
 -PORTREVISION=	1
 +PORTVERSION=	2.04
  CATEGORIES=	devel textproc
  MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
  DISTNAME=	${PORTNAME}_${PORTVERSION}_linux
 @@ -11,6 +10,8 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}_lin
  MAINTAINER=	lme@FreeBSD.org
  COMMENT=	Source code indenter and formatter for C, C++, C\#, and Java
  
 +LICENSE=	LGPL3
 +
  ALL_TARGET=	astyle
  CFLAGS+=	-W -Wall -fno-rtti -fno-exceptions
  LDFLAGS+=	-s
 
 Modified: head/devel/astyle/distinfo
 ==============================================================================
 --- head/devel/astyle/distinfo	Sat Dec  7 12:26:48 2013	(r335827)
 +++ head/devel/astyle/distinfo	Sat Dec  7 14:06:04 2013	(r335828)
 @@ -1,2 +1,2 @@
 -SHA256 (astyle_2.03_linux.tar.gz) = 22b5249a0b8c9fab3b3bcd467abcb3c6b4a78458b528028634a83dca4c6ca389
 -SIZE (astyle_2.03_linux.tar.gz) = 142577
 +SHA256 (astyle_2.04_linux.tar.gz) = 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60
 +SIZE (astyle_2.04_linux.tar.gz) = 156974
 _______________________________________________
 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:
