2000-03-24 11:23:14 -05:00
|
|
|
# New ports collection makefile for: ja-linux_locale
|
|
|
|
# Date created: March 20 2000
|
2000-10-28 04:37:18 -04:00
|
|
|
# Whom: imura@af.airnet.ne.jp
|
2000-03-24 11:23:14 -05:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 10:15:53 -04:00
|
|
|
PORTNAME= linux_locale
|
|
|
|
PORTVERSION= ${VERSION}.0
|
2001-11-26 16:01:19 -05:00
|
|
|
PORTREVISION= 2
|
2000-03-24 11:23:14 -05:00
|
|
|
CATEGORIES= japanese emulators linux
|
2000-10-28 04:37:18 -04:00
|
|
|
MASTER_SITES= ftp://ftp.debian.org/debian/dists/woody/main/source/admin/
|
2000-04-11 10:15:53 -04:00
|
|
|
DISTNAME= locale-ja_${VERSION}
|
2000-03-24 11:23:14 -05:00
|
|
|
|
2000-10-28 04:37:18 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2000-03-24 11:23:14 -05:00
|
|
|
|
2000-03-29 10:41:14 -05:00
|
|
|
BUILD_DEPENDS= ${LCDEF_CMD}:${PORTSDIR}/emulators/linux_base
|
2000-03-24 11:23:14 -05:00
|
|
|
|
2000-10-02 11:20:02 -04:00
|
|
|
USE_LINUX_PREFIX= yes
|
2000-03-29 10:41:14 -05:00
|
|
|
WRKSRC= ${WRKDIR}/locale-ja-${VERSION}
|
2001-11-19 09:01:41 -05:00
|
|
|
PLIST_SUB= VER=${VERSION} LINUXBASE=${LINUXBASE}
|
2000-03-29 10:41:14 -05:00
|
|
|
|
2000-10-02 11:20:02 -04:00
|
|
|
VERSION= 18
|
2000-03-29 10:41:14 -05:00
|
|
|
SRCDEF= ${WRKSRC}/ja_JP
|
|
|
|
CHARMAPS= ${WRKSRC}/charmaps/EUC-JP
|
2000-10-02 11:20:02 -04:00
|
|
|
REPERTOIRE_MAP= ${LINUXBASE}/usr/share/i18n/repertoiremaps/charids.894
|
|
|
|
LCDEF_CMD= ${LINUXBASE}/usr/bin/localedef
|
2000-03-29 10:41:14 -05:00
|
|
|
LCDEF_ARGS= --repertoire-map=${REPERTOIRE_MAP} \
|
|
|
|
-c -f ${CHARMAPS} -i ${SRCDEF}
|
2002-04-28 13:55:00 -04:00
|
|
|
LCDIR= ${LINUXBASE}/usr/share/locale/ja_JP
|
|
|
|
COMPAT_LC= ${LINUXBASE}/usr/share/locale/ja_JP.EUC
|
|
|
|
DOCDIR= ${LINUXBASE}/usr/doc/locale-ja-${VERSION}
|
2000-03-29 10:41:14 -05:00
|
|
|
|
2001-06-23 13:01:46 -04:00
|
|
|
LOCALE_ADD= ja_JP.EUC
|
|
|
|
LOCALE_DEF_ja_JP.EUC= ja_JP.eucJP
|
|
|
|
|
2001-11-19 09:01:41 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
LOCALE_GREP= ${GREP} -q
|
|
|
|
.for locale in ${LOCALE_ADD}
|
2002-04-28 13:55:00 -04:00
|
|
|
LOCALE_ALIASES!= ${ECHO_CMD} ${LOCALE_ALIASES} ${locale}:${LOCALE_DEF_${locale}}
|
|
|
|
LOCALE_GREP!= ${ECHO_CMD} "${LOCALE_GREP} -e '^${locale}'"
|
2001-11-19 09:01:41 -05:00
|
|
|
.endfor
|
|
|
|
PLIST_SUB+= LOCALE_ALIASES="${LOCALE_ALIASES}" LOCALE_GREP="${LOCALE_GREP}"
|
|
|
|
|
2000-03-29 10:41:14 -05:00
|
|
|
do-build:
|
|
|
|
${MKDIR} ${WRKDIR}/LC_MESSAGES
|
|
|
|
${LCDEF_CMD} ${LCDEF_ARGS} ${WRKDIR}
|
2000-03-24 11:23:14 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-03-29 10:41:14 -05:00
|
|
|
${MKDIR} ${LCDIR}/LC_MESSAGES
|
|
|
|
.for LC in COLLATE CTYPE MONETARY NUMERIC TIME
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/LC_${LC} ${LCDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/LC_MESSAGES/SYS_LC_MESSAGES ${LCDIR}/LC_MESSAGES
|
|
|
|
${LN} -sf ja_JP ${COMPAT_LC}
|
|
|
|
${MKDIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/debian/* ${DOCDIR}
|
2002-04-28 13:55:00 -04:00
|
|
|
if [ ! -f ${LINUXBASE}/usr/share/locale/locale.alias.orig ]; then \
|
|
|
|
${CP} -p ${LINUXBASE}/usr/share/locale/locale.alias \
|
2002-05-01 14:01:09 -04:00
|
|
|
${LINUXBASE}/usr/share/locale/locale.alias.orig; \
|
2002-04-28 13:55:00 -04:00
|
|
|
fi
|
2001-06-23 13:01:46 -04:00
|
|
|
.for locale in ${LOCALE_ADD}
|
2001-11-19 09:01:41 -05:00
|
|
|
${GREP} -q -e ^${locale} ${LINUXBASE}/usr/share/locale/locale.alias \
|
2002-04-28 13:55:00 -04:00
|
|
|
|| ${ECHO_CMD} "${locale} ${LOCALE_DEF_${locale}}" \
|
2001-06-23 13:01:46 -04:00
|
|
|
>> ${LINUXBASE}/usr/share/locale/locale.alias
|
|
|
|
.endfor
|
2000-03-24 11:23:14 -05:00
|
|
|
|
2001-11-19 09:01:41 -05:00
|
|
|
.include <bsd.port.post.mk>
|