[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkgsrc/www/navigator and Japanese locale



 > 問題なければ、japanese/linux-localeに突っ込みます。
 > # emulators/linux-localeを消して、
 > # suse_baseにlocaledb.rpmを入れるようにしないと。

やめ。清く正しく(?) linuxi18nから全部installするようにしてみました。
suseのlocaledb.rpmはいらないと思いますが... たぶん...

diskとnetworkに余裕のないかたは
LINUX_LOCALES=ja
と /etc/mk.conf に書いておきましょう。

sakamoto
--
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	linux-locale
#	linux-locale/files
#	linux-locale/pkg
#	linux-locale/pkg/COMMENT
#	linux-locale/pkg/DESCR
#	linux-locale/Makefile
#
echo c - linux-locale
mkdir -p linux-locale > /dev/null 2>&1
echo c - linux-locale/files
mkdir -p linux-locale/files > /dev/null 2>&1
echo c - linux-locale/pkg
mkdir -p linux-locale/pkg > /dev/null 2>&1
echo x - linux-locale/pkg/COMMENT
sed 's/^X//' >linux-locale/pkg/COMMENT << 'END-of-linux-locale/pkg/COMMENT'
XLocales for Linux
END-of-linux-locale/pkg/COMMENT
echo x - linux-locale/pkg/DESCR
sed 's/^X//' >linux-locale/pkg/DESCR << 'END-of-linux-locale/pkg/DESCR'
XLocales for Linux
X
XMany langages not supported by default by GNU libc,
Xthese rpm package are supplementary locales support for Linux.
END-of-linux-locale/pkg/DESCR
echo x - linux-locale/Makefile
sed 's/^X//' >linux-locale/Makefile << 'END-of-linux-locale/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	locales-2.1-1mdk
XPKGNAME=	linux-locale-2.1.1
XCATEGORIES=	emulators
XMASTER_SITES=	http://www.linuxi18n.org/locales/
XEXTRACT_SUFX=	.noarch.rpm
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX}
X
XMAINTAINER=	sakamoto@netbsd.org
XHOMEPAGE=	http://www.linuxi18n.org/locales/
X
X.include "../../mk/bsd.prefs.mk"
X.if !defined(LINUX_LOCALES)
XLINUX_LOCALES= \
X	af ar bg br ca cs cy da de el en eo es et eu fa fi fo fr ga \
X	gd gl gv he hr hu hy id is it iu ja ka kl ko kw lo lt lv ml \
X	ms nl no oc pd pl pt ro ru sk sl sr sv th tr uk vi wa zh
X.endif
X
X.for locale in ${LINUX_LOCALES}
XDISTFILES+=	locales-${locale}-2.1-1mdk${EXTRACT_SUFX}
X.endfor
X
XDIST_SUBDIR=	linux-locale
X
XONLY_FOR_PLATFORM=NetBSD-*-i386
XDEPENDS=	suse_linux-6.3:../../emulators/suse_linux
X
XEXTRACT_ONLY=	# empty
XNO_PATCH=	yes
XNO_CONFIGURE=	yes
XNO_BUILD=	yes
XPLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC
XDEINSTALL_SRC=	${PKGDIR}/DEINSTALL
XDEINSTALL_FILE=	${WRKDIR}/DEINSTALL
X
XEMULSUBDIR=	emul/linux
XEMULDIR=	${PREFIX}/${EMULSUBDIR}
X
XRPM2PKG=	${PREFIX}/sbin/rpm2pkg
XRPM2PKGARGS=	-d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
X.for TEMP in ${DISTFILES}
XRPM2PKGARGS+=	${DISTDIR}/${DIST_SUBDIR}/${TEMP}
X.endfor
X
Xdo-install:
X	@if [ -f ${PKGDIR}/PLIST ]; then \
X	  ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
X	else \
X	  ${RM} -f ${PLIST_SRC}; \
X	fi
X	${RPM2PKG} ${RPM2PKGARGS}
X
X.include "../../mk/bsd.pkg.mk"
END-of-linux-locale/Makefile
exit