summaryrefslogtreecommitdiff
path: root/misc/utf8locale
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-03-23 16:40:10 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-03-23 16:40:10 +0000
commit38a29968a27c34768836d851453ae99ed2d4e0c6 (patch)
treec57c8cbad4498037ab88c11efe456a99e8f8e24c /misc/utf8locale
parentPR: 47778 (diff)
Don't wipe out all localization resources on installing.
PR: ports/48975 Submitted by: Dmitry Panov <redfox@Fluffy.Khv.RU>
Notes
Notes: svn path=/head/; revision=77269
Diffstat (limited to 'misc/utf8locale')
-rw-r--r--misc/utf8locale/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/utf8locale/Makefile b/misc/utf8locale/Makefile
index afa52194bb22..09620f1d22f2 100644
--- a/misc/utf8locale/Makefile
+++ b/misc/utf8locale/Makefile
@@ -15,6 +15,8 @@ MASTER_SITE_SUBDIR= perky
MAINTAINER= perky@FreeBSD.org
COMMENT= UTF-8 locales support
+USE_REINPLACE= yes
+
LANGS= af_ZA bg_BG ca_ES cs_CZ da_DK de_AT de_CH de_DE el_GR en_AU \
en_CA en_GB en_NZ en_US es_ES et_EE fi_FI fr_BE fr_CA fr_CH \
fr_FR hr_HR hu_HU is_IS it_CH it_IT ja_JP ko_KR lt_LT nl_BE \
@@ -31,9 +33,12 @@ _HAVE_SWIDTH!= ${GREP} _CTYPE_SW ${DESTDIR}/usr/include/ctype.h 2>/dev/null \
|| ${TRUE}
.if empty(_HAVE_SWIDTH)
PKGNAMESUFFIX= -without-swidth
-USE_REINPLACE= yes
+.endif
post-patch:
+ ${REINPLACE_CMD} -e 's,\(rm -rf.*/\)\*\(/LC_MESS\),\1*.UTF-8\2,g' \
+ ${WRKSRC}/msgdef/Makefile
+.if empty(_HAVE_SWIDTH)
${REINPLACE_CMD} -e 's,^SWIDTH.*$$,,g' \
-e 's,UTF-8,UTF2,g' ${WRKSRC}/mklocale/la_LN.UTF-8.src
.endif