diff options
author | Satoshi Taoka <taoka@FreeBSD.org> | 2001-11-07 17:01:03 +0000 |
---|---|---|
committer | Satoshi Taoka <taoka@FreeBSD.org> | 2001-11-07 17:01:03 +0000 |
commit | 17d2557acf5eab0143c8d7f0acaedeaa5c7916c1 (patch) | |
tree | 938af7ca920cc43edfc940cac05d9ab2969bc540 /chinese/linux_locale | |
parent | 6d9ec128621144b685f3a330c9ba77798f2385e4 (diff) | |
download | ports-17d2557acf5eab0143c8d7f0acaedeaa5c7916c1.tar.gz ports-17d2557acf5eab0143c8d7f0acaedeaa5c7916c1.zip |
Notes
Diffstat (limited to 'chinese/linux_locale')
-rw-r--r-- | chinese/linux_locale/Makefile | 61 | ||||
-rw-r--r-- | chinese/linux_locale/distinfo | 2 | ||||
-rw-r--r-- | chinese/linux_locale/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/linux_locale/pkg-descr | 3 | ||||
-rw-r--r-- | chinese/linux_locale/pkg-plist | 29 |
5 files changed, 96 insertions, 0 deletions
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%% |