#!/usr/bin/emacs --script ;;; install.el --- gtags layer dependencies installation script ;; ;; Copyright (c) 2012-2018 Sylvain Benner & Contributors ;; ;; Author: Eugene "JAremko" Yaremenko ;; URL: https://github.com/syl20bnr/spacemacs ;; ;; This file is not part of GNU Emacs. ;; ;;; License: GPLv3 (load (expand-file-name "../../lib/deps-install-helpers.el" (file-name-directory load-file-name)) nil t) (let ((global-version "6.6.2")) (install python-pygments libncurses-dev) (with-installed (git tar curl gzip autotools-dev pkg-config libtool dh-autoreconf) (! "Building universal-ctags...") (with-build-dir (tctags "/tmp/ctags/") ($ "git clone https://github.com/universal-ctags/ctags.git ." ;; FIXME: We could be more precise... `("chmod 777 -R %s" ,tctags) "./autogen.sh" "./configure" "make" "make install")) (with-build-dir (tgtags "/tmp/gtags/") (! "Building gtags...") ($ `("curl http://tamacom.com/global/global-%s.tar.gz | tar xvz" ,global-version)) (cd `("%sglobal-%s" ,tgtags ,global-version)) ($ "cp ./gtags.conf /etc/gtags.conf" "./configure --with-exuberant-ctags=/usr/local/bin/ctags" "make" "make install") (set-glob-env "GTAGSLABEL" "pygments"))))