Index: uim-1.4.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-1.4.1.ebuild,v retrieving revision 1.12 diff -u -B -r1.12 uim-1.4.1.ebuild --- uim-1.4.1.ebuild 10 Aug 2007 22:27:21 -0000 1.12 +++ uim-1.4.1.ebuild 14 Oct 2007 08:23:02 -0000 @@ -49,6 +49,8 @@ )" # linguas_zh_TW? ( media-fonts/taipeifonts ) +SITEFILE=50${PN}-gentoo.el + pkg_setup() { if use qt3 && ! built_with_use =x11-libs/qt-3* immqt-bc && ! built_with_use =x11-libs/qt-3* immqt; then eerror "To support qt3 in this package is required to have" @@ -85,6 +87,7 @@ $(use_with canna) \ $(use_with eb) \ $(use_enable emacs) \ + $(use_with emacs lispdir ${SITELISP}) \ $(use_enable gnome gnome-applet) \ $(use_with gtk gtk2) \ $(use_with libedit) \ @@ -96,13 +99,22 @@ $(use_with qt3 qt-immodule) \ ${myconf} || die "econf failed" emake -j1 || die "emake failed" + + if use emacs; then + cd emacs + elisp-comp *.el || die "elisp-compile failed" + fi } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog* NEWS README RELNOTE - use emacs && elisp-site-file-install "${FILESDIR}"/50uim-el-gentoo.el + if use emacs; then + elisp-install uim-el emacs/*.elc || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ + || die "elisp-site-file-install failed" + fi } pkg_postinst() { @@ -128,7 +140,15 @@ elog "you should run revdep-rebuild." use gtk && gtk-query-immodules-2.0 > "${ROOT}"/${GTK2_CONFDIR}/gtk.immodules - use emacs && elisp-site-regen + if use emacs; then + elisp-site-regen + echo + elog "uim is autoloaded with Emacs with a minimal set of features:" + elog "There is no keybinding defined to call it directly, so please" + elog "create one yourself and choose an input method." + elog "Integration with LEIM is not done with this ebuild, please have" + elog "a look at the documentation how to achieve this." + fi } pkg_postrm() {