From d155c9e49e75b8b11741a0721310c610c3e5ef8f Mon Sep 17 00:00:00 2001 From: Jauhien Piatlicki Date: Mon, 1 Dec 2014 00:18:52 +0100 Subject: [gs-elpa.eclass] issue #4: handle compilation and installation of elisp packages with multiple files --- gs_elpa/data/gs-elpa.eclass | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gs_elpa/data/gs-elpa.eclass b/gs_elpa/data/gs-elpa.eclass index d887c27..2c3e922 100644 --- a/gs_elpa/data/gs-elpa.eclass +++ b/gs_elpa/data/gs-elpa.eclass @@ -46,9 +46,17 @@ gs-elpa_src_unpack() { } gs-elpa_src_compile() { + local directories="" rm -f ${PN}-pkg.el || die elisp-make-autoload-file || die - elisp_src_compile || die + for i in `find . -name "*.el" -print`; do + directories+=" -L " + directories+="$(dirname $i)" + done + BYTECOMPFLAGS+="${directories}" + ebegin "Compiling GNU Emacs Elisp files" + ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} --eval '(byte-recompile-directory "./" 0 t)' + eend $? "elisp-compile: batch-byte-compile failed" || die } gs-elpa_src_install() { @@ -59,5 +67,7 @@ gs-elpa_src_install() { EOF elisp-site-file-install ${sitefile} || die rm -f ${sitefile} || die - elisp_src_install || die + + insinto "${SITELISP}/${PN}" + doins -r ./* } -- cgit v1.2.3-65-gdbad