27 lines
954 B
EmacsLisp
27 lines
954 B
EmacsLisp
|
#!/usr/bin/emacs --script
|
||
|
;;; install.el --- pdf-tools layer dependencies installation script
|
||
|
;;
|
||
|
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
|
||
|
;;
|
||
|
;; Author: Eugene "JAremko" Yaremenko <w3techplayground@gmail.com>
|
||
|
;; 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)
|
||
|
|
||
|
(install libpng-dev libz-dev libpoppler-glib-dev
|
||
|
libpoppler-private-dev imagemagick)
|
||
|
(with-installed (git autotools-dev gcc g++ make automake autoconf )
|
||
|
(with-build-dir (tpdft "/tmp/tpdft/")
|
||
|
($ "git clone https://github.com/politza/pdf-tools.git ."
|
||
|
"make -s"
|
||
|
"tar -xf pdf-tools-*.tar"
|
||
|
`("cp ./pdf-tools-*/epdfinfo %s"
|
||
|
,($ ["find \"${UHOME}/.emacs.d/elpa/\""
|
||
|
"-name pdf-tools* -type d -print -quit"])))))
|