Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit autotools elisp-common flag-o-matic readme.gentoo-r1 |
6 |
inherit autotools elisp-common flag-o-matic readme.gentoo-r1 toolchain-funcs |
7 |
|
7 |
|
8 |
if [[ ${PV##*.} = 9999 ]]; then |
8 |
if [[ ${PV##*.} = 9999 ]]; then |
9 |
inherit git-r3 |
9 |
inherit git-r3 |
Lines 260-265
src_configure() {
Link Here
|
260 |
fi |
260 |
fi |
261 |
fi |
261 |
fi |
262 |
|
262 |
|
|
|
263 |
# Configure a CBUILD directory when cross-compiling to make tools. |
264 |
# Also don't try to execute the binary for dumping during the build. |
265 |
if tc-is-cross-compiler; then |
266 |
mkdir "${S}-build" && pushd "${S}-build" >/dev/null || die |
267 |
ECONF_SOURCE="${S}" econf_build --without-all --without-x-toolkit |
268 |
popd >/dev/null || die |
269 |
myconf+=" --with-dumping=none" |
270 |
fi |
271 |
|
263 |
econf \ |
272 |
econf \ |
264 |
--program-suffix="-${EMACS_SUFFIX}" \ |
273 |
--program-suffix="-${EMACS_SUFFIX}" \ |
265 |
--includedir="${EPREFIX}"/usr/include/${EMACS_SUFFIX} \ |
274 |
--includedir="${EPREFIX}"/usr/include/${EMACS_SUFFIX} \ |
Lines 271-276
src_configure() {
Link Here
|
271 |
--without-pop \ |
280 |
--without-pop \ |
272 |
--with-dumping=pdumper \ |
281 |
--with-dumping=pdumper \ |
273 |
--with-file-notification=$(usev inotify || usev gfile || echo no) \ |
282 |
--with-file-notification=$(usev inotify || usev gfile || echo no) \ |
|
|
283 |
--with-pdumper \ |
274 |
$(use_enable acl) \ |
284 |
$(use_enable acl) \ |
275 |
$(use_with dbus) \ |
285 |
$(use_with dbus) \ |
276 |
$(use_with dynamic-loading modules) \ |
286 |
$(use_with dynamic-loading modules) \ |
Lines 291-300
src_configure() {
Link Here
|
291 |
${myconf} |
301 |
${myconf} |
292 |
} |
302 |
} |
293 |
|
303 |
|
294 |
#src_compile() { |
304 |
src_compile() { |
295 |
# # Disable sandbox when dumping. For the unbelievers, see bug #131505 |
305 |
if tc-is-cross-compiler; then |
296 |
# emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs" |
306 |
# Build native tools for compiling lisp etc. |
297 |
#} |
307 |
emake -C "${S}-build" src |
|
|
308 |
# Save native build tools in the cross-directory. |
309 |
emake lib # Cross-compile dependencies first for timestamps. |
310 |
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die |
311 |
# Specify the native Emacs to compile lisp. |
312 |
emake -C lisp all EMACS="${S}-build/src/emacs" |
313 |
fi |
314 |
|
315 |
emake |
316 |
} |
298 |
|
317 |
|
299 |
src_install() { |
318 |
src_install() { |
300 |
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install |
319 |
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install |
Lines 398-403
src_install() {
Link Here
|
398 |
use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in |
417 |
use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in |
399 |
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink |
418 |
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink |
400 |
it into /Applications by yourself." |
419 |
it into /Applications by yourself." |
|
|
420 |
tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write a portable |
421 |
dump file due to being cross-compiled. To create this file at run |
422 |
time, execute the following command:\\nemacs |
423 |
--batch --eval='(dump-emacs-portable |
424 |
\"/usr/libexec/emacs/${FULL_VERSION}/${CHOST}/emacs.pdmp\")'" |
401 |
readme.gentoo_create_doc |
425 |
readme.gentoo_create_doc |
402 |
} |
426 |
} |
403 |
|
427 |
|
404 |
- |
|
|