edb stable port information

Package: edb
Description: The Emacs Database
Homepage: http://www.gnuvola.org/software/edb/
Version: 1.31
Revision: 1
License: GPL
BuildDepends: fink (>= 0.24.12)
Depends: emacsen
Recommends: edb-examples
Source: http://www.gnuvola.org/software/edb/%n-%v.tar.gz
Source-MD5: d6c5f2014d332e195d5bcf8f88aa12c4
InfoDocs: edb
DocFiles: AUTHORS BUGS BUGS.edb ChangeLog HACKING NEWS README THANKS TODO doc/refcard.ps fink/README.fink
PatchFile: %n.patch
PatchFile-MD5: 5b742a84fc9d8e58608a75ff11879e83
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
CompileScript: <<
./configure %c
<<
InstallScript: <<
# lisp
mkdir -p %i/share/emacs/site-lisp/edb
install -m 644 lisp/*.el %i/share/emacs/site-lisp/edb
install -m 644 lisp/bfuncs %i/share/emacs/site-lisp/edb
install -m 644 lisp/GNUmakefile %i/share/emacs/site-lisp/edb

# examples
mkdir -p %i/share/edb/examples
cp -R examples/* %i/share/edb/examples

# info
mkdir -p %i/share/info
install -m 644 doc/edb.info %i/share/info/edb

mkdir -p %i/lib/emacsen-common/packages/install
mkdir -p %i/lib/emacsen-common/packages/remove
install -m 755 fink/emacsen-install %i/lib/emacsen-common/packages/install/%n
install -m 755 fink/emacsen-remove %i/lib/emacsen-common/packages/remove/%n

mkdir -p %i/etc/emacs/site-start.d
install -m 644 fink/40edb.el %i/etc/emacs/site-start.d
<<
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n
DescDetail: <<
EDB is a database manager for emacs.
<<
DescUsage: <<
Use M-x db-find-file to start up EDB on a particular database file.

Sample databases can be found in the package edb-examples, under
%p/share/doc/edb.
<<
Maintainer: Jesse Alama
SplitOff: <<
Package: edb-examples
Recommends: %N
Files: share/edb/examples
<<

edb stable port .patch

diff -Naur --exclude='*~' edb-1.31/fink/40edb.el edb-1.31.fink/fink/40edb.el
--- edb-1.31/fink/40edb.el 1969-12-31 16:00:00.000000000 -0800
+++ edb-1.31.fink/fink/40edb.el 2008-09-14 19:14:39.000000000 -0700
@@ -0,0 +1 @@
+(require 'database)
diff -Naur --exclude='*~' edb-1.31/fink/README.fink edb-1.31.fink/fink/README.fink
--- edb-1.31/fink/README.fink 1969-12-31 16:00:00.000000000 -0800
+++ edb-1.31.fink/fink/README.fink 2008-09-14 13:07:48.000000000 -0700
@@ -0,0 +1,22 @@
+This package was finkied by Jesse Alama . The
+upstream maintainer is Thien-Thi Nguyen . The best
+approximation to a homepage that EDB has is
+http://www.emacswiki.org/cgi-bin/wiki/EmacsDataBase ; the upstream
+maintainer's page for EDB is http://www.gnuvola.org/software/edb/ ,
+from which the upstream tarball was downloaded.
+
+According to @PREFIX@/share/doc/edb/NEWS, edb is distributed under the
+GPL3+ license. From the copyright statements in
+@PREFIX@/share/doc/edb/NEWS:
+
+ Copyright (C) 2004,2005,2006,2007,2008 Thien-Thi Nguyen
+
+ Permission is granted to anyone to make or distribute verbatim
+ copies of this document as received, in any medium, provided that
+ the copyright notice and this permission notice are preserved, thus
+ giving the recipient permission to redistribute in turn.
+
+ Permission is granted to distribute modified versions of this
+ document, or of portions of it, under the above conditions,
+ provided also that they carry prominent notices stating who last
+ changed them.
diff -Naur --exclude='*~' edb-1.31/fink/emacsen-install edb-1.31.fink/fink/emacsen-install
--- edb-1.31/fink/emacsen-install 1969-12-31 16:00:00.000000000 -0800
+++ edb-1.31.fink/fink/emacsen-install 2008-09-14 13:54:08.000000000 -0700
@@ -0,0 +1,40 @@
+#!/bin/bash -e
+#
+# install file for the fink edb emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "install/edb: Handling install of emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+ echo "install/edb: Skipping unsupported flavor ${FLAVOR}"
+ exit 0
+fi
+
+if [ ${FLAVOR} == emacs ]
+then
+ echo "install/edb: Done."
+ exit 0
+fi
+
+echo >&2 -n "install/edb: Byte-compiling for ${FLAVOR}..."
+
+mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/edb;
+
+for i in connection.el database.el db-file-io.el db-format.el db-interfa.el db-isbn.el db-lemacs.el db-nosetf.el db-oldnames.el db-rdb.el db-rep.el db-search.el db-sort.el db-summary.el db-tagged.el db-two-dbs.el db-types.el db-util.el edb-1int-to-single.el edb-meta.el edb-t-human-names.el edb-t-places-usuk.el edb-t-timedate1.el state.el system.el bfuncs GNUmakefile ; do
+ ln -sf @PREFIX@/share/emacs/site-lisp/edb/${i} @PREFIX@/share/${FLAVOR}/site-lisp/edb;
+done
+
+cd @PREFIX@/share/${FLAVOR}/site-lisp/edb;
+
+(${FLAVOR} -batch --no-site-file --eval '(setq vc-handled-backends nil)' --eval '(setq load-path (cons "." load-path))' -l bfuncs -f edb-bfunc-make-all 2>&1) | gzip -9qf > @PREFIX@/share/doc/edb/CompilationLog-${FLAVOR}.gz;
+
+rm @PREFIX@/share/${FLAVOR}/site-lisp/edb/bfuncs
+rm @PREFIX@/share/${FLAVOR}/site-lisp/edb/GNUmakefile
+
+echo >&2 "done."
+echo >&2 "install/edb: Compilation log saved in @PREFIX@/share/doc/edb/CompilationLog-${FLAVOR}.gz."
+
+exit 0
diff -Naur --exclude='*~' edb-1.31/fink/emacsen-remove edb-1.31.fink/fink/emacsen-remove
--- edb-1.31/fink/emacsen-remove 1969-12-31 16:00:00.000000000 -0800
+++ edb-1.31.fink/fink/emacsen-remove 2008-09-14 18:27:12.000000000 -0700
@@ -0,0 +1,28 @@
+#!/bin/bash -e
+#
+# This is the Fink version of the edb emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo "remove/edb: Handling removal for emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+ echo "remove/edb: Skipping unsupported flavor ${FLAVOR}"
+ exit 0
+fi
+
+if [ ${FLAVOR} == xemacs ]
+then
+ echo "remove/edb: Skipping unsupported flavor ${FLAVOR}"
+ exit 0
+fi
+
+echo >&2 -n "remove/edb: Purging compilation log and byte-compiled files for ${FLAVOR}..."
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/edb
+rm -f @PREFIX@/share/doc/edb/CompilationLog-${FLAVOR}.gz
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/edb
+echo >&2 "done."
+
+exit 0

edb _unstable_ port .patch