el-get/recipes/package.rcp
2012-02-22 14:46:21 -08:00

34 lines
1.4 KiB
Plaintext

;; Same as "package" except that it takes the version from Emacs 24
(:name package
:description "ELPA implementation (\"package.el\") from Emacs 24"
:builtin 24
:type http
:url "http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el"
:shallow nil
:features package
:post-init
((setq package-user-dir
(expand-file-name
(convert-standard-filename
(concat (file-name-as-directory
default-directory)
"elpa")))
package-directory-list
(list (file-name-as-directory package-user-dir)
"/usr/share/emacs/site-lisp/elpa/"))
(make-directory package-user-dir t)
(unless (boundp 'package-subdirectory-regexp)
(defconst package-subdirectory-regexp
"^\\([^.].*\\)-\\([0-9]+\\(?:[.][0-9]+\\)*\\)$"
"Regular expression matching the name of
a package subdirectory. The first subexpression is the package
name. The second subexpression is the version string."))
(setq
package-archives
'(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")))))
;; Don't init, elpa packages installed by el-get is
;; initialized from loaddefs (package-initialize)