emacs23-app _unstable_ port information

Package: emacs23-app
Version: 9.0rc3
Revision: 2
Maintainer: Kenneth Vestergaard Schmidt
Provides: emacsen
Depends: emacsen-common, libncurses5-shlibs
BuildDepends: libncurses5

Source: mirror:sourceforge:emacs-app/emacs-23.0.0_NS-%v.tar.bz2
Source-MD5: b080af75ab03cfe49aa3bf00695cdab8

Patch: emacs23-app.patch
ConfigureParams: --with-ns --without-x --exec_prefix='${prefix}/Applications/Emacs.app/Contents/MacOS' --libexecdir='${prefix}/Applications/Emacs.app/Contents/MacOS/libexec' --with-pop --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --enable-font-backend --without-freetype
CompileScript: <<
#!/bin/sh -ev
autoconf
./configure %c

# Recompile .el
(cd src && make -j3 bootstrap) || exit
(cd lisp && find . -name '*.elc' -delete && make compile EMACS=../src/bootstrap-emacs) || exit
# Compile emacs with new *.elc
make -j3
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i

# Bin cleanup
cd %i/Applications/Emacs.app/Contents/MacOS/bin
rm -f emacs emacs-23*

# Move libexec stuff up, and link it from bin
cd ../libexec
mv -f emacs/*/*/* .
rm -fr emacs
cd ../bin
ln -sf ../libexec/* .

mkdir -p %i/etc/emacs
mkdir -p %i/etc/emacs23/site-start.d
mkdir -p %i/share/emacs23
mv %i/share/emacs/23.0.60/site-lisp %i/share/emacs23/
(cd %i/share/emacs/23.0.60; ln -s ../../emacs23/site-lisp site-lisp) || exit
rm %i/share/emacs/site-lisp/subdirs.el
<<
AppBundles: nextstep/build/Emacs.app

PostInstScript: <<
mkdir -p %p/etc/lisp/emacs/site-lisp
update-alternatives --install %p/bin/emacs23 emacs %p/Applications/Emacs.app/Contents/MacOS/Emacs 40 \
--slave %p/share/man/man1/emacs.1 emacs.1 %p/Applications/Emacs.app/Contents/Resources/man/man1/emacs.1
update-alternatives --install %p/bin/ctags.emacs23 ctags %p/Applications/Emacs.app/Contents/MacOS/bin/ctags 40 \
--slave %p/share/man/man1/ctags.1 ctags.1 %p/Applications/Emacs.app/Contents/Resources/man/man1/ctags.1
update-alternatives --install %p/bin/etags.emacs23 etags %p/Applications/Emacs.app/Contents/MacOS/bin/etags 60 \
--slave %p/share/man/man1/etags.1 etags.1 %p/Applications/Emacs.app/Contents/Resources/man/man1/etags.1
update-alternatives --install %p/bin/emacsclient.emacs23 emacsclient %p/Applications/Emacs.app/Contents/MacOS/bin/emacsclient 40
update-alternatives --install %p/bin/b2m.emacs23 b2m %p/Applications/Emacs.app/Contents/MacOS/bin/b2m 40
update-alternatives --install %p/bin/rcs-checkin.emacs23 rcs-checkin %p/Applications/Emacs.app/Contents/MacOS/bin/rcs-checkin 40
update-alternatives --install %p/bin/ebrowse.emacs23 ebrowse %p/Applications/Emacs.app/Contents/MacOS/bin/ebrowse 40
update-alternatives --install %p/bin/grep-changelog.emacs23 grep-changelog %p/Applications/Emacs.app/Contents/MacOS/bin/grep-changelog 40

# Register ourselves with emacsen-common
%p/lib/emacsen-common/emacs-install emacs23
<<

PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove emacs %p/Applications/Emacs.app/Contents/MacOS/Emacs
update-alternatives --remove emacsclient %p/Applications/Emacs.app/Contents/MacOS/bin/emacsclient
update-alternatives --remove ctags %p/Applications/Emacs.app/Contents/MacOS/bin/ctags
update-alternatives --remove etags %p/Applications/Emacs.app/Contents/MacOS/bin/etags
update-alternatives --remove b2m %p/Applications/Emacs.app/Contents/MacOS/bin/b2m
update-alternatives --remove rcs-checkin %p/Applications/Emacs.app/Contents/MacOS/bin/rcs-checkin
update-alternatives --remove ebrowse %p/Applications/Emacs.app/Contents/MacOS/bin/ebrowse
update-alternatives --remove grep-changelog %p/Applications/Emacs.app/Contents/MacOS/bin/grep-changelog
%p/lib/emacsen-common/emacs-remove emacs23
fi
<<

InfoDocs: <<
ada-mode autotype calc calc-1 calc-2 calc-3 calc-4 calc-5 calc-6 ccmode ccmode-1 cl dired-x ebrowse
ediff efaq eintr eintr-1 eintr-2 eintr-3 elisp elisp-1 elisp-2 elisp-3 elisp-4 elisp-5 elisp-6 elisp-7
elisp-8 elisp-9 elisp-10 emacs-1 emacs-2 emacs-3 emacs-4 emacs-5 emacs-6 emacs-7 emacs-8 emacs-mime
erc eshell eudc flymake forms gnus gnus-1 gnus-2 gnus-3 gnus-4 gnus-5 idlwave info message mh-e mh-e-1
mh-e-2 newsticker org org-1 org-2 pcl-cvs pgg rcirc reftex sc ses sieve smtpmail speedbar
tramp url vip viper widget woman
<<

License: GPL
Description: Flexible real-time text editor
DescDetail: <<
This is a port of the latest GNU Emacs source to Cocoa.
On the Mac, this port differs from "Carbon" ports of GNU Emacs
in that it makes a more concerted attempt from the ground up to
follow OS X desktop and UI conventions (without, however,
limiting in any way what you can already do with Emacs).
<<
Homepage: http://www.gnu.org/software/emacs/