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
This commit is contained in:
Baptiste Daroussin 2021-08-03 17:02:16 +02:00
parent 30e1773fde
commit 0fa5403d49
11 changed files with 27 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# $FreeBSD$
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_COLLATE
.SUFFIXES: .src .LC_COLLATE

View File

@ -2,6 +2,7 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_COLLATE
.SUFFIXES: .src .LC_COLLATE
@ -107,6 +108,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

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

View File

@ -2,6 +2,7 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_MONETARY
.SUFFIXES: .src .out
@ -132,6 +133,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -2,6 +2,7 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_MONETARY
.SUFFIXES: .src .out
@ -99,6 +100,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -1,5 +1,6 @@
# $FreeBSD$
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_MESSAGES
.SUFFIXES: .src .out
@ -125,6 +126,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -2,6 +2,7 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_MESSAGES
.SUFFIXES: .src .out
@ -99,6 +100,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -1,5 +1,6 @@
# $FreeBSD$
PACKAGE= locale
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_NUMERIC
.SUFFIXES: .src .out
@ -128,6 +129,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -2,6 +2,7 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_NUMERIC
.SUFFIXES: .src .out
@ -99,6 +100,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -1,5 +1,6 @@
# $FreeBSD$
PACKAGE= locales
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_TIME
.SUFFIXES: .src .out
@ -211,6 +212,7 @@ CLEANFILES= ${FILES}
.for f t in ${SAME}
DIRS+= LOCALEDIR_$t
LOCALEDIR_$t= ${LOCALEDIR}/$t
LOCALEDIR_$tPACKAGE= locales
SYMLINKS+= ../$f/${FILESNAME} \
${LOCALEDIR}/$t/${FILESNAME}
.endfor

View File

@ -952,6 +952,7 @@ sub make_makefile {
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale.
PACKAGE= locales
LOCALEDIR= \${SHAREDIR}/locale
FILESNAME= $FILESNAMES{$TYPE}
.SUFFIXES: .src .${SRCOUT2}
@ -1084,6 +1085,7 @@ CLEANFILES= \${FILES}
.for f t in \${SAME}
DIRS+= LOCALEDIR_\$t
LOCALEDIR_\$t= \${LOCALEDIR}/\$t
LOCALEDIR_\$tPACKAGE= locales
SYMLINKS+= ../\$f/\${FILESNAME} \\
\${LOCALEDIR}/\$t/\${FILESNAME}
.endfor