Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2001 14:48:46 -0700 (PDT)
From:      Hye-Shik Chang <perky@python.or.kr>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/28375: New port: chinese/pycodec
Message-ID:  <200106232148.f5NLmkl68708@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         28375
>Category:       ports
>Synopsis:       New port: chinese/pycodec
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 23 14:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD current
>Organization:
Yonsei University
>Environment:
FreeBSD my.a-ra.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Jun 24 06:07:26 KST 2001     root@my.a-ra.net:/usr/src/sys/compile/PERKY  i386
>Description:
Python Unicode codec for Chinese charsets(big5, euc-gb...)
this is sourceforge project but they don't release with sourceforge
standard path.
and this is friend of japanese/pycodec and korean/pycodec. :)

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pycodec
#	pycodec/Makefile
#	pycodec/distinfo
#	pycodec/pkg-comment
#	pycodec/pkg-descr
#	pycodec/pkg-plist
#
echo c - pycodec
mkdir -p pycodec > /dev/null 2>&1
echo x - pycodec/Makefile
sed 's/^X//' >pycodec/Makefile << 'END-of-pycodec/Makefile'
X# New ports collection makefile for:	zh-pycodec
X# Date created:		24 June 2001
X# Whom:			Hye-Shik Chang <perky@python.or.kr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pycodec
XPORTVERSION=	1.2.0
XCATEGORIES=	chinese python converters
XMASTER_SITES=	ftp://python-codecs.sourceforge.net/pub/python-codecs/ \
X		ftp://ftp2.python.or.kr/pub/FreeBSD/ports/distfiles/ \
X		ftp://www3.kr.freebsd.org/~perky/distfiles/
XDISTNAME=	ChineseCodecs${PORTVERSION}
X
XMAINTAINER=	perky@python.or.kr
X
XBUILD_DEPENDS=	${PYDISTUTILS}
X
XUSE_PYTHON=	yes
XNO_BUILD=	yes
XPLIST_SUB+=	PYTHON_CODECDIR=${PYCODEC_DIR:S,^${LOCALBASE}/,,g}
XPYCODEC_DIR=	${PYTHON_LIBDIR}/encodings
XPYDIST_SETUP=	cd ${WRKSRC}/Python && ${PYTHON_CMD} setup.py
X
Xdo-install:
X	${PYDIST_SETUP} install --install-lib="${PYCODEC_DIR}"
X
X.include <bsd.port.mk>
END-of-pycodec/Makefile
echo x - pycodec/distinfo
sed 's/^X//' >pycodec/distinfo << 'END-of-pycodec/distinfo'
XMD5 (ChineseCodecs1.2.0.tar.gz) = 988651068ba9de62cc5b6e558e8e2158
END-of-pycodec/distinfo
echo x - pycodec/pkg-comment
sed 's/^X//' >pycodec/pkg-comment << 'END-of-pycodec/pkg-comment'
XPython Unicode codecs for Chinese charsets
END-of-pycodec/pkg-comment
echo x - pycodec/pkg-descr
sed 's/^X//' >pycodec/pkg-descr << 'END-of-pycodec/pkg-descr'
XThis package provides Unicode codecs that make Python aware of
XChinese character encodings such as Big5, EUC-GB2312.
XBy using this package, Chinese characters can be treated
Xas a character string instead of a byte sequence.
X
XWWW: http://sourceforge.net/projects/python-codecs/
END-of-pycodec/pkg-descr
echo x - pycodec/pkg-plist
sed 's/^X//' >pycodec/pkg-plist << 'END-of-pycodec/pkg-plist'
X%%PYTHON_CODECDIR%%/big5_tw.py
X%%PYTHON_CODECDIR%%/chinesetw/__init__.py
X%%PYTHON_CODECDIR%%/chinesetw/big52utf1.py
X%%PYTHON_CODECDIR%%/chinesetw/big52utf2.py
X%%PYTHON_CODECDIR%%/chinesetw/utf2big51.py
X%%PYTHON_CODECDIR%%/chinesetw/utf2big52.py
X%%PYTHON_CODECDIR%%/big5_tw.pyc
X%%PYTHON_CODECDIR%%/chinesetw/__init__.pyc
X%%PYTHON_CODECDIR%%/chinesetw/big52utf1.pyc
X%%PYTHON_CODECDIR%%/chinesetw/big52utf2.pyc
X%%PYTHON_CODECDIR%%/chinesetw/utf2big51.pyc
X%%PYTHON_CODECDIR%%/chinesetw/utf2big52.pyc
X@dirrm %%PYTHON_CODECDIR%%/chinesetw
X%%PYTHON_CODECDIR%%/eucgb2312_cn.py
X%%PYTHON_CODECDIR%%/chinesecn/__init__.py
X%%PYTHON_CODECDIR%%/chinesecn/euc_gb23122utf.py
X%%PYTHON_CODECDIR%%/chinesecn/utf2euc_gb2312.py
X%%PYTHON_CODECDIR%%/eucgb2312_cn.pyc
X%%PYTHON_CODECDIR%%/chinesecn/__init__.pyc
X%%PYTHON_CODECDIR%%/chinesecn/euc_gb23122utf.pyc
X%%PYTHON_CODECDIR%%/chinesecn/utf2euc_gb2312.pyc
X@dirrm %%PYTHON_CODECDIR%%/chinesecn
END-of-pycodec/pkg-plist
exit


>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?200106232148.f5NLmkl68708>