Lines 49-54
Link Here
|
49 |
)" |
49 |
)" |
50 |
# linguas_zh_TW? ( media-fonts/taipeifonts ) |
50 |
# linguas_zh_TW? ( media-fonts/taipeifonts ) |
51 |
|
51 |
|
|
|
52 |
SITEFILE=50${PN}-gentoo.el |
53 |
|
52 |
pkg_setup() { |
54 |
pkg_setup() { |
53 |
if use qt3 && ! built_with_use =x11-libs/qt-3* immqt-bc && ! built_with_use =x11-libs/qt-3* immqt; then |
55 |
if use qt3 && ! built_with_use =x11-libs/qt-3* immqt-bc && ! built_with_use =x11-libs/qt-3* immqt; then |
54 |
eerror "To support qt3 in this package is required to have" |
56 |
eerror "To support qt3 in this package is required to have" |
Lines 85-90
Link Here
|
85 |
$(use_with canna) \ |
87 |
$(use_with canna) \ |
86 |
$(use_with eb) \ |
88 |
$(use_with eb) \ |
87 |
$(use_enable emacs) \ |
89 |
$(use_enable emacs) \ |
|
|
90 |
$(use_with emacs lispdir ${SITELISP}) \ |
88 |
$(use_enable gnome gnome-applet) \ |
91 |
$(use_enable gnome gnome-applet) \ |
89 |
$(use_with gtk gtk2) \ |
92 |
$(use_with gtk gtk2) \ |
90 |
$(use_with libedit) \ |
93 |
$(use_with libedit) \ |
Lines 102-108
Link Here
|
102 |
emake DESTDIR="${D}" install || die "make install failed" |
105 |
emake DESTDIR="${D}" install || die "make install failed" |
103 |
|
106 |
|
104 |
dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
107 |
dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
105 |
use emacs && elisp-site-file-install "${FILESDIR}"/50uim-el-gentoo.el |
108 |
if use emacs; then |
|
|
109 |
# do compilation here as all other steps are handled by Makefile |
110 |
cd "${D}"/${SITELISP}/${PN}-el/ |
111 |
elisp-compile *.el || die |
112 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el |
113 |
cd - |
114 |
fi |
106 |
} |
115 |
} |
107 |
|
116 |
|
108 |
pkg_postinst() { |
117 |
pkg_postinst() { |
Lines 128-134
Link Here
|
128 |
elog "you should run revdep-rebuild." |
137 |
elog "you should run revdep-rebuild." |
129 |
|
138 |
|
130 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/${GTK2_CONFDIR}/gtk.immodules |
139 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/${GTK2_CONFDIR}/gtk.immodules |
131 |
use emacs && elisp-site-regen |
140 |
if use emacs; then |
|
|
141 |
elisp-site-regen |
142 |
echo |
143 |
elog "uim is autoloaded with Emacs with a minimal set of" |
144 |
elog "features: There is no keybinding defined to call it directly," |
145 |
elog "so please create one yourself and choose an input method." |
146 |
elog "Integration with LEIM is not done with this ebuild, please have a look" |
147 |
elog "at the documentation how to achieve this." |
148 |
fi |
132 |
} |
149 |
} |
133 |
|
150 |
|
134 |
pkg_postrm() { |
151 |
pkg_postrm() { |