diff options
author | imura <imura@FreeBSD.org> | 2000-03-29 23:41:14 +0800 |
---|---|---|
committer | imura <imura@FreeBSD.org> | 2000-03-29 23:41:14 +0800 |
commit | 798ed9f39fe82f2eb037f14f52d47ca1494f09c2 (patch) | |
tree | 6c3bab0ed613b0fab7854ce047ad4dce7bc771e2 /japanese | |
parent | 43ee9985c959eb599e3180ed71a9ac4bda466b1a (diff) | |
download | freebsd-ports-graphics-798ed9f39fe82f2eb037f14f52d47ca1494f09c2.tar.gz freebsd-ports-graphics-798ed9f39fe82f2eb037f14f52d47ca1494f09c2.tar.zst freebsd-ports-graphics-798ed9f39fe82f2eb037f14f52d47ca1494f09c2.zip |
- Using original source archive instead of rpm package.
- Version bump 9.1 -> 13
(it is only Debian specific change and won't bother us.)
Thanks for giving me advice to: ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/linux_locale/Makefile | 46 | ||||
-rw-r--r-- | japanese/linux_locale/distinfo | 2 | ||||
-rw-r--r-- | japanese/linux_locale/pkg-descr | 2 | ||||
-rw-r--r-- | japanese/linux_locale/pkg-plist | 38 |
4 files changed, 45 insertions, 43 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> diff --git a/japanese/linux_locale/distinfo b/japanese/linux_locale/distinfo index 0698c5c4117..2f2be2b095c 100644 --- a/japanese/linux_locale/distinfo +++ b/japanese/linux_locale/distinfo @@ -1 +1 @@ -MD5 (locale-ja-9-1.noarch.rpm) = 8f7c5de67ddc6761e618f06934b866d5 +MD5 (locale-ja_13.tar.gz) = e843e63f93c62575329c578721888c42 diff --git a/japanese/linux_locale/pkg-descr b/japanese/linux_locale/pkg-descr index 5bda0256f13..68c9403020f 100644 --- a/japanese/linux_locale/pkg-descr +++ b/japanese/linux_locale/pkg-descr @@ -2,3 +2,5 @@ Linux glibc 2.0/2.1 Locale definition files for Japanese. This is an experimental and incorrect locale definition for Japanese (ja_JP). Since the GNU libc does not support the EUC encoding yet, we cannot make a correct locale definition for it. + +WWW: http://www.debian.org/Packages/unstable/admin/locale-ja.html diff --git a/japanese/linux_locale/pkg-plist b/japanese/linux_locale/pkg-plist index 9cdcabde490..abba974cdad 100644 --- a/japanese/linux_locale/pkg-plist +++ b/japanese/linux_locale/pkg-plist @@ -1,38 +1,16 @@ -usr/doc/locale-ja-9/changelog -usr/doc/locale-ja-9/control -usr/doc/locale-ja-9/copyright -usr/doc/locale-ja-9/gconv-modules.patch -usr/doc/locale-ja-9/rules +usr/doc/locale-ja-%%VER%%/changelog +usr/doc/locale-ja-%%VER%%/control +usr/doc/locale-ja-%%VER%%/copyright +usr/doc/locale-ja-%%VER%%/dirs +usr/doc/locale-ja-%%VER%%/rules usr/share/locale/ja_JP/LC_COLLATE usr/share/locale/ja_JP/LC_CTYPE usr/share/locale/ja_JP/LC_MESSAGES/SYS_LC_MESSAGES usr/share/locale/ja_JP/LC_MONETARY usr/share/locale/ja_JP/LC_NUMERIC usr/share/locale/ja_JP/LC_TIME -usr/share/locale/ja_JP.EUC/LC_COLLATE -usr/share/locale/ja_JP.EUC/LC_CTYPE -usr/share/locale/ja_JP.EUC/LC_MESSAGES/SYS_LC_MESSAGES -usr/share/locale/ja_JP.EUC/LC_MONETARY -usr/share/locale/ja_JP.EUC/LC_NUMERIC -usr/share/locale/ja_JP.EUC/LC_TIME -usr/share/locale/ja_JP.eucJP/LC_COLLATE -usr/share/locale/ja_JP.eucJP/LC_CTYPE -usr/share/locale/ja_JP.eucJP/LC_MESSAGES/SYS_LC_MESSAGES -usr/share/locale/ja_JP.eucJP/LC_MONETARY -usr/share/locale/ja_JP.eucJP/LC_NUMERIC -usr/share/locale/ja_JP.eucJP/LC_TIME -usr/share/locale/ja_JP.ujis/LC_COLLATE -usr/share/locale/ja_JP.ujis/LC_CTYPE -usr/share/locale/ja_JP.ujis/LC_MESSAGES/SYS_LC_MESSAGES -usr/share/locale/ja_JP.ujis/LC_MONETARY -usr/share/locale/ja_JP.ujis/LC_NUMERIC -usr/share/locale/ja_JP.ujis/LC_TIME -@dirrm usr/share/locale/ja_JP.ujis/LC_MESSAGES -@dirrm usr/share/locale/ja_JP.ujis -@dirrm usr/share/locale/ja_JP.eucJP/LC_MESSAGES -@dirrm usr/share/locale/ja_JP.eucJP -@dirrm usr/share/locale/ja_JP.EUC/LC_MESSAGES -@dirrm usr/share/locale/ja_JP.EUC +@exec ln -sf ja_JP %D/usr/share/locale/ja_JP.EUC +@unexec rm -f %D/usr/share/locale/ja_JP.EUC @dirrm usr/share/locale/ja_JP/LC_MESSAGES @dirrm usr/share/locale/ja_JP -@dirrm usr/doc/locale-ja-9 +@dirrm usr/doc/locale-ja-%%VER%% |