aboutsummaryrefslogtreecommitdiff
path: root/share/ctypedef
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-08-03 15:02:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-08-03 16:35:26 +0000
commit0fa5403d493be24dda2bf575c04019ef2dcc9d0c (patch)
treed76f3a049f25ad58a35bfb9f70a0392e7f22244a /share/ctypedef
parent30e1773fdef42cb509bf75e9fa09472e77a333de (diff)
downloadsrc-0fa5403d493be24dda2bf575c04019ef2dcc9d0c.tar.gz
src-0fa5403d493be24dda2bf575c04019ef2dcc9d0c.zip
pkgbase: move locales into their own package
The only exception here being C.UTF-8 as this is the default locales so it needs to always be installed Reviewed by: pkgbase (emaste) Differential Revision: https://reviews.freebsd.org/D31397
Diffstat (limited to 'share/ctypedef')
-rw-r--r--share/ctypedef/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/share/ctypedef/Makefile b/share/ctypedef/Makefile
index 1a57cfeb1444..912b4e6f4757 100644
--- a/share/ctypedef/Makefile
+++ b/share/ctypedef/Makefile
@@ -1,5 +1,8 @@
# $FreeBSD$
+PACKAGE= locales
+FILESGROUPS= FILES ALWAYS
+ALWAYSPACKAGE= runtime
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_CTYPE
.SUFFIXES: .src .LC_CTYPE
@@ -212,12 +215,15 @@ SAME+= lv_LV.ISO8859-13 lt_LT.ISO8859-13
SAME+= ko_KR.eucKR ko_KR.CP949 # legacy (same charset)
.endif
-FILES= ${LOCALES:S/$/.LC_CTYPE/}
+# C.UTF-8 is the default locale, so it should always been installed.
+ALWAYS= C.UTF-8.LC_CTYPE
+FILES= ${LOCALES:NC.UTF-8:S/$/.LC_CTYPE/}
CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
+LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor
@@ -225,6 +231,7 @@ SYMLINKS+= ../$f/${FILESNAME} \
.for f in ${LOCALES}
FILESDIR_${f}.LC_CTYPE= ${LOCALEDIR}/${f}
.endfor
+FILESDIR_C.UTF-8.LC_CTYPEPACKAGE= runtime
SYMPAIRS+= zh_CN.eucCN.src zh_CN.GB18030.src
SYMPAIRS+= zh_CN.eucCN.src zh_CN.GB2312.src