aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/linux_locale/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/linux_locale/Makefile')
-rw-r--r--japanese/linux_locale/Makefile46
1 files changed, 34 insertions, 12 deletions
diff --git a/japanese/linux_locale/Makefile b/japanese/linux_locale/Makefile
index 8b39333f1ad..ba9f90df4f1 100644
--- a/japanese/linux_locale/Makefile
+++ b/japanese/linux_locale/Makefile
@@ -1,29 +1,51 @@
# New ports collection makefile for: ja-linux_locale
-# Version required: 9.1
+# Version required: 13
# Date created: March 20 2000
# Whom: imura@FreeBSD.org
#
# $FreeBSD$
#
-DISTNAME= locale-ja-9-1.noarch
-PKGNAME= ja-linux_locale-9.1
+DISTNAME= locale-ja_${VERSION}
+PKGNAME= ja-linux_locale-13.0
CATEGORIES= japanese emulators linux
-MASTER_SITES= ftp://ftp.linux.or.jp/pub/RPM/JRPM60/ALL/
-EXTRACT_SUFX= .rpm
+MASTER_SITES= ftp://ftp.debian.org/debian/dists/potato/main/source/admin/ \
+ http://people.FreeBSD.org/~imura/distfiles/
MAINTAINER= imura@FreeBSD.org
-BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/misc/rpm
-RUN_DEPENDS= /compat/linux/etc/redhat-release:${PORTSDIR}/emulators/linux_base
+BUILD_DEPENDS= ${LCDEF_CMD}:${PORTSDIR}/emulators/linux_base
+RUN_DEPENDS= ${LINUX_BASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
-PREFIX= /compat/linux
+LINUX_BASE= /compat/linux
+PREFIX= ${LINUX_BASE}
NO_MTREE= yes
-NO_BUILD= yes
-EXTRACT_ONLY= # none
+WRKSRC= ${WRKDIR}/locale-ja-${VERSION}
+PLIST_SUB= VER=${VERSION}
+
+VERSION= 13
+SRCDEF= ${WRKSRC}/ja_JP
+CHARMAPS= ${WRKSRC}/charmaps/EUC-JP
+REPERTOIRE_MAP= ${LINUX_BASE}/usr/share/i18n/repertoiremaps/charids.894
+LCDEF_CMD= ${LINUX_BASE}/usr/bin/localedef
+LCDEF_ARGS= --repertoire-map=${REPERTOIRE_MAP} \
+ -c -f ${CHARMAPS} -i ${SRCDEF}
+LCDIR= ${PREFIX}/usr/share/locale/ja_JP
+COMPAT_LC= ${PREFIX}/usr/share/locale/ja_JP.EUC
+DOCDIR= ${PREFIX}/usr/doc/locale-ja-${VERSION}
+
+do-build:
+ ${MKDIR} ${WRKDIR}/LC_MESSAGES
+ ${LCDEF_CMD} ${LCDEF_ARGS} ${WRKDIR}
do-install:
- cd ${PREFIX} \
- && rpm2cpio ${DISTDIR}/${DISTNAME}.rpm | cpio -idv -R 0.0
+ ${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}
.include <bsd.port.mk>