From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: ELPA Howto Date: Sat, 02 Oct 2010 12:22:08 -0600 Message-ID: <878w2gihf3.fsf@gmail.com> References: <81pqvvofgz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P26pn-0003FY-Or for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 14:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P26jj-0000Dh-FL for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 14:23:08 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:58666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P26jj-0008Uw-4C for emacs-orgmode@gnu.org; Sat, 02 Oct 2010 14:23:07 -0400 Received: by pvc7 with SMTP id 7so2459364pvc.0 for ; Sat, 02 Oct 2010 11:22:12 -0700 (PDT) In-Reply-To: <81pqvvofgz.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 30 Sep 2010 13:00:52 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Jambunathan K writes: > I managed to create an elpa compatible tar for orgmode. Recording here > what I did in the hope that it will be useful. > > Creating ELPA-compatible tar: > > 1. Add the enclosed changes to Makefile. > 2. Create an ELPA-compatible tarfile with > $ make TAG=20100930 elpa > 3. Copy the generated org-20100930.tar to the package server > That's great, and it looks like your Makefile patch even automates the process. I'd vote that this to be included into the core and that we begin supporting an elpa-installable version of org-mode tracking the latest named release. If possible I think it'd be great to add a git post-commit hook which could maintain a second elpa org-mode package tracking the latest git HEAD, although I'm not sure if this is possible and it may place overmuch burden on the repo.or.cz and the elpa servers. > > ELPA Server-side setup: > I think we can ignore the server-side setup, since that should be handled by the elpa server at tromney or gnu.org. Is this correct? [...] > An Observation: > > package.el generates an 'org-autoloads.el' as part of compilation and > loads the same as part of activation. This means that autoloads such as > 'org-agenda' gets served from the newly installed package while > non-autoloads like 'org-overview' still point to the old installation. > > This means that a restart of Emacs is necessary for the new changes to > take effect. I am not sure whether it is intended. But this behaviour > could surprise the user. > Noted, perhaps the user could somehow be instructed to run org-reload as part of the ELPA update process, although I believe even org-reload leaves some items un-re-initialized. Cheers -- Eric > > Jambunathan K. > > Attachments: > > X diff --git a/Makefile b/Makefile > X old mode 100644 > X new mode 100755 > X index 1c1f317..a84b62f > X --- a/Makefile > X +++ b/Makefile > X @@ -53,6 +53,9 @@ CP = cp -p > X # Name of the program to install info files > X INSTALL_INFO=install-info > X > X + > X +DOCSTRING = "Outline-based notes management and organizer" > X + > X ##---------------------------------------------------------------------- > X ## BELOW THIS LINE ON YOUR OWN RISK! > X ##---------------------------------------------------------------------- > X @@ -325,6 +328,14 @@ distfile: > X zip -r org-$(TAG).zip org-$(TAG) > X gtar zcvf org-$(TAG).tar.gz org-$(TAG) > X > X +elpa: install-info > X + $(MKDIR) org-$(TAG) > X + cp -r $(LISPFILES0) org-$(TAG)/ > X + cp $(infodir)/dir org-$(TAG) > X + cp $(INFOFILES) org-$(TAG) > X + echo "(define-package \"org\" \"$(TAG)\" \"$(DOCSTRING)\")" > org-$(TAG)/org-pkg.el > X + tar cf org-$(TAG).tar org-$(TAG) --remove-files > X + > X makerelease: > X @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi > X ${MAKE} distfile > X > > Jambunathan K. >