Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marmalade support #121

Closed
rassie opened this issue Jan 9, 2011 · 7 comments
Closed

Marmalade support #121

rassie opened this issue Jan 9, 2011 · 7 comments

Comments

@rassie
Copy link
Contributor

rassie commented Jan 9, 2011

Marmalade is an alternative repository for package.el located at http://marmalade-repo.org/. Would be nice to have its explicit support in el-get. Implicit support is already possible by adding (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages")) to init.el.

@dabrahams
Copy link
Contributor

Interesting; for this to work you actually need the version of package.el from the emacs 24 repository: http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el

The version of package.el on tromey.com doesn't have a package-archives variable.

(setq el-get-sources 
  '((:name package 
     :url "http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el")))

@dabrahams
Copy link
Contributor

Also, I note that you have to add a trailing slash to that URL or it breaks:

(add-to-list 
  'package-archives 
  '("marmalade" . "http://marmalade-repo.org/packages/"))

@dabrahams
Copy link
Contributor

I further note that fully using package.el from emacs24 requires one more elisp file, package-x.el from the same repo, and that it doesn't include the original elpa package archive by default. So you may also need:

(add-to-list
'package-archives
'("tromey" . "http://tromey.com/elpa/"))

@dimitri
Copy link
Owner

dimitri commented Jan 29, 2011

One of you should probably send us the full working new recipe of package.el, using the Emacs24 code and with support for tromey and marmalade archives. I'll be happy to apply such a change.

Also, has some testing been done wrt the packages.el from Emacs24 working fine with previous Emacs version, at least emacs 23?

@taoeffect
Copy link

Yeah, it'd be nice to make sure that this works emacs 23.

@antonj
Copy link
Contributor

antonj commented Apr 24, 2011

I'm using this recipe to get package.el working with emacs 23, the issue is that 'package-subdirectory-regexp' is not defined in package.el, I don't know where it went, it used to be there :) Anyway this recipe would work as a hack for emacs versions prior to 24. Marmelade support could be added in the post-init hook. I also commented the same snippet on #209

(:name aj-package
               :type http
               :url "http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el"
               :features package
               :post-init (lambda ()
                            (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/")))
                            ;; Don't init, elpa packages installed by el-get is initialized from loaddefs
                            ;;(package-initialize)
                            ))

@dimitri
Copy link
Owner

dimitri commented May 3, 2011

I merged your post-init into the package24 recipe from el-get, and added the marmelade URL in package-archives. Is it ok enough this way?

@dimitri dimitri closed this as completed Jun 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants