Date: Fri, 21 Dec 2001 15:25:34 -0800 (PST) From: Hye-Shik Chang <perky@fallin.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/33076: Update port: converters/py-iconv (not fetchable currently) Message-ID: <200112212325.fBLNPYW96264@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 33076 >Category: ports >Synopsis: Update port: converters/py-iconv (not fetchable currently) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 21 15:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Hye-Shik Chang >Release: FreeBSD 4.4 >Organization: Yonsei University >Environment: FreeBSD perky.dnip.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Fri Nov 16 15:54:51 KST 2001 root@perky.dnip.net:/usr/src/sys/compile/PERKY i386 >Description: py-iconv port installs Stepan Koltsov's. but, his distfile is not fetchable anymore. and he seems not to maintain it. so, py-iconv has changed to Martin Loewis's(He is Python Core Developer) it provides iconv-unicodec adopter, too. but, Loewis's had never released officialy but by cvs. anyway, I think his implementation is stable and powerful enough for substitution. added file : files/patch-iconvcodec.py >How-To-Repeat: >Fix: diff -ruN py-iconv.orig/Makefile py-iconv/Makefile --- py-iconv.orig/Makefile Mon Sep 17 02:25:13 2001 +++ py-iconv/Makefile Sat Dec 22 08:13:45 2001 @@ -5,19 +5,29 @@ # $FreeBSD: ports/converters/py-iconv/Makefile,v 1.1 2001/09/16 17:25:13 kevlo Exp $ PORTNAME= iconv -PORTVERSION= 0.1.2 +PORTVERSION= 1.0 CATEGORIES= converters python -MASTER_SITES= http://www.mx1.ru/iconv/ +MASTER_SITES= ftp://people.linuxkorea.co.kr/pub/Python/ \ + http://cvsup3.kr.freebsd.org/~perky/distfiles/ \ + http://www3.kr.freebsd.org/~perky/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DIST_SUBDIR= python MAINTAINER= perky@python.or.kr BUILD_DEPENDS= ${PYDISTUTILS} -LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv +LIB_DEPENDS= iconv:${PORTSDIR}/converters/iconv USE_PYTHON= yes SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g} + +SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\ + include_dirs=["${LOCALBASE}/include"] + +post-patch: + cd ${WRKSRC} && ${SED} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\ + setup.py > setup.py.tmp && ${CAT} setup.py.tmp > setup.py do-build: ${SETUP_CMD} build diff -ruN py-iconv.orig/distinfo py-iconv/distinfo --- py-iconv.orig/distinfo Mon Sep 17 02:25:13 2001 +++ py-iconv/distinfo Sat Dec 22 07:30:30 2001 @@ -1 +1 @@ -MD5 (iconv-0.1.2.tar.gz) = b077173868e512453ecec8f45ae8eedc +MD5 (iconv-1.0.tar.gz) = 8f97f853d01b0cc0d2007112fcafe28b diff -ruN py-iconv.orig/files/patch-iconvcodec.py py-iconv/files/patch-iconvcodec.py --- py-iconv.orig/files/patch-iconvcodec.py Thu Jan 1 09:00:00 1970 +++ py-iconv/files/patch-iconvcodec.py Sat Dec 22 08:04:53 2001 @@ -0,0 +1,15 @@ +--- iconvcodec.py.orig Sat Dec 22 08:04:10 2001 ++++ iconvcodec.py Sat Dec 22 08:04:31 2001 +@@ -3,11 +3,7 @@ + # First we need to find out what the Unicode code set name is + # in this iconv implementation + +-if sys.platform.startswith("linux"): +- unicodename = "unicode"+sys.byteorder +-else: +- # may need to try UCS-2, UCS-2-LE/BE, Unicode, ... +- raise ImportError,"cannot establish name of 2-byte Unicode" ++unicodename = "ucs-2-internal" + + class Codec(codecs.Codec): + def __init__(self): diff -ruN py-iconv.orig/pkg-comment py-iconv/pkg-comment --- py-iconv.orig/pkg-comment Sun Oct 21 16:52:29 2001 +++ py-iconv/pkg-comment Sat Dec 22 08:13:11 2001 @@ -1 +1 @@ -An iconv wrapper for Python +An iconv wrapper with unicode codec for Python diff -ruN py-iconv.orig/pkg-descr py-iconv/pkg-descr --- py-iconv.orig/pkg-descr Mon Sep 17 02:25:13 2001 +++ py-iconv/pkg-descr Sat Dec 22 08:13:19 2001 @@ -1,4 +1,3 @@ -This is an iconv wrapper for Python. +This is an iconv wrapper with unicode codec for Python. -WWW: http://freshmeat.net/projects/iconv4python/ -(author's homepage is http://www.mx1.ru/iconv/ but it's not available now) +WWW: http://sourceforge.net/projects/python-codecs diff -ruN py-iconv.orig/pkg-plist py-iconv/pkg-plist --- py-iconv.orig/pkg-plist Mon Sep 17 02:25:13 2001 +++ py-iconv/pkg-plist Sat Dec 22 08:09:09 2001 @@ -1 +1,3 @@ %%PYTHON_SITELIBDIR%%/iconv.so +%%PYTHON_SITELIBDIR%%/iconvcodecs.py +%%PYTHON_SITELIBDIR%%/iconvcodecs.pyc >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112212325.fBLNPYW96264>