From tkato432@yahoo.com  Mon Oct  1 18:01:15 2012
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 11DC5106566B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2012 18:01:06 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168])
	by mx1.freebsd.org (Postfix) with ESMTP id ABADD8FC0C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2012 18:01:05 +0000 (UTC)
Received: from localhost.localdomain (ZT037251.ppp.dion.ne.jp [59.128.37.251])
	by msa105lp.auone-net.jp (au one net msa) with ESMTP id 6050250038
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue,  2 Oct 2012 03:01:03 +0900 (JST)
Message-Id: <20121002025326.c7f0b2b8086d10db243b13e3@yahoo.com>
Date: Tue, 2 Oct 2012 02:53:26 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: devel/ocaml-cfg: Update to version 2.0.1

>Number:         172225
>Category:       ports
>Synopsis:       devel/ocaml-cfg: Update to version 2.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    araujo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 18:10:06 UTC 2012
>Closed-Date:    Thu Dec 20 05:54:23 UTC 2012
>Last-Modified:  Thu Dec 20 05:54:23 UTC 2012
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 2.0.1

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/ocaml-cfg/Makefile devel/ocaml-cfg/Makefile
--- /usr/ports/devel/ocaml-cfg/Makefile	2011-10-24 12:32:55.000000000 +0900
+++ devel/ocaml-cfg/Makefile	2012-09-28 18:55:49.000000000 +0900
@@ -1,61 +1,56 @@
-# New ports collection makefile for:	cfg
-# Date created:		2006-08-15
-# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
-# $MBSDlabs$
+# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
 # $FreeBSD: ports/devel/ocaml-cfg/Makefile,v 1.9 2011/10/24 03:32:55 stas Exp $
-#
 
 PORTNAME=	cfg
-PORTVERSION=	1.7.4
-PORTREVISION=	2
+PORTVERSION=	2.0.1
 CATEGORIES=	devel
-MASTER_SITES=	http://www.ocaml.info/ocaml_sources/
+MASTER_SITES=	http://cdn.bitbucket.org/mmottl/cfg/downloads/
 PKGNAMEPREFIX=	ocaml-
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for manipulation of context-free grammars
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
+LICENSE=	LGPL21
+
+BUILD_DEPENDS=	menhir:${PORTSDIR}/devel/menhir
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 USE_OCAML=	yes
 USE_OCAML_FINDLIB=yes
+USE_OCAMLFIND_PLIST=yes
 USE_OCAML_WASH=	yes
-MAKE_JOBS_UNSAFE=	yes
 
-DOCS=		README
-DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
-EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
-
-.include <bsd.port.pre.mk>
-
-post-extract:
-# For nonstandard prefixes
-.if !exists(${OCAMLFIND_DESTDIR})
-	${MKDIR} ${OCAMLFIND_DESTDIR}
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
+MAKE_JOBS_UNSAFE=yes
+
+DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
+EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
 .endif
 
 post-install:
-	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
-		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.for i in AUTHORS.txt CHANGES.txt README.md
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
-	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-# XXX: temporary workaround for non-standard PREFIX
-	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
-		>> ${TMPPLIST}
-	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
-		>> ${TMPPLIST}
+	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/devel/ocaml-cfg/distinfo devel/ocaml-cfg/distinfo
--- /usr/ports/devel/ocaml-cfg/distinfo	2011-07-03 23:56:32.000000000 +0900
+++ devel/ocaml-cfg/distinfo	2012-09-27 06:31:40.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (cfg-1.7.4.tar.bz2) = 380119cc3f110d2b602ad63500f0478a63f4ac9064abf3ea3355094d818ae0c3
-SIZE (cfg-1.7.4.tar.bz2) = 24278
+SHA256 (cfg-2.0.1.tar.gz) = 55ef3d99914891eaeee5db542eb709c59b07720ccc7f67927e04c811f537283f
+SIZE (cfg-2.0.1.tar.gz) = 57253
diff -urN /usr/ports/devel/ocaml-cfg/pkg-descr devel/ocaml-cfg/pkg-descr
--- /usr/ports/devel/ocaml-cfg/pkg-descr	2006-08-20 15:57:18.000000000 +0900
+++ devel/ocaml-cfg/pkg-descr	2012-09-27 06:28:26.000000000 +0900
@@ -2,4 +2,4 @@
 for manipulating context-free grammars (CFGs) in a purely functional way.
 
 Author:	Markus Mottl <markus.mottl@gmail.com>
-WWW:	http://www.ocaml.info/home/ocaml_sources.html
+WWW:	https://bitbucket.org/mmottl/cfg
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 1 18:11:04 UTC 2012 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

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

