[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emms-help] Patch for ELPA
From: |
Tom Tromey |
Subject: |
[emms-help] Patch for ELPA |
Date: |
Sun, 03 Jun 2007 10:17:03 -0600 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) |
I would like to upload EMMS to ELPA, see:
http://tromey.com/elpa/
I wrote this patch to the Makefile to add a new "make elpa" target,
which prepares a package suitable for upload. Please consider
checking it in.
I tested the resulting package using a local repository and it works
great -- I'm listening to music right now :-).
I'll wait for your go-ahead before uploading EMMS to the public
repository. I don't want to step on anybody's toes and if you don't
want EMMS in ELPA, I will respect that.
Tom
diff -rN -u old-emms/Makefile new-emms/Makefile
--- old-emms/Makefile 2007-06-03 10:08:07.000000000 -0600
+++ new-emms/Makefile 2007-06-03 10:08:07.000000000 -0600
@@ -1,25 +1,40 @@
+VERSION := $(shell sed -n '/emms-version/ s/^.*"\(.*\)".*$$/\1/p' emms.el)
+
EMACS=emacs
SITEFLAG=--no-site-file
GZIP=gzip
ALLSOURCE=$(wildcard *.el)
ALLCOMPILED=$(wildcard *.elc)
-SPECIAL=emms-auto.el emms-maint.el
+SPECIAL=emms-auto.el emms-maint.el emms-pkg.el
SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
TARGET=$(patsubst %.el,%.elc,$(SOURCE))
MAN1PAGES=emms-print-metadata.1
+ELPADIR = emms-$(VERSION)
+
DESTDIR=
PREFIX=$(DESTDIR)/usr/local
INFODIR=$(PREFIX)/info
MAN1DIR=$(PREFIX)/share/man/man1
SITELISP=$(PREFIX)/share/emacs/site-lisp/emms
-INSTALLINFO = /usr/sbin/install-info --info-dir=$(INFODIR)
+INSTALLINFO = /usr/sbin/install-info
.PHONY: all install deb-install clean
.PRECIOUS: %.elc %.info %.html
all: $(TARGET) emms-auto.el emms.info
+elpa: $(SOURCE) emms-pkg.el emms.info
+ @rm -rf $(ELPADIR) $(ELPADIR).tar
+ mkdir $(ELPADIR)
+ cp $(SOURCE) emms-pkg.el emms.info $(ELPADIR)
+ $(INSTALLINFO) --info-dir=$(ELPADIR) emms.info
+ tar cf $(ELPADIR).tar $(ELPADIR)
+ @rm -rf $(ELPADIR)
+
+emms-pkg.el: emms.el
+ echo '(define-package "emms" "$(VERSION)" "The Emacs Multimedia
System")' > emms-pkg.el
+
emms-auto.el: emms-auto.in $(SOURCE)
cp emms-auto.in emms-auto.el
-rm -f emms-auto.elc
@@ -50,10 +65,10 @@
install -m 644 $(ALLCOMPILED) $(SITELISP)
install -m 0644 emms.info $(INFODIR)/emms
for p in $(MAN1PAGES) ; do $(GZIP) -9c $$p > $(MAN1DIR)/$$p.gz ; done
- $(INSTALLINFO) emms.info
+ $(INSTALLINFO) --info-dir=$(INFODIR) emms.info
remove-info:
- $(INSTALLINFO) --remove emms.info
+ $(INSTALLINFO) --info-dir=$(INFODIR) --remove emms.info
deb-install:
install -m 644 $(ALLSOURCE) $(SITELISP)
@@ -62,4 +77,4 @@
darcs changes > $@
clean:
- -rm -f *~ *.elc emms-auto.el emms.info emms.html emms-print-metadata
+ -rm -f *~ *.elc emms-auto.el emms.info emms.html emms-print-metadata
emms-pkg.el
- [emms-help] Patch for ELPA,
Tom Tromey <=
- [emms-help] Re: Patch for ELPA, Lucas Bonnet, 2007/06/03
- [emms-help] Re: Patch for ELPA, Michael Olson, 2007/06/03
- [emms-help] Re: Patch for ELPA, Tom Tromey, 2007/06/03
- Re: [emms-help] Re: Patch for ELPA, Jorgen Schaefer, 2007/06/05
- [emms-help] Re: Patch for ELPA, Lucas Bonnet, 2007/06/05
- [emms-help] Re: Patch for ELPA, Tassilo Horn, 2007/06/05
- Re: [emms-help] Re: Patch for ELPA, Ye Wenbin, 2007/06/05
- [emms-help] Re: Patch for ELPA, Tassilo Horn, 2007/06/05
- [emms-help] Re: Patch for ELPA, Tom Tromey, 2007/06/05