Sébastien Maret <[EMAIL PROTECTED]> writes:

> On Dec 15, 2005, at 22:44, Jesse Alama wrote:
>
>> Sébastien Maret <[EMAIL PROTECTED]> writes:
>>
>>> On Dec 15, 2005, at 15:57, Brendan Cully wrote:
>>>
>>>> On Thursday, 15 December 2005 at 15:52, Sebastien Maret wrote:
>>>>> The following message is a courtesy copy of an article
>>>>> that has been posted to gmane.os.apple.fink.devel as well.
>>>>>
>>>>> Brendan Cully <[EMAIL PROTECTED]> writes:
>>>>>
>>>>>> Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/
>>>>>> finkinfo/net
>>>>>> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27005
>>>>>>
>>>>>> Added Files:
>>>>>>  erc.info erc.patch
>>>>>> Log Message:
>>>>>> New package from tracker #1236469
>>>>>
>>>>> Doesn't work for me. Emacs says that it can't open erc-compat.el.
>>>>> It's
>>>>> probably not byte-compiled and removed by:
>>>>>
>>>>> rm -f @PREFIX@/share/${FLAVOR}/site-lisp/erc/*.el;
>>>>>
>>>>> in the PostInstScript. Copying it from /sw/share/emacs/site-lisp/
>>>>> erc to
>>>>> /sw/share/emacs22/site-lisp/erc solves the problem.
>>>>
>>>> Bah. I spent a while arguing that the .el files should be
>>>> removed, and
>>>> now this :)
>>>
>>> I think that removing the .el files is indeed a good idea (provided
>>> that they are byte-compiled of course), since emacs will use the .elc
>>> files anyway.
>>>
>>>> So, I guess either keep symlinks of all the *.el in the $FLAVOR
>>>> directories, or maybe just keep symlinks of *.el files that don't
>>>> have
>>>> corresponding *.elc.
>>>
>>> I'd rather patch the Makefile so the erc-compat.el got byte-compiled.
>>
>> I've implemented Sebastien's proposal; new info and patch file
>> attached.  It seems to work just fine with emacs21, emacs22, and
>> Brendan's system-emacs.
>
> I see in the patched Makefile that three others .el files aren't
> compiled: erc-bbdb.el, erc-chess and erc-speak.el. Is there any
> reason for that ? Maybe erc don't need them ?

I've modified the Makefile now: now we attempt to compile everything,
and in the emacsen-install we call make with the added flag
"--keep-going".  This way we just compile whatever we can.  I've also
incorporated Brendan's suggestion about symlinks for the .el files in
$FLAVOR/site-lisp/erc.  Here's the latest attempt:

Attachment: erc.info
Description: Binary data

diff -Naur --exclude='*~' erc-5.0.4/Makefile erc-5.0.4.fink/Makefile
--- erc-5.0.4/Makefile	2005-07-12 16:09:00.000000000 -0700
+++ erc-5.0.4.fink/Makefile	2005-12-15 20:40:37.000000000 -0800
@@ -2,8 +2,7 @@
 SNAPDIR=erc-$(VERSION)
 
 SPECIAL = erc-auto.el
-UNCOMPILED = erc-chess.el erc-bbdb.el erc-ibuffer.el erc-speak.el \
-		erc-speedbar.el erc-compat.el
+UNCOMPILED = 
 TESTING = erc-members.el erc-macs.el
 ALLSOURCE = $(wildcard *.el)
 SOURCE	= $(filter-out $(SPECIAL) $(UNCOMPILED) $(TESTING),$(ALLSOURCE))
diff -Naur --exclude='*~' erc-5.0.4/fink/README.fink erc-5.0.4.fink/fink/README.fink
--- erc-5.0.4/fink/README.fink	1969-12-31 16:00:00.000000000 -0800
+++ erc-5.0.4.fink/fink/README.fink	2005-12-14 14:16:59.000000000 -0800
@@ -0,0 +1,11 @@
+To use erc, add the form
+
+(require 'erc)
+
+to your emacs initialization file.  The main entry point into the
+system is the function `erc-select'.
+
+ERC is currently not compiled for XEmacs, since xemacs does not
+register itself with emacsen-common via emacs-install (as of December
+14, 2005).  However, ERC for XEmacs can be obtained using the XEmacs
+package system.
diff -Naur --exclude='*~' erc-5.0.4/fink/emacsen-install erc-5.0.4.fink/fink/emacsen-install
--- erc-5.0.4/fink/emacsen-install	1969-12-31 16:00:00.000000000 -0800
+++ erc-5.0.4.fink/fink/emacsen-install	2005-12-15 20:41:52.000000000 -0800
@@ -0,0 +1,40 @@
+#!/bin/bash -e
+#
+# install file for the fink erc emacs package.
+
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "install/erc: Handling install of emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+    echo "install/erc: Skipping unsupported flavor ${FLAVOR}"
+    exit 0
+fi
+
+if [ ${FLAVOR} == emacs ]
+then
+    echo "install/erc: Done."
+    exit 0
+fi
+
+echo >&2 -n "install/erc: Byte-compiling for ${FLAVOR}..."
+mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/erc;
+for i in erc-auto.el erc-autoaway.el erc-autojoin.el erc-backend.el erc-bbdb.el erc-button.el erc-chess.el erc-compat.el erc-complete.el erc-dcc.el erc-ezbounce.el erc-fill.el erc-goodies.el erc-ibuffer.el erc-identd.el erc-imenu.el erc-lang.el erc-list.el erc-log.el erc-maint.el erc-match.el erc-menu.el erc-nets.el erc-netsplit.el erc-nicklist.el erc-nickserv.el erc-notify.el erc-page.el erc-pcomplete.el erc-replace.el erc-ring.el erc-sound.el erc-speak.el erc-speedbar.el erc-stamp.el erc-track.el erc-truncate.el erc-xdcc.el erc.el erc-auto.in Makefile; do 
+    ln -s @PREFIX@/share/emacs/site-lisp/erc/${i} @PREFIX@/share/${FLAVOR}/site-lisp/erc/${i};
+done
+
+cd @PREFIX@/share/${FLAVOR}/site-lisp/erc;
+
+(make EMACS=${FLAVOR} --keep-going 2>&1) | gzip -9qf > @PREFIX@/share/doc/erc/CompilationLog-${FLAVOR}.gz
+
+rm -f @PREFIX@/share/${FLAVOR}/site-lisp/erc/Makefile;
+rm -f @PREFIX@/share/${FLAVOR}/site-lisp/erc/erc-auto.in
+rm -f @PREFIX@/share/${FLAVOR}/site-lisp/erc/erc-auto.el~;
+
+echo >&2 "done."
+echo >&2 "install/erc: Compilation log saved in @PREFIX@/share/doc/erc/CompilationLog-${FLAVOR}.gz."
+
+exit 0
diff -Naur --exclude='*~' erc-5.0.4/fink/emacsen-remove erc-5.0.4.fink/fink/emacsen-remove
--- erc-5.0.4/fink/emacsen-remove	1969-12-31 16:00:00.000000000 -0800
+++ erc-5.0.4.fink/fink/emacsen-remove	2005-12-14 16:42:34.000000000 -0800
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# This is the Fink version of the erc emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo "remove/erc: Handling removal for emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+    echo "remove/erc: Skipping unsupported flavor ${FLAVOR}"
+    exit 0
+fi
+
+echo >&2 -n "remove/erc: Purging compilation log and byte-compiled files for ${FLAVOR}..."
+rm -f @PREFIX@/share/doc/erc/CompilationLog-${FLAVOR}.gz
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/erc
+echo >&2 "done."
+    
+exit 0
diff -Naur --exclude='*~' erc-5.0.4/fink/erc.copyright erc-5.0.4.fink/fink/erc.copyright
--- erc-5.0.4/fink/erc.copyright	1969-12-31 16:00:00.000000000 -0800
+++ erc-5.0.4.fink/fink/erc.copyright	2005-12-15 20:38:23.000000000 -0800
@@ -0,0 +1,55 @@
+This package was finkified by Jesse Alama <[EMAIL PROTECTED]>
+
+It was downloaded from
+   http://sourceforge.net/projects/erc/
+
+Upstream Authors: Alexander L. Belikoff ([EMAIL PROTECTED]),
+		  Sergey Berezin ([EMAIL PROTECTED]),
+		  Mario Lang ([EMAIL PROTECTED]),
+		  Alex Schroeder ([EMAIL PROTECTED]),
+		  Gergely Nagy ([EMAIL PROTECTED]),
+		  Andreas Fuchs ([EMAIL PROTECTED]),
+		  Tijs van Bakel ([EMAIL PROTECTED]),
+		  Brian P Templeton ([EMAIL PROTECTED]),
+		  John Wiegley ([EMAIL PROTECTED]),
+		  Diane Murray ([EMAIL PROTECTED]),
+		  Benjamin Drieu ([EMAIL PROTECTED]),
+		  Jorgen Schaefer ([EMAIL PROTECTED]),
+		  Francis Litterio ([EMAIL PROTECTED]),
+		  Damien Elmes ([EMAIL PROTECTED]),
+		  Lawrence Mitchell ([EMAIL PROTECTED]),
+		  Sandra Jean Chua ([EMAIL PROTECTED]),
+		  Jeremy Bertram Maitin-Shepard ([EMAIL PROTECTED]),
+		  Johan Bockgard ([EMAIL PROTECTED]),
+		  Edward O'Connor ([EMAIL PROTECTED]),
+		  Brian Palmer ([EMAIL PROTECTED]),
+		  Adrian Aichner ([EMAIL PROTECTED]),
+		  Michael Olson ([EMAIL PROTECTED])
+
+Copyright:
+
+   Copyright (C) 1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,
+                 2003,2004,2005 Free Software Foundation, Inc.
+   Copyright (C) 2001 Tijs van Bakel
+   Copyright (C) 2001,2002 Gergely Nagy
+   Copyright (C) 2003,2004 Adrian Aichner
+   Copyright (C) 2003 Arne Schwabe
+   Copyright (C) 2003,2004 Jeremy Bertram Maitin-Shepard
+   Copyright (C) 2004 Brian Palmer
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 dated June, 1991.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+The complete text of the GNU General Public License can be found in
[EMAIL PROTECTED]@/share/doc/fink/COPYING'.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

Reply via email to