From tkato432@yahoo.com  Mon Oct  1 18:01:48 2012
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8CFC61065674
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2012 18:01:29 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa102lp.auone-net.jp (msa102lp.auone-net.jp [222.3.140.165])
	by mx1.freebsd.org (Postfix) with ESMTP id C4D9F8FC0A
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  1 Oct 2012 18:01:28 +0000 (UTC)
Received: from localhost.localdomain (ZT037251.ppp.dion.ne.jp [59.128.37.251])
	by msa102lp.auone-net.jp (au one net msa) with ESMTP id 6EF954AC036
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue,  2 Oct 2012 03:01:26 +0900 (JST)
Message-Id: <20121002025343.755de3f8e8bf0b06f62fb41a@yahoo.com>
Date: Tue, 2 Oct 2012 02:53:43 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: devel/ocaml-res: Update to version 4.0.2

>Number:         172231
>Category:       ports
>Synopsis:       devel/ocaml-res: Update to version 4.0.2
>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:08 UTC 2012
>Closed-Date:    Thu Dec 20 05:55:13 UTC 2012
>Last-Modified:  Thu Dec 20 05:55:13 UTC 2012
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 4.0.2

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/ocaml-res/Makefile devel/ocaml-res/Makefile
--- /usr/ports/devel/ocaml-res/Makefile	2011-10-24 12:32:56.000000000 +0900
+++ devel/ocaml-res/Makefile	2012-09-28 18:56:49.000000000 +0900
@@ -1,63 +1,54 @@
-# New ports collection makefile for:	res
-# 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-res/Makefile,v 1.11 2011/10/24 03:32:56 stas Exp $
-#
 
 PORTNAME=	res
-PORTVERSION=	3.2.0
-PORTREVISION=	1
+PORTVERSION=	4.0.2
 CATEGORIES=	devel
-MASTER_SITES=	http://hg.ocaml.info/release/res/archive/
+MASTER_SITES=	http://cdn.bitbucket.org/mmottl/res/downloads/
 PKGNAMEPREFIX=	ocaml-
-DISTNAME=	release-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Automatically Resizing Contiguous Memory for OCaml
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
+LICENSE=	LGPL21
+
+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.txt
-DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
-EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
-WRKSRC=		${WRKDIR}/${PORTNAME}-release-${PORTVERSION}
-
-.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 TODO.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 && ${INSTALL_DATA} *.ml ${EXAMPLESDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/devel/ocaml-res/distinfo devel/ocaml-res/distinfo
--- /usr/ports/devel/ocaml-res/distinfo	2011-07-03 23:56:34.000000000 +0900
+++ devel/ocaml-res/distinfo	2012-09-27 15:35:42.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (release-3.2.0.tar.bz2) = 945c1dfa6d29ec7443dc9707df41f89a8a58274f7e2257f8d7ac5e407a971765
-SIZE (release-3.2.0.tar.bz2) = 35294
+SHA256 (res-4.0.2.tar.gz) = 4f3e0a62c57ac1293ec119e94ecff2f404cd9196e71c276bd6c3855731af0d7e
+SIZE (res-4.0.2.tar.gz) = 69538
diff -urN /usr/ports/devel/ocaml-res/pkg-descr devel/ocaml-res/pkg-descr
--- /usr/ports/devel/ocaml-res/pkg-descr	2008-06-01 18:42:27.000000000 +0900
+++ devel/ocaml-res/pkg-descr	2012-09-27 15:33:08.000000000 +0900
@@ -9,4 +9,4 @@
 which use different reallocation strategies.
 
 Author:	Markus Mottl <markus.mottl@gmail.com>
-WWW:	http://www.ocaml.info/home/ocaml_sources.html
+WWW:	https://bitbucket.org/mmottl/res
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 1 18:11:32 UTC 2012 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

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

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

 This is a multi-part message in MIME format.
 
 --Multipart=_Sat__27_Oct_2012_02_46_59_+0900_Ql8udzg_gbxATXt7
 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_59_+0900_Ql8udzg_gbxATXt7
 Content-Type: text/x-diff;
  name="devel_ocaml-res.diff"
 Content-Disposition: attachment;
  filename="devel_ocaml-res.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/devel/ocaml-res/Makefile devel/ocaml-res/Makefile
 --- /usr/ports/devel/ocaml-res/Makefile	2012-10-26 23:57:50.000000000 +0900
 +++ devel/ocaml-res/Makefile	2012-10-27 01:49:17.000000000 +0900
 @@ -2,60 +2,53 @@
  # $FreeBSD: ports/devel/ocaml-res/Makefile,v 1.12 2012/10/26 14:57:50 bapt Exp $
  
  PORTNAME=	res
 -PORTVERSION=	3.2.0
 -PORTREVISION=	1
 +PORTVERSION=	4.0.2
  CATEGORIES=	devel
 -MASTER_SITES=	http://hg.ocaml.info/release/res/archive/
 +MASTER_SITES=	http://cdn.bitbucket.org/mmottl/res/downloads/
  PKGNAMEPREFIX=	ocaml-
 -DISTNAME=	release-${PORTVERSION}
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Automatically Resizing Contiguous Memory for OCaml
  
 -DEPRECATED=	No more public distfiles
 -EXPIRATION_DATE=	2012-11-26
 +LICENSE=	LGPL21
 +
 +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.txt
 -DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
 -EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
 -WRKSRC=		${WRKDIR}/${PORTNAME}-release-${PORTVERSION}
 -
 -.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 TODO.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 && ${INSTALL_DATA} *.ml ${EXAMPLESDIR}
  .endif
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 diff -urN /usr/ports/devel/ocaml-res/distinfo devel/ocaml-res/distinfo
 --- /usr/ports/devel/ocaml-res/distinfo	2011-07-03 23:56:34.000000000 +0900
 +++ devel/ocaml-res/distinfo	2012-09-27 15:35:42.000000000 +0900
 @@ -1,2 +1,2 @@
 -SHA256 (release-3.2.0.tar.bz2) = 945c1dfa6d29ec7443dc9707df41f89a8a58274f7e2257f8d7ac5e407a971765
 -SIZE (release-3.2.0.tar.bz2) = 35294
 +SHA256 (res-4.0.2.tar.gz) = 4f3e0a62c57ac1293ec119e94ecff2f404cd9196e71c276bd6c3855731af0d7e
 +SIZE (res-4.0.2.tar.gz) = 69538
 diff -urN /usr/ports/devel/ocaml-res/pkg-descr devel/ocaml-res/pkg-descr
 --- /usr/ports/devel/ocaml-res/pkg-descr	2008-06-01 18:42:27.000000000 +0900
 +++ devel/ocaml-res/pkg-descr	2012-09-27 15:33:08.000000000 +0900
 @@ -9,4 +9,4 @@
  which use different reallocation strategies.
  
  Author:	Markus Mottl <markus.mottl@gmail.com>
 -WWW:	http://www.ocaml.info/home/ocaml_sources.html
 +WWW:	https://bitbucket.org/mmottl/res
 
 --Multipart=_Sat__27_Oct_2012_02_46_59_+0900_Ql8udzg_gbxATXt7--
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Mon Oct 29 09:43:00 UTC 2012 
Responsible-Changed-Why:  
Reassign to the heap miwi being overloaded for now 

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

http://www.freebsd.org/cgi/query-pr.cgi?pr=172231 
State-Changed-From-To: open->closed 
State-Changed-By: araujo 
State-Changed-When: Thu Dec 20 05:55:13 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

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