the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: speedbar
Version: 0.14beta4
Revision: 5
Description: Emacs - quick access to files and tags
License: GPL
Maintainer: Rohan Lloyd
BuildDepends: fink (>= 0.24.12)
Depends: emacsen
Source: mirror:sourceforge:cedet/%n-%v.tar.gz
Source-MD5: bfda4dfb0b30b1f9c1162347cb7c69fb
PatchFile: %n.patch
PatchFile-MD5: 18e38e5366f0036d5459a6c2aa289ff4
PatchScript: <<
/usr/bin/sed 's|@PREFIX@|%p|g' <%{PatchFile} | /usr/bin/patch
/usr/bin/head -n 28 %n.el >LICENSE
<<
CompileScript: /usr/bin/makeinfo -o %n.info %n.texi
InstallScript:<<
/usr/bin/install -m 755 -d %i/share/emacs/site-lisp/%n
/usr/bin/install -m 644 *.el %i/share/emacs/site-lisp/%n
/usr/bin/install -m 755 -d %i/share/pixmaps/%n
/usr/bin/install -m 644 *.xpm %i/share/pixmaps/%n
/usr/bin/install -m 755 -d %i/lib/emacsen-common/packages/install
/usr/bin/install -m 755 emacsen-install \
%i/lib/emacsen-common/packages/install/%n
/usr/bin/install -m 755 -d %i/lib/emacsen-common/packages/remove
/usr/bin/install -m 755 emacsen-remove %i/lib/emacsen-common/packages/remove/%n
/usr/bin/install -m 755 -d %i/share/info
/usr/bin/install -m 644 *.info %i/share/info
/usr/bin/install -m 755 -d %i/share/doc/%n/src
/usr/bin/install -m 644 *.texi %i/share/doc/%n/src
<<
PostInstScript: <<
if [ "$1" = "configure" ]; then
%p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
%p/lib/emacsen-common/emacs-package-remove %n
<<
DocFiles: INSTALL LICENSE
InfoDocs: %n.info
Homepage: http://cedet.sourceforge.net/speedbar.shtml
DescDetail:<<
The speedbar provides a frame in which files, and locations in
files are displayed. These items can be clicked on with mouse-2
in order to make the last active frame display that file location.
<<
DescPackaging: <<
emacs21 comes with speedbar v0.11a, so we need to make sure this version
comes first in the load-path
Also speedbar.el says we need to re byte compile rmail.el, info.el and gud.el
in emacs20 when moving from 0.12 or less to 0.13.
I don't know whether this applies here!!! If it does, install script should
probably byte compile them. Don't forget to byte compile on removal too
to put it back the way it came!!
<<
diff -Naur speedbar-0.14beta4.orig/emacsen-install speedbar-0.14beta4/emacsen-install
--- speedbar-0.14beta4.orig/emacsen-install Thu Jan 1 10:00:00 1970
+++ speedbar-0.14beta4/emacsen-install Wed Sep 25 02:24:08 2002
@@ -0,0 +1,52 @@
+#! /bin/sh -e
+
+FLAVOR=$1
+PACKAGE=speedbar
+
+echo install/${PACKAGE}: Handling install of emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} == emacs ]; then exit 0; fi
+
+FLAVORTEST=`echo $FLAVOR | cut -c-6`
+if [ ${FLAVORTEST} = xemacs ] ; then
+ SITEFLAG="-no-site-file"
+else
+ SITEFLAG="--no-site-file"
+fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=@PREFIX@/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=@PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+# emacs-w3 does not install contrib/w3-imenu which is needed
+# for the optional sb-w3, so don't try to compile it.
+rm sb-w3.el
+
+FILES=`echo *.el`
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+
+rm -f *.elc
+${FLAVOR} ${FLAGS} ${FILES}
+
+rm -f *.el
+
+ln -sf @PREFIX@/share/pixmaps/speedbar/*.xpm .
+
+#Install a site-start file that ensures that this version of speedbar
+#is found in the load-path before the old one that comes with emacs
+
+cat << EOF > @PREFIX@/etc/${FLAVOR}/site-start.d/50speedbar.el
+(setq load-path (cons "@PREFIX@/share/${FLAVOR}/site-lisp/speedbar" load-path))
+EOF
+
+exit 0
diff -Naur speedbar-0.14beta4.orig/emacsen-remove speedbar-0.14beta4/emacsen-remove
--- speedbar-0.14beta4.orig/emacsen-remove Thu Jan 1 10:00:00 1970
+++ speedbar-0.14beta4/emacsen-remove Wed Sep 25 02:25:09 2002
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+FLAVOR=$1
+
+echo remove/speedbar: Handling removal of emacsen flavor ${FLAVOR}
+
+if [ ${FLAVOR} != emacs ]
+then
+ echo remove/speedbar: purging byte-compiled files for ${FLAVOR}
+
+ rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/speedbar
+ rm -f @PREFIX@/etc/${FLAVOR}/site-start.d/??speedbar.el
+
+fi
+
+exit 0;
+