summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>2001-11-07 17:01:03 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>2001-11-07 17:01:03 +0000
commit17d2557acf5eab0143c8d7f0acaedeaa5c7916c1 (patch)
tree938af7ca920cc43edfc940cac05d9ab2969bc540 /chinese
parentUpdate checksum for one distfile (diff)
Chinese GBK/Big5 locales for Linux Glibc 2.1
Notice: I know chinese/cle_base which corresponds to emulators/linux_base and Chinese locale but it is large and if cle_base is installed then Asian languages except Chinese could *NOT* be used when I tried. In zh-linux_locale + linux_base, almost languages could be used. So this port is needed to treat these.
Notes
Notes: svn path=/head/; revision=49751
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/linux_locale/Makefile61
-rw-r--r--chinese/linux_locale/distinfo2
-rw-r--r--chinese/linux_locale/pkg-comment1
-rw-r--r--chinese/linux_locale/pkg-descr3
-rw-r--r--chinese/linux_locale/pkg-plist29
6 files changed, 97 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 83a2e426ce5b..fc0dcf5f8946 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -46,6 +46,7 @@
SUBDIR += linux-gtk
SUBDIR += linux-netscape47-communicator
SUBDIR += linux-netscape47-navigator
+ SUBDIR += linux_locale
SUBDIR += lunar
SUBDIR += mkisofs
SUBDIR += moefonts-cid
diff --git a/chinese/linux_locale/Makefile b/chinese/linux_locale/Makefile
new file mode 100644
index 000000000000..b23a1921199e
--- /dev/null
+++ b/chinese/linux_locale/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: zh-linux_locale
+# Date created: 01/09/29
+# Whom: taoka@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= linux_locale
+PORTVERSION= ${VERSION:S/+/./}
+CATEGORIES= chinese emulators linux
+MASTER_SITES= ftp://ftp.jp.debian.org/debian/dists/potato/main/source/admin/
+DISTNAME= locale-zh_${VERSION}.orig
+
+PATCH_SITES= ${MASTER_SITES}
+PATCHFILES= locale-zh_${VERSION}-${PATCHLEVEL}.diff.gz
+PATCH_DIST_STRIP=-p1
+MAINTAINER= taoka@FreeBSD.org
+
+BUILD_DEPENDS= ${LCDEF_CMD}:${PORTSDIR}/emulators/linux_base
+
+USE_LINUX_PREFIX= yes
+WRKSRC= ${WRKDIR}/zh-localedata-${VERSION:C/\\+.*//}
+PLIST_SUB= VER=${VERSION}
+
+VERSION= 0.9+0.05
+PATCHLEVEL= 5
+REPERTOIRE_MAP= ${LINUXBASE}/usr/share/i18n/repertoiremaps/mnemonic.ds
+LCDEF_CMD= ${LINUXBASE}/usr/bin/localedef
+TLCDEF_ARGS= --repertoire-map=${REPERTOIRE_MAP} \
+ -c -f ./BIG5_1984 -i ./zh_TW.Big5
+CLCDEF_ARGS= --repertoire-map=${REPERTOIRE_MAP} \
+ -c -f ./GB2312 -i ./zh_CN.GB2312
+TLCDIR= ${PREFIX}/usr/share/locale/zh_TW.Big5
+CLCDIR= ${PREFIX}/usr/share/locale/zh_CN.GB2312
+DOCDIR= ${PREFIX}/usr/doc/locale-zh-${VERSION}
+
+post-patch:
+ ${RM} -f ${WRKSRC}/debian/*.orig
+
+do-build:
+ cd ${WRKSRC}/zh_TW.Big5; ${LCDEF_CMD} ${TLCDEF_ARGS} ${WRKDIR}/zh_TW.Big5
+ cd ${WRKSRC}/zh_CN.GB2312; ${LCDEF_CMD} ${CLCDEF_ARGS} ${WRKDIR}/zh_CN.GB2312
+
+do-install:
+ ${MKDIR} ${TLCDIR}/LC_MESSAGES
+ ${MKDIR} ${CLCDIR}/LC_MESSAGES
+.for LC in COLLATE CTYPE MONETARY NUMERIC TIME
+ ${INSTALL_DATA} ${WRKDIR}/zh_TW.Big5/LC_${LC} ${TLCDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKDIR}/zh_TW.Big5/LC_MESSAGES/SYS_LC_MESSAGES ${TLCDIR}/LC_MESSAGES
+.for LC in COLLATE CTYPE MONETARY NUMERIC TIME
+ ${INSTALL_DATA} ${WRKDIR}/zh_CN.GB2312/LC_${LC} ${CLCDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKDIR}/zh_CN.GB2312/LC_MESSAGES/SYS_LC_MESSAGES ${CLCDIR}/LC_MESSAGES
+ ${LN} -sf zh_TW.Big5 ${PREFIX}/usr/share/locale/zh_TW
+ ${LN} -sf zh_CN.GB2312 ${PREFIX}/usr/share/locale/zh_CN
+ ${LN} -sf zh_CN.GB2312 ${PREFIX}/usr/share/locale/zh
+ ${MKDIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/debian/* ${DOCDIR}
+
+.include <bsd.port.mk>
diff --git a/chinese/linux_locale/distinfo b/chinese/linux_locale/distinfo
new file mode 100644
index 000000000000..776b481ef2b1
--- /dev/null
+++ b/chinese/linux_locale/distinfo
@@ -0,0 +1,2 @@
+MD5 (locale-zh_0.9+0.05.orig.tar.gz) = 3e60057eb46fc625d9e25e6b6bd72d38
+MD5 (locale-zh_0.9+0.05-5.diff.gz) = ee2d679f1226485a6b7351eebba68871
diff --git a/chinese/linux_locale/pkg-comment b/chinese/linux_locale/pkg-comment
new file mode 100644
index 000000000000..f64e03c5cd4e
--- /dev/null
+++ b/chinese/linux_locale/pkg-comment
@@ -0,0 +1 @@
+Chinese GBK/Big5 locales for Linux Glibc 2.1
diff --git a/chinese/linux_locale/pkg-descr b/chinese/linux_locale/pkg-descr
new file mode 100644
index 000000000000..2df27cbb4599
--- /dev/null
+++ b/chinese/linux_locale/pkg-descr
@@ -0,0 +1,3 @@
+Chinese GBK/Big5 locales for Linux Glibc 2.1
+
+WWW: http://packages.debian.org/stable/admin/locale-zh.html
diff --git a/chinese/linux_locale/pkg-plist b/chinese/linux_locale/pkg-plist
new file mode 100644
index 000000000000..16c24b2684e8
--- /dev/null
+++ b/chinese/linux_locale/pkg-plist
@@ -0,0 +1,29 @@
+usr/doc/locale-zh-%%VER%%/changelog
+usr/doc/locale-zh-%%VER%%/control
+usr/doc/locale-zh-%%VER%%/localedata-zh.spec
+usr/doc/locale-zh-%%VER%%/copyright
+usr/doc/locale-zh-%%VER%%/rules
+usr/doc/locale-zh-%%VER%%/zh-localdata.spec
+usr/share/locale/zh_TW.Big5/LC_COLLATE
+usr/share/locale/zh_TW.Big5/LC_CTYPE
+usr/share/locale/zh_TW.Big5/LC_MESSAGES/SYS_LC_MESSAGES
+usr/share/locale/zh_TW.Big5/LC_MONETARY
+usr/share/locale/zh_TW.Big5/LC_NUMERIC
+usr/share/locale/zh_TW.Big5/LC_TIME
+@dirrm usr/share/locale/zh_TW.Big5/LC_MESSAGES
+@dirrm usr/share/locale/zh_TW.Big5
+usr/share/locale/zh_CN.GB2312/LC_COLLATE
+usr/share/locale/zh_CN.GB2312/LC_CTYPE
+usr/share/locale/zh_CN.GB2312/LC_MESSAGES/SYS_LC_MESSAGES
+usr/share/locale/zh_CN.GB2312/LC_MONETARY
+usr/share/locale/zh_CN.GB2312/LC_NUMERIC
+usr/share/locale/zh_CN.GB2312/LC_TIME
+@exec ln -sf zh_TW.Big5 %D/usr/share/locale/zh_TW
+@exec ln -sf zh_CN.GB2312 %D/usr/share/locale/zh_CN
+@exec ln -sf zh_CN.GB2312 %D/usr/share/locale/zh
+@unexec rm -f %D/usr/share/locale/zh_TW
+@unexec rm -f %D/usr/share/locale/zh_CN
+@unexec rm -f %D/usr/share/locale/zh
+@dirrm usr/share/locale/zh_CN.GB2312/LC_MESSAGES
+@dirrm usr/share/locale/zh_CN.GB2312
+@dirrm usr/doc/locale-zh-%%VER%%