Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 6f1e6c91 authored by Matthew L. Fidler's avatar Matthew L. Fidler

Added el-get-elpa-build-local-recipies so that I can mirror elpa packages in...

Added el-get-elpa-build-local-recipies so that I can mirror elpa packages in el-get. (Whats the point of building thes packages by hand)
parent 26889259
......@@ -29,8 +29,16 @@
:group 'el-get
:type 'directory)
(defcustom el-get-recipe-path-elpa
(concat (file-name-directory el-get-dir) "el-get/recipes/elpa/")
"Define where to keep a local copy of elpa recipes"
:group 'el-get
:type 'directory)
(defcustom el-get-recipe-path
(list (concat (file-name-directory el-get-script) "recipes")
"Define where to look for the recipes, that's a list of directories"
:group 'el-get
......@@ -138,4 +138,35 @@ the recipe, then return nil."
:elpa #'el-get-elpa-install #'el-get-elpa-update #'el-get-elpa-remove
#'el-get-elpa-install-hook #'el-get-elpa-remove-hook)
;;; Functions to maintain a local recipe list from ELPA
(defun el-get-elpa-build-local-recipies (&optional target-dir)
"retrieves list of ELPA packages and turn them to local recipe set."
(unless package-archive-contents
(let ((target-dir (or target-dir
(car command-line-args-left)
(coding-system-for-write 'utf-8)
pkg package description)
(unless (file-directory-p target-dir) (make-directory target-dir))
(mapc (lambda(pkg)
(let* ((package (format "%s" (car pkg)))
(pkg-desc (cdr pkg))
(description (package-desc-doc pkg-desc))
(repo (aref pkg-desc 4)))
(with-temp-file (expand-file-name (concat package ".rcp")
(message "%s:%s (%s)" package description repo)
"(:name %s\n:type elpa\n:description \"%s\"\n:repo \"%s\")"
package description repo))
(indent-region (point-min) (point-max)))))
(provide 'el-get-elpa)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment