From tkato432@yahoo.com  Mon Jun 25 18:00:51 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 4A8091065677
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2012 18:00:39 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa106lp.auone-net.jp (msa106lp.auone-net.jp [222.3.140.169])
	by mx1.freebsd.org (Postfix) with ESMTP id 1D5A78FC1B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2012 18:00:39 +0000 (UTC)
Received: from localhost.localdomain (ZT038198.ppp.dion.ne.jp [59.128.38.198])
	by msa106lp.auone-net.jp (au one net msa) with ESMTP id 14AB823C031
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 26 Jun 2012 03:00:36 +0900 (JST)
Message-Id: <20120626024521.92853318.tkato432@yahoo.com>
Date: Tue, 26 Jun 2012 02:45:21 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: devel/py-bison: Update MASTER_SITES

>Number:         169409
>Category:       ports
>Synopsis:       devel/py-bison: Update MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sperber
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 25 18:10:08 UTC 2012
>Closed-Date:    Thu Jul 19 17:46:22 UTC 2012
>Last-Modified:  Thu Jul 19 17:46:22 UTC 2012
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p9 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Add LICENSE
- Support PORTEXAMPLES/PLIST_FILES

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/py-bison/Makefile devel/py-bison/Makefile
--- /usr/ports/devel/py-bison/Makefile	2011-10-03 04:42:49.000000000 +0900
+++ devel/py-bison/Makefile	2012-06-19 05:32:41.000000000 +0900
@@ -8,26 +8,36 @@
 
 PORTNAME=	bison
 PORTVERSION=	0.1.8
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel python
-MASTER_SITES=	http://www.freenet.org.nz/python/pybison/
+MASTER_SITES=	http://freenet.mcnabhosting.com/python/pybison/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	py${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Python-based parsing at the speed of C
 
+LICENSE=	GPLv2
+
 BUILD_DEPENDS=	pyrex>=0.9.6.2:${PORTSDIR}/devel/pyrex
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 USE_BISON=	both
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_PKGVERSION=	0.1
 
-.if !defined(NOPORTDOCS)
-DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
-.endif
+DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+PLIST_FILES=	bin/bison2py \
+		%%PYTHON_SITELIBDIR%%/bison.py \
+		%%PYTHON_SITELIBDIR%%/bison.pyc \
+		%%PYTHON_SITELIBDIR%%/bison.pyo \
+		%%PYTHON_SITELIBDIR%%/bison_.so
 
 .include <bsd.port.pre.mk>
 
@@ -35,20 +45,14 @@
 BROKEN=		Does not compile on ia64
 .endif
 
-.if !defined(NOPORTDOCS)
 post-install:
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
-	@${FIND} ${DOCSDIR} ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
-	@${FIND} ${EXAMPLESDIR} ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif
 
 .include <bsd.port.post.mk>
diff -urN /usr/ports/devel/py-bison/pkg-descr devel/py-bison/pkg-descr
--- /usr/ports/devel/py-bison/pkg-descr	2004-08-23 15:13:12.000000000 +0900
+++ devel/py-bison/pkg-descr	2012-05-29 20:12:31.000000000 +0900
@@ -21,4 +21,4 @@
      * Can export parse tree to XML with a simple method call
      * Can reconstitute a parse tree from XML
 
-WWW: http://www.freenet.org.nz/python/pybison/
+WWW: http://freenet.mcnabhosting.com/python/pybison/
diff -urN /usr/ports/devel/py-bison/pkg-plist devel/py-bison/pkg-plist
--- /usr/ports/devel/py-bison/pkg-plist	2004-08-23 15:13:12.000000000 +0900
+++ devel/py-bison/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,5 +0,0 @@
-bin/bison2py
-%%PYTHON_SITELIBDIR%%/bison.py
-%%PYTHON_SITELIBDIR%%/bison.pyc
-%%PYTHON_SITELIBDIR%%/bison.pyo
-%%PYTHON_SITELIBDIR%%/bison_.so
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jun 25 18:10:48 UTC 2012 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169409 
Responsible-Changed-From-To: miwi->sperber 
Responsible-Changed-By: sperber 
Responsible-Changed-When: Tue Jul 17 07:57:27 UTC 2012 
Responsible-Changed-Why:  
miwi asked me to take it. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/169409: commit references a PR
Date: Thu, 19 Jul 2012 17:26:24 +0000 (UTC)

 Author: sperber
 Date: Thu Jul 19 17:26:13 2012
 New Revision: 301164
 URL: http://svn.freebsd.org/changeset/ports/301164
 
 Log:
   - Update MASTER_SITES and WWW: line
   - Add LICENSE
   - Support PORTEXAMPLES/PLIST_FILES
   - Switch to optionsng
   
   PR:           ports/169409
   Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com>
   Approved by:  beat (mentor)
 
 Deleted:
   head/devel/py-bison/pkg-plist
 Modified:
   head/devel/py-bison/Makefile   (contents, props changed)
   head/devel/py-bison/pkg-descr   (contents, props changed)
 
 Modified: head/devel/py-bison/Makefile
 ==============================================================================
 --- head/devel/py-bison/Makefile	Thu Jul 19 17:25:31 2012	(r301163)
 +++ head/devel/py-bison/Makefile	Thu Jul 19 17:26:13 2012	(r301164)
 @@ -10,24 +10,34 @@ PORTNAME=	bison
  PORTVERSION=	0.1.8
  PORTREVISION=	2
  CATEGORIES=	devel python
 -MASTER_SITES=	http://www.freenet.org.nz/python/pybison/
 +MASTER_SITES=	http://freenet.mcnabhosting.com/python/pybison/
  PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
  DISTNAME=	py${PORTNAME}-${PORTVERSION}
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	Python-based parsing at the speed of C
  
 +LICENSE=	GPLv2
 +
  BUILD_DEPENDS=	pyrex>=0.9.6.2:${PORTSDIR}/devel/pyrex
  
 +OPTIONS_DEFINE=	DOCS EXAMPLES
 +
  USE_BISON=	both
  USE_PYTHON=	yes
  USE_PYDISTUTILS=	yes
  PYDISTUTILS_PKGVERSION=	0.1
  
 -.if !defined(NOPORTDOCS)
 -DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 -EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
 -.endif
 +DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 +EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 +
 +PORTDOCS=	*
 +PORTEXAMPLES=	*
 +PLIST_FILES=	bin/bison2py \
 +		%%PYTHON_SITELIBDIR%%/bison.py \
 +		%%PYTHON_SITELIBDIR%%/bison.pyc \
 +		%%PYTHON_SITELIBDIR%%/bison.pyo \
 +		%%PYTHON_SITELIBDIR%%/bison_.so
  
  .include <bsd.port.pre.mk>
  
 @@ -35,20 +45,14 @@ EXAMPLESDIR=	${PREFIX}/share/examples/${
  BROKEN=		Does not compile on ia64
  .endif
  
 -.if !defined(NOPORTDOCS)
  post-install:
 +.if ${PORT_OPTIONS:MDOCS}
  	@${MKDIR} ${DOCSDIR}
 -	${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
 -	@${FIND} ${DOCSDIR} ! -type d | \
 -		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
 -	@${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
 -		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 +	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
 +.endif
 +.if ${PORT_OPTIONS:MEXAMPLES}
  	@${MKDIR} ${EXAMPLESDIR}
 -	${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
 -	@${FIND} ${EXAMPLESDIR} ! -type d | \
 -		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
 -	@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
 -		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 +	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
  .endif
  
  .include <bsd.port.post.mk>
 
 Modified: head/devel/py-bison/pkg-descr
 ==============================================================================
 --- head/devel/py-bison/pkg-descr	Thu Jul 19 17:25:31 2012	(r301163)
 +++ head/devel/py-bison/pkg-descr	Thu Jul 19 17:26:13 2012	(r301164)
 @@ -21,4 +21,4 @@ Features
       * Can export parse tree to XML with a simple method call
       * Can reconstitute a parse tree from XML
  
 -WWW: http://www.freenet.org.nz/python/pybison/
 +WWW: http://freenet.mcnabhosting.com/python/pybison/
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: sperber 
State-Changed-When: Thu Jul 19 17:46:21 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

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