New port: misc/thailocale

A locale for Thai in Thailand, TIS-620 character set

PR:		ports/75908
Submitted by:	Thawatchai Piyawat <piyawat@usablelabs.com>
This commit is contained in:
Edwin Groothuis 2005-04-25 08:27:10 +00:00
parent 2e7229d419
commit 419d508c1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134112
7 changed files with 78 additions and 0 deletions

View File

@ -400,6 +400,7 @@
SUBDIR += tempcontrol
SUBDIR += terraform
SUBDIR += tet
SUBDIR += thailocale
SUBDIR += tkcron
SUBDIR += tkinfo
SUBDIR += tkman

28
misc/thailocale/Makefile Normal file
View File

@ -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>

2
misc/thailocale/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (thailocale-0.11.tar.gz) = 32f909128dc7dad672e2ef3fcd22e8aa
SIZE (thailocale-0.11.tar.gz) = 6154

View File

@ -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

View File

@ -0,0 +1,4 @@
Set the variable PATH_LOCALE to %%PREFIX%%/share/locale and export it,
e.g.:
export PATH_LOCALE=%%PREFIX%%/share/locale

View File

@ -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

View File

@ -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