]> jturnerusa.dev Git - ebuilds/commitdiff
app-emacs/lsp-mode: emoved manual call to emacs for generating the autoload file...
authorJohn Turner <jturner.usa+gentoo@gmail.com>
Tue, 29 Mar 2022 02:17:56 +0000 (22:17 -0400)
committerJohn Turner <jturner.usa+gentoo@gmail.com>
Tue, 29 Mar 2022 02:32:34 +0000 (22:32 -0400)
the autoload generation step into src_compile

app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild

index 3db6dbe1ac93009928f25044673059dea496751b..a28568f61813df60689f197bf689fb6598e019c6 100644 (file)
@@ -38,12 +38,14 @@ SITEFILE="50${PN}-gentoo.el"
 DOCS=( README.md CHANGELOG.org )
 RESTRICT="test" # test requires ert-runner which is not packaged
 
+BYTECOMPFLAGS="${BYTECOMPFLAGS} -L ${S}/clients/"
+
 src_compile() {
-       ${EMACS} ${EMACSFLAGS} -L . -L "${S}"/clients -f batch-byte-compile *.el "${S}"/clients/*.el
+       elisp-compile "${S}"/*.el "${S}"/clients/*.el
+       elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/
 }
 
 src_install() {
-       elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/
        elisp-install ${PN} *.el *.elc
        elisp-install ${PN}/clients "${S}"/clients/{*.el,*.elc}
        elisp-site-file-install ${FILESDIR}/${SITEFILE}