# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit ruby elisp-common IUSE="emacs" DESCRIPTION="PRIME -- Japanese PRedictive Input Method Editor" HOMEPAGE="http://prime.sourceforge.jp/" SRC_URI="http://prime.sourceforge.jp/src/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" SLOT="0" S="${WORKDIR}/${P}" DEPEND="${DEPEND} app-dicts/prime-dict dev-ruby/sary-ruby dev-ruby/suikyo emacs? ( app-emacs/prime-el )" pkg_preinst() { cd ${S} make DESTDIR=${D} install-etc || die use emacs && elisp-site-file-install ${FILESDIR}/50prime-gentoo.el dodir /usr/share/doc/${PF} mv ${D}/usr/share/doc/{${PN},${PF}/html} dosed "/^PRIME_DOC_DIR/s:prime:${PF}/html:" /usr/lib/ruby/site_ruby/1.6/prime/prime-config.rb } pkg_postinst() { use emacs && elisp-site-regen } pkg_postrm() { elisp-site-regen }