diff options
author | Ismael Luceno | 2010-12-05 23:49:42 -0200 |
---|---|---|
committer | Ismael Luceno | 2010-12-06 03:07:31 -0200 |
commit | e3d8483d03a7c8fbeef60b375c307c4327842c7e (patch) | |
tree | 308cae93ac7bb8c921ef9a92fdce9d6ad52501e4 | |
parent | 3d17d7c1e3ec72b5c49a7a7a2a3b9779fc7538f1 (diff) |
emacs-lisp: new section, for emacs extensions
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | emacs-lisp/FUNCTIONS | 44 | ||||
-rw-r--r-- | emacs-lisp/MAINTAINER | 1 |
3 files changed, 48 insertions, 0 deletions
@@ -1,3 +1,6 @@ +2010-12-05 Ismael Luceno <ismael@sourcemage.org> + * emacs-lisp: new section, for emacs extensions + 2010-12-01 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> * science/ggobi: new spell, a visualization program for exploring high-dimensional data diff --git a/emacs-lisp/FUNCTIONS b/emacs-lisp/FUNCTIONS new file mode 100755 index 0000000000..fbc8feca4d --- /dev/null +++ b/emacs-lisp/FUNCTIONS @@ -0,0 +1,44 @@ +#------------------------------------------------------------------------- +## Section-default build script. +#------------------------------------------------------------------------- +function default_build_emacs_lisp() { + shopt -s nullglob + + local texi_files=("$SOURCE_DIRECTORY"/*.texi) + + emacs -batch -f batch-byte-compile "$SOURCE_DIRECTORY"/*.el && + if [ ${#texi_files[@]} -gt 0 ] + then + makeinfo "${texi_files[@]}" && + gzip -9 "$BUILD_DIRECTORY"/*.info + fi +} + +#------------------------------------------------------------------------- +## Section-default install script. +#------------------------------------------------------------------------- +function default_install_emacs_lisp() { + shopt -s nullglob + + local dir="$INSTALL_ROOT/usr/share/emacs/site-lisp/$SPELL" + local info_dir="$INSTALL_ROOT/usr/share/info" + + local info_files=("$BUILD_DIRECTORY"/*.info.gz) + + install -d -m755 "$dir" && + install -m644 "$SOURCE_DIRECTORY"/*.el "$BUILD_DIRECTORY"/*.elc "$dir" && + + if [ ${#info_files[@]} -gt 0 ] + then + install -m644 "${info_files[@]}" "$info_dir" && + install-info --info-dir="$info_dir" "${info_files[@]/#*\//$info_dir/}" + fi +} + +function default_build() { + default_build_emacs_lisp +} + +function default_install() { + default_install_emacs_lisp +} diff --git a/emacs-lisp/MAINTAINER b/emacs-lisp/MAINTAINER new file mode 100644 index 0000000000..405d645600 --- /dev/null +++ b/emacs-lisp/MAINTAINER @@ -0,0 +1 @@ +Ismael Luceno <ismael@sourcemage.org> |