1) Please find attached the fink info file which I have written to achieve this. This file relies on a local tar of the cvs (I have one which builds without *too* many warnings and would be happy to forward it if you would like it ;-) as there is as yet no official emacs 22.0.50 release.
emacs22-carbon-22.0.50-1.info
Description: Binary data
2) If anyone could explain how to avoid the warnings generated by fink validate relating to the InstallScript, PostInstScript and PreRmScript it would be most appreciated. Specifically I have used numerous loops which are only properly executed when the section in which they are contained is executed as a whole (using #! /bin/sh) and not line by line, otherwise the build fails with the error (for: unknown command or executable). However while specifying the interpreter makes the build happy, it causes "fink validate <infofile>" to complain about a "Useless use of explicit interpretter in <script>". I know that this is not a big deal, but it would be nice to see the words "package looks good!" instead.
3) Note that I have only built this on 10.4.0 and so cannot vouch for systems <= 10.3, although fink contains the necessary ncurses already.
4) I have not deleted the emacs binary from ${prefix}/bin as personally I find this annoying and would prefer to use one version of emacs, and not have to deal with the emacs 21.2 that apple supplies in /usr/bin.
5) I have not changed the permissions or flags on the installed files from the defaults used by make install, for several reasons, the primary one being that I personally like 775 and prefer not to have root own the stuff under ${prefix}, but then that's just my personal preference.
This is my first fink package and a first draft so be gentle, unless it's really crap of of course ;-p, in which case feel free to say so.
Always,
Daniel
P.S. Thanks to Christian Swinehart whose package descriptions for the existing emacs packages were invaluable in getting update- alternatives and emacsen-common stuff to work properly, and who will presumably be taking this over if it's accepted.
