# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="emacs" DESCRIPTION="Anthy -- free and secure Japanese input system" HOMEPAGE="http://anthy.sourceforge.jp/" SRC_URI="mirror://sourceforge.jp/anthy/5847/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" SLOT="0" S="${WORKDIR}/${P}" DEPEND="virtual/glibc emacs? ( virtual/emacs )" SITEFILE="50anthy-gentoo.el" SITELISP=/usr/share/emacs/site-lisp src_compile() { local myconf="" use emacs \ || myconf="${myconf} EMACS=no" econf ${myconf} || die emake || die } src_install() { einstall || die if [ -n "` use emacs`" ] ; then insinto ${SITELISP} doins ${FILESDIR}/${SITEFILE} fi dodoc AUTHORS ChangeLog DIARY INSTALL NEWS README \ doc/[A-Z0-9][A-Z0-9]* doc/protocol.txt newdoc cannadic/README README.cannadic } pkg_postinst() { if [ -n "` use emacs`" ] ; then inherit elisp elisp-site-regen fi } pkg_postrm() { if [ -n "` use emacs`" ] ; then inherit elisp elisp-site-regen fi }