From: Stuart Bouyer Date: Wed, 23 Oct 2002 13:58:05 +0000 (+0000) Subject: Intial ebuild submission X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=25a403fe4f1324adf3f814a71af17c6cd9fc8fb1;p=gentoo.git Intial ebuild submission --- diff --git a/app-i18n/nkf/ChangeLog b/app-i18n/nkf/ChangeLog new file mode 100644 index 000000000000..2ffcb9d8c97a --- /dev/null +++ b/app-i18n/nkf/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-i18n/nkf +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/ChangeLog,v 1.1 2002/10/23 13:58:05 stubear Exp $ + +*nkf-1.92 (12 Oct 2002) + + 12 Oct 2002; Stuart Bouyer nkf-1.92.ebuild, + digest-nkf-1.92, ChangeLog : + + Initial ebuild submitted by Moto Kawasaki , + updated by YAMAKURA Makoto . diff --git a/app-i18n/nkf/files/digest-nkf-1.92 b/app-i18n/nkf/files/digest-nkf-1.92 new file mode 100644 index 000000000000..3ab326140007 --- /dev/null +++ b/app-i18n/nkf/files/digest-nkf-1.92 @@ -0,0 +1 @@ +MD5 2e560387657d5d7c725875e548394b0f nkf192.shar 126349 diff --git a/app-i18n/nkf/files/nkf-1.92-msg00025.patch b/app-i18n/nkf/files/nkf-1.92-msg00025.patch new file mode 100644 index 000000000000..b0e2d5c558de --- /dev/null +++ b/app-i18n/nkf/files/nkf-1.92-msg00025.patch @@ -0,0 +1,38 @@ +You can get a original copy of this patch from: +http://search.namazu.org/ml/namazu-users-ja/msg00025.html + +*** nkf-1.92.orig/nkf.c Sat Mar 4 13:56:23 2000 +--- nkf-1.92.ss2/nkf.c Sat Mar 4 14:07:31 2000 +*************** +*** 1067,1072 **** +--- 1067,1081 ---- + SEND; + } + } ++ } ++ else if ( c1 == 'N' || c1 == 'n' ){ ++ /* SS2 */ ++ c1 = (*i_getc)(f); /* skip SS2 */ ++ if ( SPACE<=c1 && c1 < 0xe0 ) { ++ c2 = X0201; ++ SEND; ++ } ++ + } else { + /* lonely ESC */ + (*oconv)(0, ESC); + +*** nkf-1.92.orig/nkf.c Sat Mar 4 13:56:23 2000 +--- nkf-1.92.zenspc/nkf.c Sat Mar 4 14:08:43 2000 +*************** +*** 1669,1674 **** +--- 1669,1675 ---- + /* JISX0208 Kigou */ + if (0x21==c1) { + if (alpha_f&0x2) { ++ c2 = 0; + c1 = ' '; + } else if (alpha_f&0x4) { + (*o_zconv)(0,' '); + + diff --git a/app-i18n/nkf/nkf-1.92.ebuild b/app-i18n/nkf/nkf-1.92.ebuild new file mode 100644 index 000000000000..979829a306aa --- /dev/null +++ b/app-i18n/nkf/nkf-1.92.ebuild @@ -0,0 +1,43 @@ +# Copyright 2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-i18n/nkf/nkf-1.92.ebuild,v 1.1 2002/10/23 13:58:05 stubear Exp $ + +use perl && inherit perl-module + +IUSE="perl" +DESCRIPTION="Network Kanji code conversion Filter" +SRC_URI="ftp://ftp.ie.u-ryukyu.ac.jp/pub/software/kono/${PN}${PV/./}.shar" +HOMEPAGE="http://bw-www.ie.u-ryukyu.ac.jp/~kono/software.html" +DEPEND=">=sys-apps/sharutils-4.2.1-r5" +KEYWORDS="~x86" +LICENSE="public-domain" +SLOT="0" +S=${WORKDIR}/${P} + +src_unpack() { + mkdir -p ${S} + cd ${S} + mkdir NKF + unshar -c ${DISTDIR}/${A} + patch -s -p1 < ${FILESDIR}/${P}-msg00025.patch || die +} + +src_compile() { + make CC=gcc CFLAGS="${CFLAGS}" PERL=perl nkf test || die + use perl && ( + cd ${S}/NKF + perl-module_src_compile + perl-module_src_test + ) +} + +src_install() { + exeinto /usr/bin + doexe nkf + doman nkf.1 + dodoc nkf.doc + use perl && ( + cd ${S}/NKF + perl-module_src_install + ) +}