# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/skkfep/skkfep-0.87.ebuild,v 1.1 2005/05/29 02:49:29 usata Exp $ inherit eutils KH_P="${PN}0.86c-kh1.2.10" DESCRIPTION="A SKK-like Japanese input method for console" HOMEPAGE="http://homepage2.nifty.com/aito/soft.html" SRC_URI="http://homepage2.nifty.com/aito/skkfep/${P}.tar.gz" # "http://www1.interq.or.jp/~deton/jvim-skk/${KH_P}.patch.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha" IUSE="" DEPEND=">=sys-apps/sed-4 sys-apps/gawk sys-libs/ncurses" RDEPEND="virtual/skkserv" #S=${WORKDIR}/${PN} #src_unpack() { # unpack ${A} # cd ${S} # epatch ../${KH_P}.patch #} src_compile() { sed -i -e 's/solaris2/linux/' \ -e '/^#define USE_SKKSRCH/s/^/\/* /' \ -e '/^#define BOTH_SERVER_AND_SKKSRCH/s/^/\/* /' \ -e '/SUSPEND_FEP/s/^\/\*//' config.h sed -i -e 's/termcap/curses/' \ -e '/skksrch/s/skksrch\.[co]//' protoMakefile make || die "make failed." } src_install() { dobin skkfep || die doman skkfep.1 dodoc README* HISTORY INSTALL TODO } pkg_postinst() { einfo "Don't forget to set SKKSERVER to your local skkserv host." }