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:
parent
2e7229d419
commit
419d508c1a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134112
@ -400,6 +400,7 @@
|
||||
SUBDIR += tempcontrol
|
||||
SUBDIR += terraform
|
||||
SUBDIR += tet
|
||||
SUBDIR += thailocale
|
||||
SUBDIR += tkcron
|
||||
SUBDIR += tkinfo
|
||||
SUBDIR += tkman
|
||||
|
28
misc/thailocale/Makefile
Normal file
28
misc/thailocale/Makefile
Normal 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
2
misc/thailocale/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (thailocale-0.11.tar.gz) = 32f909128dc7dad672e2ef3fcd22e8aa
|
||||
SIZE (thailocale-0.11.tar.gz) = 6154
|
25
misc/thailocale/files/patch-Makefile
Normal file
25
misc/thailocale/files/patch-Makefile
Normal 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
|
||||
|
4
misc/thailocale/files/pkg-message.in
Normal file
4
misc/thailocale/files/pkg-message.in
Normal 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
|
9
misc/thailocale/pkg-descr
Normal file
9
misc/thailocale/pkg-descr
Normal 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
|
9
misc/thailocale/pkg-plist
Normal file
9
misc/thailocale/pkg-plist
Normal 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
|
Loading…
Reference in New Issue
Block a user