From: KATO Tsuguru <tkato432@yahoo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/172225: devel/ocaml-cfg: Update to version 2.0.1
Date: Sat, 27 Oct 2012 02:46:47 +0900

 This is a multi-part message in MIME format.
 
 --Multipart=_Sat__27_Oct_2012_02_46_47_+0900_knHK/Mq/ZPMUKg8u
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Remake of the patch against current tree.
 
 --Multipart=_Sat__27_Oct_2012_02_46_47_+0900_knHK/Mq/ZPMUKg8u
 Content-Type: text/x-diff;
  name="devel_ocaml-cfg.diff"
 Content-Disposition: attachment;
  filename="devel_ocaml-cfg.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/devel/ocaml-cfg/Makefile devel/ocaml-cfg/Makefile
 --- /usr/ports/devel/ocaml-cfg/Makefile	2012-10-26 23:57:50.000000000 +0900
 +++ devel/ocaml-cfg/Makefile	2012-10-27 01:48:05.000000000 +0900
 @@ -2,58 +2,55 @@
  # $FreeBSD: ports/devel/ocaml-cfg/Makefile,v 1.10 2012/10/26 14:57:50 bapt Exp $
  
  PORTNAME=	cfg
 -PORTVERSION=	1.7.4
 -PORTREVISION=	2
 +PORTVERSION=	2.0.1
  CATEGORIES=	devel
 -MASTER_SITES=	http://www.ocaml.info/ocaml_sources/
 +MASTER_SITES=	http://cdn.bitbucket.org/mmottl/cfg/downloads/
  PKGNAMEPREFIX=	ocaml-
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Library for manipulation of context-free grammars
  
 -DEPRECATED=	No more public distfiles
 -EXPIRATION_DATE=	2012-11-26
 +LICENSE=	LGPL21
 +
 +BUILD_DEPENDS=	menhir:${PORTSDIR}/devel/menhir
 +
 +OPTIONS_DEFINE=	DOCS EXAMPLES
  
 -USE_BZIP2=	yes
 -USE_GMAKE=	yes
  USE_OCAML=	yes
  USE_OCAML_FINDLIB=yes
 +USE_OCAMLFIND_PLIST=yes
  USE_OCAML_WASH=	yes
 -MAKE_JOBS_UNSAFE=	yes
  
 -DOCS=		README
 -DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
 -EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
 -
 -.include <bsd.port.pre.mk>
 -
 -post-extract:
 -# For nonstandard prefixes
 -.if !exists(${OCAMLFIND_DESTDIR})
 -	${MKDIR} ${OCAMLFIND_DESTDIR}
 +HAS_CONFIGURE=	yes
 +CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
 +MAKE_JOBS_UNSAFE=yes
 +
 +DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
 +EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
 +
 +PORTDOCS=	*
 +PORTEXAMPLES=	*
 +
 +.include <bsd.port.options.mk>
 +
 +.if ${PORT_OPTIONS:MDOCS}
 +PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
 +.endif
 +
 +.if ${PORT_OPTIONS:MEXAMPLES}
 +PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
  .endif
  
  post-install:
 -	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
 -		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
 -.if !defined(NOPORTDOCS)
 +.if ${PORT_OPTIONS:MDOCS}
  	@${MKDIR} ${DOCSDIR}
 -	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 +.for i in AUTHORS.txt CHANGES.txt README.md
 +	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
 +.endfor
 +.endif
 +.if ${PORT_OPTIONS:MEXAMPLES}
  	@${MKDIR} ${EXAMPLESDIR}
 -	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
 -	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
 -		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
 -	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
 -		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 -	@${FIND} ${DOCSDIR}/ ! -type d | \
 -		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
 -	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
 -		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 -# XXX: temporary workaround for non-standard PREFIX
 -	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
 -		>> ${TMPPLIST}
 -	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
 -		>> ${TMPPLIST}
 +	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
  .endif
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 diff -urN /usr/ports/devel/ocaml-cfg/distinfo devel/ocaml-cfg/distinfo
 --- /usr/ports/devel/ocaml-cfg/distinfo	2011-07-03 23:56:32.000000000 +0900
 +++ devel/ocaml-cfg/distinfo	2012-09-27 06:31:40.000000000 +0900
 @@ -1,2 +1,2 @@
 -SHA256 (cfg-1.7.4.tar.bz2) = 380119cc3f110d2b602ad63500f0478a63f4ac9064abf3ea3355094d818ae0c3
 -SIZE (cfg-1.7.4.tar.bz2) = 24278
 +SHA256 (cfg-2.0.1.tar.gz) = 55ef3d99914891eaeee5db542eb709c59b07720ccc7f67927e04c811f537283f
 +SIZE (cfg-2.0.1.tar.gz) = 57253
 diff -urN /usr/ports/devel/ocaml-cfg/pkg-descr devel/ocaml-cfg/pkg-descr
 --- /usr/ports/devel/ocaml-cfg/pkg-descr	2006-08-20 15:57:18.000000000 +0900
 +++ devel/ocaml-cfg/pkg-descr	2012-09-27 06:28:26.000000000 +0900
 @@ -2,4 +2,4 @@
  for manipulating context-free grammars (CFGs) in a purely functional way.
  
  Author:	Markus Mottl <markus.mottl@gmail.com>
 -WWW:	http://www.ocaml.info/home/ocaml_sources.html
 +WWW:	https://bitbucket.org/mmottl/cfg
 
 --Multipart=_Sat__27_Oct_2012_02_46_47_+0900_knHK/Mq/ZPMUKg8u--
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Mon Oct 29 09:42:54 UTC 2012 
Responsible-Changed-Why:  
Reassign to the heap miwi being overloaded for now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172225 
Responsible-Changed-From-To: freebsd-ports-bugs->araujo 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Tue Dec 11 13:00:03 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172225 
State-Changed-From-To: open->closed 
State-Changed-By: araujo 
State-Changed-When: Thu Dec 20 05:54:21 UTC 2012 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172225 
>Unformatted:
