From tkato432@yahoo.com  Mon Dec 16 18:08:10 2013
Return-Path: <tkato432@yahoo.com>
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 EC10F4FB
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 16 Dec 2013 18:06:18 +0000 (UTC)
Received: from omta03.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17])
	by mx1.freebsd.org (Postfix) with ESMTP id BE62B18B6
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 16 Dec 2013 18:06:18 +0000 (UTC)
Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106])
	by omta03.auone-net.jp (au one net mail) with ESMTP id 9E86F1880004
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 17 Dec 2013 03:06:16 +0900 (JST)
Message-Id: <20131217025123.ca94b61c37625edd1787bc48@yahoo.com>
Date: Tue, 17 Dec 2013 02:51:23 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: textproc/humanzip: Fix biuld with clang

>Number:         184904
>Category:       ports
>Synopsis:       textproc/humanzip: Fix biuld with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pawel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:29 UTC 2013
>Closed-Date:    Tue Dec 24 14:42:49 UTC 2013
>Last-Modified:  Tue Dec 24 16:10:00 UTC 2013
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix biuld with clang
- Add LICENSE

New file:
files/patch-humanunzip.cpp
files/patch-humanzip.cpp

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/textproc/humanzip/Makefile textproc/humanzip/Makefile
--- /usr/ports/textproc/humanzip/Makefile	2013-11-06 21:55:13.000000000 +0900
+++ textproc/humanzip/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -9,22 +9,27 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Compresses text to human readable output
 
-NO_STAGE=	yes
-post-patch:
-	@${REINPLACE_CMD} -e 's|g++|${CXX}|;s|-O2|${CFLAGS}|' \
-		${WRKSRC}/${MAKEFILE}
+LICENSE=	GPLv2 # (or later)
 
-MAN1=	${PORTNAME}.1
-MLINKS=	${PORTNAME}.1 humanunzip.1
-PLIST_FILES=	bin/${PORTNAME} bin/humanunzip
 PORTDOCS=	CHANGELOG README TODO
+PLIST_FILES=	bin/humanunzip bin/humanzip \
+		man/man1/humanunzip.1.gz man/man1/humanzip.1.gz
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|g++|$${CXX}| ; \
+		 s|-O2|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/human*zip ${PREFIX}/bin/
-	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
-.ifndef NOPORTDOCS
-	@${INSTALL} -d ${DOCSDIR}/
-	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
-.endif
+.for i in humanzip humanunzip
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
+.endfor
+	(cd ${WRKSRC} && ${INSTALL_MAN} humanzip.1 \
+		${STAGEDIR}${MAN1PREFIX}/man/man1)
+	${LN} -sf humanzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/humanunzip.1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${PORTDOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/textproc/humanzip/files/patch-humanunzip.cpp textproc/humanzip/files/patch-humanunzip.cpp
--- /usr/ports/textproc/humanzip/files/patch-humanunzip.cpp	1970-01-01 09:00:00.000000000 +0900
+++ textproc/humanzip/files/patch-humanunzip.cpp	2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,10 @@
+--- humanunzip.cpp.orig
++++ humanunzip.cpp
+@@ -22,6 +22,7 @@
+ #include <fstream>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include "humanzip.h"
+ 
diff -urN /usr/ports/textproc/humanzip/files/patch-humanzip.cpp textproc/humanzip/files/patch-humanzip.cpp
--- /usr/ports/textproc/humanzip/files/patch-humanzip.cpp	1970-01-01 09:00:00.000000000 +0900
+++ textproc/humanzip/files/patch-humanzip.cpp	2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,10 @@
+--- humanzip.cpp.orig
++++ humanzip.cpp
+@@ -24,6 +24,7 @@
+ #include <getopt.h>
+ #include <vector>
+ #include <iomanip>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include "humanzip.h"
+ 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pawel 
Responsible-Changed-By: pawel 
Responsible-Changed-When: Tue Dec 24 14:35:12 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184904 
State-Changed-From-To: open->closed 
State-Changed-By: pawel 
State-Changed-When: Tue Dec 24 14:42:48 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184904: commit references a PR
Date: Tue, 24 Dec 2013 14:42:43 +0000 (UTC)

 Author: pawel
 Date: Tue Dec 24 14:42:35 2013
 New Revision: 337357
 URL: http://svnweb.freebsd.org/changeset/ports/337357
 
 Log:
   - Fix biuld with clang
   - Add LICENSE
   - Support staging
   
   PR:		ports/184904
   Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
 
 Added:
   head/textproc/humanzip/files/
   head/textproc/humanzip/files/patch-humanunzip.cpp   (contents, props changed)
   head/textproc/humanzip/files/patch-humanzip.cpp   (contents, props changed)
 Modified:
   head/textproc/humanzip/Makefile   (contents, props changed)
   head/textproc/humanzip/pkg-descr   (contents, props changed)
 
 Modified: head/textproc/humanzip/Makefile
 ==============================================================================
 --- head/textproc/humanzip/Makefile	Tue Dec 24 14:23:21 2013	(r337356)
 +++ head/textproc/humanzip/Makefile	Tue Dec 24 14:42:35 2013	(r337357)
 @@ -9,22 +9,27 @@ MASTER_SITES=	SAVANNAH CENKES
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Compresses text to human readable output
  
 -NO_STAGE=	yes
 -post-patch:
 -	@${REINPLACE_CMD} -e 's|g++|${CXX}|;s|-O2|${CFLAGS}|' \
 -		${WRKSRC}/${MAKEFILE}
 +LICENSE=	GPLv2 # (or later)
  
 -MAN1=	${PORTNAME}.1
 -MLINKS=	${PORTNAME}.1 humanunzip.1
 -PLIST_FILES=	bin/${PORTNAME} bin/humanunzip
  PORTDOCS=	CHANGELOG README TODO
 +PLIST_FILES=	bin/humanunzip bin/humanzip \
 +		man/man1/humanunzip.1.gz man/man1/humanzip.1.gz
 +
 +post-patch:
 +	@${REINPLACE_CMD} -e \
 +		's|g++|$${CXX}| ; \
 +		 s|-O2|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
  
  do-install:
 -	@${INSTALL_PROGRAM} ${WRKSRC}/human*zip ${PREFIX}/bin/
 -	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
 -.ifndef NOPORTDOCS
 -	@${INSTALL} -d ${DOCSDIR}/
 -	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
 -.endif
 +.for i in humanzip humanunzip
 +	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
 +.endfor
 +	(cd ${WRKSRC} && ${INSTALL_MAN} humanzip.1 \
 +		${STAGEDIR}${MAN1PREFIX}/man/man1)
 +	${LN} -sf humanzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/humanunzip.1
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +.for i in ${PORTDOCS}
 +	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 +.endfor
  
  .include <bsd.port.mk>
 
 Added: head/textproc/humanzip/files/patch-humanunzip.cpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/humanzip/files/patch-humanunzip.cpp	Tue Dec 24 14:42:35 2013	(r337357)
 @@ -0,0 +1,10 @@
 +--- humanunzip.cpp.orig
 ++++ humanunzip.cpp
 +@@ -22,6 +22,7 @@
 + #include <fstream>
 + #include <sstream>
 + #include <vector>
 ++#include <unistd.h>
 + #include <sys/stat.h>
 + #include "humanzip.h"
 + 
 
 Added: head/textproc/humanzip/files/patch-humanzip.cpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/humanzip/files/patch-humanzip.cpp	Tue Dec 24 14:42:35 2013	(r337357)
 @@ -0,0 +1,9 @@
 +--- humanzip.cpp.orig
 ++++ humanzip.cpp
 +@@ -24,6 +24,7 @@
 + #include <getopt.h>
 + #include <vector>
 + #include <iomanip>
 ++#include <unistd.h>
 + #include <sys/stat.h>
 + #include "humanzip.h"
 
 Modified: head/textproc/humanzip/pkg-descr
 ==============================================================================
 --- head/textproc/humanzip/pkg-descr	Tue Dec 24 14:23:21 2013	(r337356)
 +++ head/textproc/humanzip/pkg-descr	Tue Dec 24 14:42:35 2013	(r337357)
 @@ -9,5 +9,4 @@ print size of documents.  Humanzip does 
  size of the file as measured in bytes, although this usually happens 
  incidentally.
  
 -Author: Matthew Strait
  WWW: http://savannah.nongnu.org/projects/humanzip/
 _______________________________________________
 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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184904: commit references a PR
Date: Tue, 24 Dec 2013 16:05:00 +0000 (UTC)

 Author: mat
 Date: Tue Dec 24 16:04:53 2013
 New Revision: 337368
 URL: http://svnweb.freebsd.org/changeset/ports/337368
 
 Log:
   MFH: r337357
   
   - Fix biuld with clang
   - Add LICENSE
   - Support staging
   
   PR:		ports/184904
   Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
   Approved by:	portmgr (implicit)
 
 Added:
   branches/2014Q1/textproc/humanzip/files/
      - copied from r337357, head/textproc/humanzip/files/
 Modified:
   branches/2014Q1/textproc/humanzip/Makefile   (contents, props changed)
   branches/2014Q1/textproc/humanzip/pkg-descr   (contents, props changed)
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Modified: branches/2014Q1/textproc/humanzip/Makefile
 ==============================================================================
 --- branches/2014Q1/textproc/humanzip/Makefile	Tue Dec 24 16:03:44 2013	(r337367)
 +++ branches/2014Q1/textproc/humanzip/Makefile	Tue Dec 24 16:04:53 2013	(r337368)
 @@ -9,22 +9,27 @@ MASTER_SITES=	SAVANNAH CENKES
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Compresses text to human readable output
  
 -NO_STAGE=	yes
 -post-patch:
 -	@${REINPLACE_CMD} -e 's|g++|${CXX}|;s|-O2|${CFLAGS}|' \
 -		${WRKSRC}/${MAKEFILE}
 +LICENSE=	GPLv2 # (or later)
  
 -MAN1=	${PORTNAME}.1
 -MLINKS=	${PORTNAME}.1 humanunzip.1
 -PLIST_FILES=	bin/${PORTNAME} bin/humanunzip
  PORTDOCS=	CHANGELOG README TODO
 +PLIST_FILES=	bin/humanunzip bin/humanzip \
 +		man/man1/humanunzip.1.gz man/man1/humanzip.1.gz
 +
 +post-patch:
 +	@${REINPLACE_CMD} -e \
 +		's|g++|$${CXX}| ; \
 +		 s|-O2|$${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
  
  do-install:
 -	@${INSTALL_PROGRAM} ${WRKSRC}/human*zip ${PREFIX}/bin/
 -	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
 -.ifndef NOPORTDOCS
 -	@${INSTALL} -d ${DOCSDIR}/
 -	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
 -.endif
 +.for i in humanzip humanunzip
 +	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
 +.endfor
 +	(cd ${WRKSRC} && ${INSTALL_MAN} humanzip.1 \
 +		${STAGEDIR}${MAN1PREFIX}/man/man1)
 +	${LN} -sf humanzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/humanunzip.1
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +.for i in ${PORTDOCS}
 +	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 +.endfor
  
  .include <bsd.port.mk>
 
 Modified: branches/2014Q1/textproc/humanzip/pkg-descr
 ==============================================================================
 --- branches/2014Q1/textproc/humanzip/pkg-descr	Tue Dec 24 16:03:44 2013	(r337367)
 +++ branches/2014Q1/textproc/humanzip/pkg-descr	Tue Dec 24 16:04:53 2013	(r337368)
 @@ -9,5 +9,4 @@ print size of documents.  Humanzip does 
  size of the file as measured in bytes, although this usually happens 
  incidentally.
  
 -Author: Matthew Strait
  WWW: http://savannah.nongnu.org/projects/humanzip/
 _______________________________________________
 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:
