ports/78712: [Update Ports] Rename ja-pycodec to ja-py??-pycodec

HAYASHI Yasushi yasi at yasi.to
Fri Mar 11 23:30:07 UTC 2005


>Number:         78712
>Category:       ports
>Synopsis:       [Update Ports] Rename ja-pycodec to ja-py??-pycodec
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 11 23:30:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     HAYASHI Yasushi
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
personal 
>Environment:
System: FreeBSD yasi.minidns.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #21: Sun Feb 27 10:16:13 JST 2005 yasi at yasi.minidns.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	Like other python packages, I want to add python version into
	ja-pycodec PKGNAME.
	I use ja-pycodec with python2.3 and Zope usually.  Sometime I want to
	use it with python2.4.  But I can't install ja-pycodec with python2.4
	via ports/package because ja-pycodec with python2.3 has same PKGNAME.
	
>How-To-Repeat:
	
>Fix:

diff -urN /usr/ports/japanese/pycodec.old/Makefile /usr/ports/japanese/pycodec/Makefile
--- /usr/ports/japanese/pycodec.old/Makefile	Sun Nov 28 20:53:46 2004
+++ /usr/ports/japanese/pycodec/Makefile	Fri Mar 11 23:30:43 2005
@@ -18,7 +18,11 @@
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
 USE_REINPLACE=	yes
-DOCSDIR=	${PREFIX}/share/doc/ja-pycodec
+DOCSDIR=	${PREFIX}/share/doc/ja/${PYTHON_PKGNAMEPREFIX}pycodec
+
+.include <bsd.port.pre.mk>
+
+PKGNAMEPREFIX:=	${PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}
 
 post-patch:
 	${REINPLACE_CMD} -e 's,^static,static const,g' \
@@ -31,4 +35,4 @@
 	${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/japanese/pycodec.old/pkg-plist /usr/ports/japanese/pycodec/pkg-plist
--- /usr/ports/japanese/pycodec.old/pkg-plist	Tue Oct  8 13:32:21 2002
+++ /usr/ports/japanese/pycodec/pkg-plist	Fri Mar 11 23:28:32 2005
@@ -101,6 +101,6 @@
 @dirrm %%PYTHON_SITELIBDIR%%/japanese/c
 @dirrm %%PYTHON_SITELIBDIR%%/japanese/aliases
 @dirrm %%PYTHON_SITELIBDIR%%/japanese
-%%PORTDOCS%%share/doc/ja-pycodec/README.en
-%%PORTDOCS%%share/doc/ja-pycodec/README.ja
-%%PORTDOCS%%@dirrm share/doc/ja-pycodec
+%%PORTDOCS%%%%DOCSDIR%%/README.en
+%%PORTDOCS%%%%DOCSDIR%%/README.ja
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list