Lines 43-48
Link Here
|
43 |
qt3? ( $(qt_min_version 3.3.4) ) |
43 |
qt3? ( $(qt_min_version 3.3.4) ) |
44 |
m17n-lib? ( dev-libs/m17n-lib )" |
44 |
m17n-lib? ( dev-libs/m17n-lib )" |
45 |
|
45 |
|
|
|
46 |
SITEFILE=50${PN}-gentoo.el |
47 |
|
46 |
src_unpack() { |
48 |
src_unpack() { |
47 |
|
49 |
|
48 |
local repo_uri="http://uim.googlecode.com/svn" |
50 |
local repo_uri="http://uim.googlecode.com/svn" |
Lines 93-98
Link Here
|
93 |
|
95 |
|
94 |
econf \ |
96 |
econf \ |
95 |
$(use_enable emacs) \ |
97 |
$(use_enable emacs) \ |
|
|
98 |
$(use_with emacs lispdir ${SITELISP}) \ |
96 |
$(use_enable fep) \ |
99 |
$(use_enable fep) \ |
97 |
$(use_enable nls) \ |
100 |
$(use_enable nls) \ |
98 |
$(use_with X x) \ |
101 |
$(use_with X x) \ |
Lines 131-152
Link Here
|
131 |
fi |
134 |
fi |
132 |
done |
135 |
done |
133 |
|
136 |
|
134 |
if use emacs; then |
|
|
135 |
local im |
136 |
|
137 |
if has_version app-i18n/anthy || has_version app-i18n/anthy-ss; then |
138 |
im="anthy" |
139 |
|
140 |
elif has_version app-i18n/prime; then |
141 |
im="prime" |
142 |
|
143 |
else |
144 |
im="skk" |
145 |
|
146 |
fi |
147 |
|
137 |
|
148 |
elisp-site-file-install "${FILESDIR}"/50uim-gentoo.el |
138 |
if use emacs; then |
149 |
dosed "s:@IM@:${im}:" ${SITELISP}/50uim-gentoo.el |
139 |
# do compilation here as all other steps are handled by Makefile |
|
|
140 |
cd "${D}"/${SITELISP}/uim-el/ |
141 |
elisp-comp *.el || die |
142 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el |
150 |
fi |
143 |
fi |
151 |
|
144 |
|
152 |
# remove sigscheme headers |
145 |
# remove sigscheme headers |
Lines 160-167
Link Here
|
160 |
|
153 |
|
161 |
has_multilib_profile && chost=${CHOST} |
154 |
has_multilib_profile && chost=${CHOST} |
162 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules |
155 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules |
163 |
use emacs && elisp-site-regen |
156 |
if use emacs; then |
164 |
|
157 |
elisp-site-regen |
|
|
158 |
echo |
159 |
elog "uim is autoloaded with Emacs with a minimal set of" |
160 |
elog "features: There is no keybinding defined to call it directly," |
161 |
elog "so please create one yourself and choose an input method." |
162 |
elog "Integration with LEIM is not done with this ebuild, please have a look" |
163 |
elog "at the documentation how to achieve this." |
164 |
fi |
165 |
} |
165 |
} |
166 |
|
166 |
|
167 |
pkg_postrm() { |
167 |
pkg_postrm() { |
Lines 171-175
Link Here
|
171 |
has_multilib_profile && chost=${CHOST} |
171 |
has_multilib_profile && chost=${CHOST} |
172 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules |
172 |
use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules |
173 |
use emacs && elisp-site-regen |
173 |
use emacs && elisp-site-regen |
174 |
|
|
|
175 |
} |
174 |
} |