mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-editors/emacs: Override EMACS var for emake install when cross-compiling
Version 29 changed some of the Makefile logic, and part of it is wonky, with it wanting to runs emacs during the install target. I tried to fix it but couldn't. Something about autoloads being a PHONY target. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -390,10 +390,12 @@ src_compile() {
|
||||
# Save native build tools in the cross-directory
|
||||
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
|
||||
# Specify the native Emacs to compile lisp
|
||||
emake -C lisp all EMACS="${S}-build/src/emacs"
|
||||
EMACS_EMAKE_ARGS=( EMACS="${S}-build/src/emacs" )
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" actual-all
|
||||
else
|
||||
unset EMACS_EMAKE_ARGS
|
||||
emake
|
||||
fi
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
@@ -441,7 +443,7 @@ src_test() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
|
||||
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||
|
||||
@@ -387,10 +387,12 @@ src_compile() {
|
||||
# Save native build tools in the cross-directory
|
||||
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
|
||||
# Specify the native Emacs to compile lisp
|
||||
emake -C lisp all EMACS="${S}-build/src/emacs"
|
||||
EMACS_EMAKE_ARGS=( EMACS="${S}-build/src/emacs" )
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" actual-all
|
||||
else
|
||||
unset EMACS_EMAKE_ARGS
|
||||
emake
|
||||
fi
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
@@ -438,7 +440,7 @@ src_test() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
|
||||
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||
|
||||
@@ -387,10 +387,12 @@ src_compile() {
|
||||
# Save native build tools in the cross-directory
|
||||
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
|
||||
# Specify the native Emacs to compile lisp
|
||||
emake -C lisp all EMACS="${S}-build/src/emacs"
|
||||
EMACS_EMAKE_ARGS=( EMACS="${S}-build/src/emacs" )
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" actual-all
|
||||
else
|
||||
unset EMACS_EMAKE_ARGS
|
||||
emake
|
||||
fi
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
@@ -438,7 +440,7 @@ src_test() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
|
||||
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||
|
||||
@@ -389,10 +389,12 @@ src_compile() {
|
||||
# Save native build tools in the cross-directory
|
||||
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
|
||||
# Specify the native Emacs to compile lisp
|
||||
emake -C lisp all EMACS="${S}-build/src/emacs"
|
||||
EMACS_EMAKE_ARGS=( EMACS="${S}-build/src/emacs" )
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" actual-all
|
||||
else
|
||||
unset EMACS_EMAKE_ARGS
|
||||
emake
|
||||
fi
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
@@ -440,7 +442,7 @@ src_test() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
emake "${EMACS_EMAKE_ARGS[@]}" DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||
|
||||
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||
|
||||
Reference in New Issue
Block a user