summaryrefslogtreecommitdiffstats
path: root/korean
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-06-23 19:25:32 +0000
committerknu <knu@FreeBSD.org>2001-06-23 19:25:32 +0000
commit8179644b26f4c3239ab5fbbc7c7511efedb2dc7b (patch)
tree573bf49b4684bf17c6b3580a496e3a32a26050af /korean
parent843d05cee630ba144417d431aef292b0a25f3a58 (diff)
downloadFreeBSD-ports-8179644b26f4c3239ab5fbbc7c7511efedb2dc7b.zip
FreeBSD-ports-8179644b26f4c3239ab5fbbc7c7511efedb2dc7b.tar.gz
Add ko-pycodec, Python Unicode codecs for Korean charsets.
PR: ports/26988 Submitted by: Chang, Hye-Shik <perky@python.or.kr> (with a distfile repack confirmed)
Diffstat (limited to 'korean')
-rw-r--r--korean/Makefile1
-rw-r--r--korean/pycodec/Makefile34
-rw-r--r--korean/pycodec/distinfo1
-rw-r--r--korean/pycodec/pkg-comment1
-rw-r--r--korean/pycodec/pkg-descr4
-rw-r--r--korean/pycodec/pkg-plist21
6 files changed, 62 insertions, 0 deletions
diff --git a/korean/Makefile b/korean/Makefile
index 4fa0e4d..e2a29b9 100644
--- a/korean/Makefile
+++ b/korean/Makefile
@@ -2,6 +2,7 @@
#
SUBDIR += w3m
SUBDIR += uniksc
+ SUBDIR += pycodec
SUBDIR += texinfo
SUBDIR += FreeWnn-lib
diff --git a/korean/pycodec/Makefile b/korean/pycodec/Makefile
new file mode 100644
index 0000000..3451ca2
--- /dev/null
+++ b/korean/pycodec/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: ko-pycodec
+# Date created: 29 April 2001
+# Whom: Hye-Shik Chang <perky@python.or.kr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pycodec
+PORTVERSION= 1.4
+CATEGORIES= korean python converters
+MASTER_SITES= ftp://people.linuxkorea.co.kr/pub/Python/ \
+ ftp://ftp2.python.or.kr/pub/FreeBSD/ports/distfiles/ \
+ ftp://www3.kr.freebsd.org/pub/FreeBSD/ports/distfiles/
+DISTNAME= KoreanCodecs-${PORTVERSION}
+
+MAINTAINER= perky@python.or.kr
+
+USE_PYTHON= yes
+PYTHON_CODECDIR=${PYTHON_LIBDIR}/encodings
+PLIST_SUB+= PYTHON_CODECDIR=${PYTHON_CODECDIR:S,^${LOCALBASE}/,,g}
+
+# Since there's only one popular encoding in korea,
+# this codec doesn't install into site-packages like ja-pycodec
+# for using like unicode("KANADARA", "euc-kr")
+do-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/euc_kr.py* ${WRKSRC}/uhc.py* \
+ ${PYTHON_CODECDIR}/
+ ${MKDIR} ${PYTHON_CODECDIR}/korean
+ ${INSTALL_DATA} ${WRKSRC}/korean/* ${PYTHON_CODECDIR}/korean
+
+.include <bsd.port.mk>
diff --git a/korean/pycodec/distinfo b/korean/pycodec/distinfo
new file mode 100644
index 0000000..c18cc0b
--- /dev/null
+++ b/korean/pycodec/distinfo
@@ -0,0 +1 @@
+MD5 (KoreanCodecs-1.4.tar.gz) = f10fe99044a4737bb78b75c291e44160
diff --git a/korean/pycodec/pkg-comment b/korean/pycodec/pkg-comment
new file mode 100644
index 0000000..2e197bf
--- /dev/null
+++ b/korean/pycodec/pkg-comment
@@ -0,0 +1 @@
+Python Unicode codecs for Korean charsets
diff --git a/korean/pycodec/pkg-descr b/korean/pycodec/pkg-descr
new file mode 100644
index 0000000..b94cbd8
--- /dev/null
+++ b/korean/pycodec/pkg-descr
@@ -0,0 +1,4 @@
+This package provides Unicode codecs that make Python aware of
+Korean character encoding 'EUC-KR'. By using this package,
+Korean characters can be treated as a character string
+instead of a byte sequence.
diff --git a/korean/pycodec/pkg-plist b/korean/pycodec/pkg-plist
new file mode 100644
index 0000000..8a06f78
--- /dev/null
+++ b/korean/pycodec/pkg-plist
@@ -0,0 +1,21 @@
+%%PYTHON_CODECDIR%%/euc_kr.py
+%%PYTHON_CODECDIR%%/euc_kr.pyc
+%%PYTHON_CODECDIR%%/korean/__init__.py
+%%PYTHON_CODECDIR%%/korean/euc2ucs.py
+%%PYTHON_CODECDIR%%/korean/hanja2ucs.py
+%%PYTHON_CODECDIR%%/korean/misc2ucs.py
+%%PYTHON_CODECDIR%%/korean/ucs2euc.py
+%%PYTHON_CODECDIR%%/korean/ucs2hanja.py
+%%PYTHON_CODECDIR%%/korean/ucs2misc.py
+%%PYTHON_CODECDIR%%/korean/ucs2uhc.py
+%%PYTHON_CODECDIR%%/korean/uhc2ucs.py
+%%PYTHON_CODECDIR%%/korean/__init__.pyc
+%%PYTHON_CODECDIR%%/korean/euc2ucs.pyc
+%%PYTHON_CODECDIR%%/korean/hanja2ucs.pyc
+%%PYTHON_CODECDIR%%/korean/misc2ucs.pyc
+%%PYTHON_CODECDIR%%/korean/ucs2euc.pyc
+%%PYTHON_CODECDIR%%/korean/ucs2hanja.pyc
+%%PYTHON_CODECDIR%%/korean/ucs2misc.pyc
+%%PYTHON_CODECDIR%%/korean/ucs2uhc.pyc
+%%PYTHON_CODECDIR%%/korean/uhc2ucs.pyc
+@dirrm %%PYTHON_CODECDIR%%/korean
OpenPOWER on IntegriCloud