--- uim/uim-1.4.1.ebuild 2007-08-15 20:21:00.000000000 +0200 +++ /usr/portage/app-i18n/uim/uim-1.4.1.ebuild 2007-10-05 15:47:43.000000000 +0200 @@ -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) \ @@ -102,7 +105,13 @@ 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 + # do compilation here as all other steps are handled by Makefile + cd "${D}"/${SITELISP}/${PN}-el/ + elisp-compile *.el || die + elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el + cd - + fi } pkg_postinst() { @@ -128,7 +137,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" + elog "features: There is no keybinding defined to call it directly," + elog "so please create one yourself and choose an input method." + elog "Integration with LEIM is not done with this ebuild, please have a look" + elog "at the documentation how to achieve this." + fi } pkg_postrm() {