diff --git a/korean/Makefile b/korean/Makefile index 4fa0e4dcc842..e2a29b9194a5 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 000000000000..3451ca20ed5f --- /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 +# +# $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 diff --git a/korean/pycodec/distinfo b/korean/pycodec/distinfo new file mode 100644 index 000000000000..c18cc0b508e6 --- /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 000000000000..2e197bff96f0 --- /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 000000000000..b94cbd8139e8 --- /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 000000000000..8a06f78577dd --- /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