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 96-108
Link Here
|
96 |
$(use_with qt3 qt-immodule) \ |
99 |
$(use_with qt3 qt-immodule) \ |
97 |
${myconf} || die "econf failed" |
100 |
${myconf} || die "econf failed" |
98 |
emake -j1 || die "emake failed" |
101 |
emake -j1 || die "emake failed" |
|
|
102 |
|
103 |
if use emacs; then |
104 |
cd emacs |
105 |
elisp-comp *.el || die "elisp-compile failed" |
106 |
fi |
99 |
} |
107 |
} |
100 |
|
108 |
|
101 |
src_install() { |
109 |
src_install() { |
102 |
emake DESTDIR="${D}" install || die "make install failed" |
110 |
emake DESTDIR="${D}" install || die "make install failed" |
103 |
|
111 |
|
104 |
dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
112 |
dodoc AUTHORS ChangeLog* NEWS README RELNOTE |
105 |
use emacs && elisp-site-file-install "${FILESDIR}"/50uim-el-gentoo.el |
113 |
if use emacs; then |
|
|
114 |
elisp-install uim-el emacs/*.elc || die "elisp-install failed" |
115 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ |
116 |
|| die "elisp-site-file-install failed" |
117 |
fi |
106 |
} |
118 |
} |
107 |
|
119 |
|
108 |
pkg_postinst() { |
120 |
pkg_postinst() { |
Lines 128-134
Link Here
|
128 |
elog "you should run revdep-rebuild." |
140 |
elog "you should run revdep-rebuild." |
129 |
|
141 |
|
130 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/${GTK2_CONFDIR}/gtk.immodules |
142 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/${GTK2_CONFDIR}/gtk.immodules |
131 |
use emacs && elisp-site-regen |
143 |
if use emacs; then |
|
|
144 |
elisp-site-regen |
145 |
echo |
146 |
elog "uim is autoloaded with Emacs with a minimal set of features:" |
147 |
elog "There is no keybinding defined to call it directly, so please" |
148 |
elog "create one yourself and choose an input method." |
149 |
elog "Integration with LEIM is not done with this ebuild, please have" |
150 |
elog "a look at the documentation how to achieve this." |
151 |
fi |
132 |
} |
152 |
} |
133 |
|
153 |
|
134 |
pkg_postrm() { |
154 |
pkg_postrm() { |