diff options
author | edwin <edwin@FreeBSD.org> | 2005-04-25 08:27:10 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-04-25 08:27:10 +0000 |
commit | abd1e1a6b93402739a2d5f782a5e11641e3f6848 (patch) | |
tree | 1ca4f5ac590ca36a0f3720bbc58e610292e49f44 /misc/thailocale | |
parent | 4e05f1330f76dd4e0f08a4b8b4a723a6956fb806 (diff) | |
download | FreeBSD-ports-abd1e1a6b93402739a2d5f782a5e11641e3f6848.zip FreeBSD-ports-abd1e1a6b93402739a2d5f782a5e11641e3f6848.tar.gz |
New port: misc/thailocale
A locale for Thai in Thailand, TIS-620 character set
PR: ports/75908
Submitted by: Thawatchai Piyawat <piyawat@usablelabs.com>
Diffstat (limited to 'misc/thailocale')
-rw-r--r-- | misc/thailocale/Makefile | 28 | ||||
-rw-r--r-- | misc/thailocale/distinfo | 2 | ||||
-rw-r--r-- | misc/thailocale/files/patch-Makefile | 25 | ||||
-rw-r--r-- | misc/thailocale/files/pkg-message.in | 4 | ||||
-rw-r--r-- | misc/thailocale/pkg-descr | 9 | ||||
-rw-r--r-- | misc/thailocale/pkg-plist | 9 |
6 files changed, 77 insertions, 0 deletions
diff --git a/misc/thailocale/Makefile b/misc/thailocale/Makefile new file mode 100644 index 0000000..adfd1d8 --- /dev/null +++ b/misc/thailocale/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: thailocale +# Date created: 5 January 2005 +# Whom: Thawatchai Piyawat <piyawat@usablelabs.com> +# +# $FreeBSD$ +# + +PORTNAME= thailocale +PORTVERSION= 0.11 +CATEGORIES= misc +MASTER_SITES= http://www.usablelabs.com/download/ + +MAINTAINER= piyawat@usablelabs.com +COMMENT= A locale for Thai in Thailand, TIS-620 character set + +USE_REINPLACE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message + +pre-configure: + ${REINPLACE_CMD} -e "s|/usr/share|${PREFIX}/share|" ${WRKSRC}/Makefile + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/misc/thailocale/distinfo b/misc/thailocale/distinfo new file mode 100644 index 0000000..2a9ac179a --- /dev/null +++ b/misc/thailocale/distinfo @@ -0,0 +1,2 @@ +MD5 (thailocale-0.11.tar.gz) = 32f909128dc7dad672e2ef3fcd22e8aa +SIZE (thailocale-0.11.tar.gz) = 6154 diff --git a/misc/thailocale/files/patch-Makefile b/misc/thailocale/files/patch-Makefile new file mode 100644 index 0000000..62856b6 --- /dev/null +++ b/misc/thailocale/files/patch-Makefile @@ -0,0 +1,25 @@ +--- Makefile.orig Thu Jan 6 06:26:30 2005 ++++ Makefile Fri Feb 25 23:20:52 2005 +@@ -45,8 +45,8 @@ + .endif + + install: lc_all check +- mkdir ${PATH} +- cp LC_CTYPE LC_COLLATE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES ${PATH} ++ mkdir -p ${PATH} ++ install -m 444 LC_CTYPE LC_COLLATE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES ${PATH} + ln -sf ${PATH} ${LPATH} + @echo + @echo "Installation successfully completed" +@@ -67,5 +67,10 @@ + @echo + + clean: +- -rm LC_CTYPE LC_COLLATE ++.if exists(LC_CTYPE) ++ rm LC_CTYPE ++.endif ++.if exists(LC_COLLATE) ++ rm LC_COLLATE ++.endif + diff --git a/misc/thailocale/files/pkg-message.in b/misc/thailocale/files/pkg-message.in new file mode 100644 index 0000000..f529fa8c --- /dev/null +++ b/misc/thailocale/files/pkg-message.in @@ -0,0 +1,4 @@ +Set the variable PATH_LOCALE to %%PREFIX%%/share/locale and export it, +e.g.: + +export PATH_LOCALE=%%PREFIX%%/share/locale diff --git a/misc/thailocale/pkg-descr b/misc/thailocale/pkg-descr new file mode 100644 index 0000000..a654b17 --- /dev/null +++ b/misc/thailocale/pkg-descr @@ -0,0 +1,9 @@ +This software is a POSIX Thai locale definition (Thai in Thailand) for +FreeBSD. It defines data files for the character set TIS 620.2533. +Once installed, it adds a locale 'th_TH.TIS-620' (and an alias 'th_TH') +to your system. + +WWW: http://www.usablelabs.com/download/thailocale-0.11.tar.gz + +Thawatchai Piyawat +piyawat@usablelabs.com diff --git a/misc/thailocale/pkg-plist b/misc/thailocale/pkg-plist new file mode 100644 index 0000000..0297a44 --- /dev/null +++ b/misc/thailocale/pkg-plist @@ -0,0 +1,9 @@ +share/locale/th_TH.TIS-620/LC_COLLATE +share/locale/th_TH.TIS-620/LC_CTYPE +share/locale/th_TH.TIS-620/LC_MESSAGES +share/locale/th_TH.TIS-620/LC_MONETARY +share/locale/th_TH.TIS-620/LC_NUMERIC +share/locale/th_TH.TIS-620/LC_TIME +@exec ln -sf %D/share/locale/th_TH.TIS-620 %D/share/locale/th_TH +@dirrm share/locale/th_TH.TIS-620 +@unexec rm -f %D/share/locale/th_TH |