mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
880ca3da55
Switch to http-tar for install method, and add code to make it act more similarly to when it is installed via apt-get. Fixes #759.
95 lines
4.6 KiB
Plaintext
95 lines
4.6 KiB
Plaintext
;; The advantage of installing this via a tarball instead of using apt
|
|
;; is that you can install it on non-Debian systems, and you can use
|
|
;; it even if you're not using the system emacs on Debian (for
|
|
;; example, if you have compiled and installed emacs in your home
|
|
;; directory).
|
|
(:name emacs-goodies-el
|
|
:website "http://packages.debian.org/sid/emacs-goodies-el"
|
|
:description "Miscellaneous add-ons for Emacs"
|
|
:type http-tar
|
|
:url "http://alioth.debian.org/snapshots.php?group_id=30060"
|
|
:options ("xzf")
|
|
:build
|
|
(let ((makerfiles
|
|
(split-string (shell-command-to-string "find . -name '*.make'"))))
|
|
(mapcar
|
|
(lambda (makerfile)
|
|
(let ((maker-dir (file-name-directory makerfile))
|
|
(maker-command
|
|
(replace-regexp-in-string
|
|
"\n" ""
|
|
(replace-regexp-in-string
|
|
"^emacs" el-get-emacs
|
|
(with-temp-buffer
|
|
(insert-file-contents makerfile)
|
|
(buffer-string))))))
|
|
(format "cd %s && %s" maker-dir maker-command)))
|
|
makerfiles))
|
|
:load-path ("emacs-goodies-el/elisp/debian-el"
|
|
"emacs-goodies-el/elisp/devscripts-el"
|
|
"emacs-goodies-el/elisp/dpkg-dev-el"
|
|
"emacs-goodies-el/elisp/emacs-goodies-el"
|
|
;; "emacs-goodies-el/elisp/gnus-bonus-el"
|
|
"emacs-goodies-el/elisp/vm-bonus-el")
|
|
;; The :features and :post-init are taken from the
|
|
;; debain/*.emacsen-startup files in the source package. Some
|
|
;; of these files just require specific features, and those are
|
|
;; added to :features. Others have some significant init code,
|
|
;; and this has been manually copied into :post-init. The
|
|
;; emacsen-startup files cannot be used directly because they
|
|
;; have hardcoded paths to where dpkg would install the
|
|
;; packages. Importantly, this means that if these files are
|
|
;; ever changed in the debian packages, then the following
|
|
;; parts of the recipe would need to be updated manually.
|
|
:features (emacs-goodies-el
|
|
debian-el
|
|
dpkg-dev-el)
|
|
:post-init
|
|
(progn
|
|
;; autoloads for devscripts.el
|
|
(autoload 'debuild "devscripts" "Run debuild in the current directory." t)
|
|
(autoload 'debc "devscripts" "Run debc in the current directory." t)
|
|
(autoload 'debi "devscripts" "Run debi in the current directory." t)
|
|
(autoload 'debit "devscripts" "Run debit in the current directory." t)
|
|
(autoload 'debdiff "devscripts" "Compare contents of CHANGES-FILE-1 and CHANGES-FILE-2." t)
|
|
(autoload 'debdiff-current "devscripts" "Compare the contents of .changes file of current version with previous version;
|
|
requires access to debian/changelog, and being in debian/ dir." t)
|
|
(autoload 'debclean "devscripts" "Run debclean in the current directory." t)
|
|
(autoload 'pdebuild "pbuilder-mode" "Run pdebuild in the current directory." t)
|
|
(autoload 'pdebuild-user-mode-linux "pbuilder-mode" "Run pdebuild-user-mode-linux in the current directory." t)
|
|
(autoload 'pbuilder-log-view-elserv "pbuilder-log-view-mode" "Run a elserv session with log view.
|
|
|
|
Running this requires elserv. Use elserv, and do `elserv-start' before invoking this command." t)
|
|
(autoload 'debuild-pbuilder "pbuilder-mode" "Run debuild-pbuilder in the current directory." t)
|
|
(autoload 'pbuilder-build "pbuilder-mode" "Run pbuilder-build for the given filename." t)
|
|
(autoload 'pbuilder-user-mode-linux-build "pbuilder-mode" "Run pbuilder-user-mode-linux for the given filename." t)
|
|
|
|
;; from "debian/vm-bonus-el.emacsen-startup"
|
|
(defgroup vm-bonus-el nil
|
|
"Customize vm-bonus-el Debian packages."
|
|
:group 'vm)
|
|
|
|
;; vm-bogofilter.el
|
|
(defgroup vm-bogofilter nil
|
|
"VM Spam Filter Options"
|
|
:group 'vm
|
|
:group 'vm-bonus-el
|
|
:load 'vm-bogofilter)
|
|
|
|
(autoload 'vm-bogofilter-setup "vm-bogofilter"
|
|
"Initialize vm-bogofilter."
|
|
t)
|
|
|
|
(defcustom vm-bogofilter-setup nil
|
|
"Whether to initialize vm-bogofilter on startup.
|
|
vm-bogofilter interfaces VM with the bogofilter spam filter."
|
|
:type 'boolean
|
|
:set (lambda (symbol value)
|
|
(set-default symbol value)
|
|
(when value
|
|
(vm-bogofilter-setup)))
|
|
:load 'vm-bogofilter
|
|
:group 'vm
|
|
:group 'vm-bogofilter
|
|
:group 'vm-bonus-el)))
|