aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-11 17:14:08 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-11 17:14:08 +0800
commitd6a4d5da6a0827e8230e735b8326647f5187e2ef (patch)
tree699fb95530523c4caddbec18a6f8672186e6cbd4 /chinese
parentc741e5e14fc621f9ff8099a61109e261bbcb0b86 (diff)
downloadfreebsd-ports-gnome-d6a4d5da6a0827e8230e735b8326647f5187e2ef.tar.gz
freebsd-ports-gnome-d6a4d5da6a0827e8230e735b8326647f5187e2ef.tar.zst
freebsd-ports-gnome-d6a4d5da6a0827e8230e735b8326647f5187e2ef.zip
add zh-pycodec
Python Unicode codecs for Chinese charsets PR: 28375 Submitted by: Hye-Shik Chang <perky@python.or.kr>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/pycodec/Makefile29
-rw-r--r--chinese/pycodec/distinfo1
-rw-r--r--chinese/pycodec/pkg-comment1
-rw-r--r--chinese/pycodec/pkg-descr6
-rw-r--r--chinese/pycodec/pkg-plist22
6 files changed, 60 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index aa4e80810652..dae9d71d760f 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -68,6 +68,7 @@
SUBDIR += p5-Date-Chinese
SUBDIR += pine4
SUBDIR += pyDict
+ SUBDIR += pycodec
SUBDIR += qe
SUBDIR += qterm
SUBDIR += rxvt
diff --git a/chinese/pycodec/Makefile b/chinese/pycodec/Makefile
new file mode 100644
index 000000000000..0390a09311e8
--- /dev/null
+++ b/chinese/pycodec/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: zh-pycodec
+# Date created: 24 June 2001
+# Whom: Hye-Shik Chang <perky@python.or.kr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pycodec
+PORTVERSION= 1.2.0
+CATEGORIES= chinese python converters
+MASTER_SITES= ftp://python-codecs.sourceforge.net/pub/python-codecs/ \
+ ftp://ftp2.python.or.kr/pub/FreeBSD/ports/distfiles/ \
+ ftp://www3.kr.freebsd.org/~perky/distfiles/
+DISTNAME= ChineseCodecs${PORTVERSION}
+
+MAINTAINER= perky@python.or.kr
+
+BUILD_DEPENDS= ${PYDISTUTILS}
+
+USE_PYTHON= yes
+NO_BUILD= yes
+PLIST_SUB+= PYTHON_CODECDIR=${PYCODEC_DIR:S,^${LOCALBASE}/,,g}
+PYCODEC_DIR= ${PYTHON_LIBDIR}/encodings
+PYDIST_SETUP= cd ${WRKSRC}/Python && ${PYTHON_CMD} setup.py
+
+do-install:
+ ${PYDIST_SETUP} install --install-lib="${PYCODEC_DIR}"
+
+.include <bsd.port.mk>
diff --git a/chinese/pycodec/distinfo b/chinese/pycodec/distinfo
new file mode 100644
index 000000000000..4399bf2e07ba
--- /dev/null
+++ b/chinese/pycodec/distinfo
@@ -0,0 +1 @@
+MD5 (ChineseCodecs1.2.0.tar.gz) = 988651068ba9de62cc5b6e558e8e2158
diff --git a/chinese/pycodec/pkg-comment b/chinese/pycodec/pkg-comment
new file mode 100644
index 000000000000..913001ffba38
--- /dev/null
+++ b/chinese/pycodec/pkg-comment
@@ -0,0 +1 @@
+Python Unicode codecs for Chinese charsets
diff --git a/chinese/pycodec/pkg-descr b/chinese/pycodec/pkg-descr
new file mode 100644
index 000000000000..aab16e39ba17
--- /dev/null
+++ b/chinese/pycodec/pkg-descr
@@ -0,0 +1,6 @@
+This package provides Unicode codecs that make Python aware of
+Chinese character encodings such as Big5, EUC-GB2312.
+By using this package, Chinese characters can be treated
+as a character string instead of a byte sequence.
+
+WWW: http://sourceforge.net/projects/python-codecs/
diff --git a/chinese/pycodec/pkg-plist b/chinese/pycodec/pkg-plist
new file mode 100644
index 000000000000..505a19553fa3
--- /dev/null
+++ b/chinese/pycodec/pkg-plist
@@ -0,0 +1,22 @@
+%%PYTHON_CODECDIR%%/big5_tw.py
+%%PYTHON_CODECDIR%%/chinesetw/__init__.py
+%%PYTHON_CODECDIR%%/chinesetw/big52utf1.py
+%%PYTHON_CODECDIR%%/chinesetw/big52utf2.py
+%%PYTHON_CODECDIR%%/chinesetw/utf2big51.py
+%%PYTHON_CODECDIR%%/chinesetw/utf2big52.py
+%%PYTHON_CODECDIR%%/big5_tw.pyc
+%%PYTHON_CODECDIR%%/chinesetw/__init__.pyc
+%%PYTHON_CODECDIR%%/chinesetw/big52utf1.pyc
+%%PYTHON_CODECDIR%%/chinesetw/big52utf2.pyc
+%%PYTHON_CODECDIR%%/chinesetw/utf2big51.pyc
+%%PYTHON_CODECDIR%%/chinesetw/utf2big52.pyc
+@dirrm %%PYTHON_CODECDIR%%/chinesetw
+%%PYTHON_CODECDIR%%/eucgb2312_cn.py
+%%PYTHON_CODECDIR%%/chinesecn/__init__.py
+%%PYTHON_CODECDIR%%/chinesecn/euc_gb23122utf.py
+%%PYTHON_CODECDIR%%/chinesecn/utf2euc_gb2312.py
+%%PYTHON_CODECDIR%%/eucgb2312_cn.pyc
+%%PYTHON_CODECDIR%%/chinesecn/__init__.pyc
+%%PYTHON_CODECDIR%%/chinesecn/euc_gb23122utf.pyc
+%%PYTHON_CODECDIR%%/chinesecn/utf2euc_gb2312.pyc
+@dirrm %%PYTHON_CODECDIR%%/chinesecn