diff options
author | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-12-01 00:18:52 +0100 |
---|---|---|
committer | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-12-01 00:18:52 +0100 |
commit | d155c9e49e75b8b11741a0721310c610c3e5ef8f (patch) | |
tree | 9a938ebc4463dc2fc7a62ac200e4a1b8f0c56eb9 | |
parent | [README] add a note about ebuild generation for packages available in the tree (diff) | |
download | gs-elpa-d155c9e49e75b8b11741a0721310c610c3e5ef8f.tar.gz gs-elpa-d155c9e49e75b8b11741a0721310c610c3e5ef8f.tar.bz2 gs-elpa-d155c9e49e75b8b11741a0721310c610c3e5ef8f.zip |
[gs-elpa.eclass] issue #4: handle compilation and installation of elisp packages with multiple files
-rw-r--r-- | gs_elpa/data/gs-elpa.eclass | 14 |
1 files 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 ./* } |