summaryrefslogtreecommitdiff
path: root/app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa+gentoo@gmail.com>2022-03-28 22:17:56 -0400
committerJohn Turner <jturner.usa+gentoo@gmail.com>2022-03-28 22:32:34 -0400
commita6f6a16bb97f669903122497c606570f54dd72c5 (patch)
treea2fa91a7dbfd4ba7447b69306b7eb83039a0f443 /app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild
parent10574647809e5244dac92800ad06bce71b7efc01 (diff)
downloadebuilds-a6f6a16bb97f669903122497c606570f54dd72c5.tar.gz
app-emacs/lsp-mode: emoved manual call to emacs for generating the autoload file and moved
the autoload generation step into src_compile
Diffstat (limited to 'app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild')
-rw-r--r--app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild b/app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild
index 3db6dbe..a28568f 100644
--- a/app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild
+++ b/app-emacs/lsp-mode/lsp-mode-8.0.0.ebuild
@@ -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}