the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: ledger
Version: 2.6.1
Revision: 5
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Maintainer: Jesse Alama
Homepage: http://www.newartisans.com/ledger.html
License: BSD
Description: Maintain double-entry ledgers
Source-MD5: 7d2ebb3fbc0ca14e34f4aada9fe764a0
PatchFile: %n.patch
PatchFile-MD5: eddb60ce0e2e9535e3b8d8c4743fedc9
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
BuildDepends: gmp, libofx4, libwww, libpcre1, expat1, opensp5-dev, libgettext8-dev, libiconv-dev, fink (>= 0.24.12)
GCC: 4.0
Depends: %n-shlibs (>= %v-%r), expat1-shlibs, gmp-shlibs, libofx4-shlibs, libpcre1-shlibs
Suggests: gnuplot
Enhances: gnucash
SetCPPFLAGS: -I%p/include/libofx -I%p/include/w3c-libwww
InfoDocs: ledger.info
CompileScript: <<
EMACS="no" ./configure %c
make
<<
InstallScript: <<
make install-binPROGRAMS prefix=%i
make install-pkgincludeHEADERS prefix=%i
make install-libLTLIBRARIES prefix=%i
mkdir -p %i/share/emacs/site-lisp/ledger
install -m 644 ledger.el %i/share/emacs/site-lisp/ledger
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/share/doc/ledger/scripts
install -m 755 scripts/* %i/share/doc/ledger/scripts
mkdir -p %i/share/doc/ledger/extras
install -m 644 ledger.vim %i/share/doc/ledger/extras
mkdir -p %i/share/doc/ledger/examples
install -m 644 sample.dat %i/share/doc/ledger/examples
mkdir -p %i/share/info
install -m 644 ledger.info %i/share/info/ledger
mkdir -p %i/etc/emacs/site-start.d
install -m 644 fink/50ledger.el %i/etc/emacs/site-start.d
<<
DocFiles: LICENSE README NEWS TODO
DescDetail: <<
Ledger is a command-line accounting tool for maintaing doubly-entry
ledgers. The syntax for ledger files is simple (see the file
`sample.dat' in the `examples' subdirectory of the Ledger
documentation directory) and can be maintained using only a text
editor. But it is not necessary to use a text editor to maintain
ledger files: it's possible to use the Gnucash package for this
purpose.
Several example python scripts for performing typical calculations are
included. They can be found in the ledger documentation directory, in
the `extras' subdirectory. Some of these scripts draw graphs using
the Gnuplot package.
A vim configuration can be found in the `extras' subdirectory of the
ledger documentation directory %p/share/doc/ledger .
<<
SplitOff: <<
Package: %N-shlibs
Depends: expat1-shlibs, gmp-shlibs, libofx4-shlibs, libpcre1-shlibs
Files: lib/libamounts.0*.dylib lib/libledger-*.dylib
Shlibs: <<
%p/lib/libledger-2.6.1.dylib 0.0.0 %n (>= 2.6.1-1)
%p/lib/libamounts.0.dylib 1.0.0 %n (>= 2.6.1-1)
<<
DocFiles: LICENSE README NEWS TODO
<<
SplitOff2: <<
Package: %N-dev
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
Replaces: %N (<< 2.6.1-5)
Files: include lib/libledger.{a,dylib,la} lib/libamounts.{a,dylib,la}
DocFiles: LICENSE README NEWS TODO
<<
SplitOff3: <<
Package: ledger-el
Depends: emacsen, ledger
Description: Maintain a double-entry ledger with emacs
Files: <<
share/emacs/site-lisp/ledger/ledger.el
lib/emacsen-common/packages/install/%N
lib/emacsen-common/packages/remove/%N
etc/emacs/site-start.d/50ledger.el
<<
DocFiles: LICENSE README NEWS TODO
PreRmScript: <<
mkdir -p %p/share/doc/ledger-el
%p/lib/emacsen-common/emacs-package-remove %n
<<
PostInstScript: <<
mkdir -p %p/share/doc/ledger-el
%p/lib/emacsen-common/emacs-package-install %n
<<
DescDetail: <<
Issue the command `M-x ledger' when you're visiting ledger files to
turn on ledger mode. A useful tip: put a file-local variable
; -*- mode: ledger; -*-
into the top or bottom of your ledger files to get emacs to
automatically turn on ledger-mode when visiting ledger files.
<<
<<
diff -Naur --exclude='*~' ledger-2.6.1/fink/50ledger.el ledger-2.6.1.fink/fink/50ledger.el
--- ledger-2.6.1/fink/50ledger.el 1969-12-31 16:00:00.000000000 -0800
+++ ledger-2.6.1.fink/fink/50ledger.el 2007-12-26 10:48:32.000000000 -0800
@@ -0,0 +1 @@
+(require 'ledger)
diff -Naur --exclude='*~' ledger-2.6.1/fink/emacsen-install ledger-2.6.1.fink/fink/emacsen-install
--- ledger-2.6.1/fink/emacsen-install 1969-12-31 16:00:00.000000000 -0800
+++ ledger-2.6.1.fink/fink/emacsen-install 2007-12-26 11:37:02.000000000 -0800
@@ -0,0 +1,34 @@
+#!/bin/bash -e
+#
+# install file for the fink ledger-el emacs package.
+
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "install/ledger-el: Handling install of emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+ echo "install/ledger-el: Skipping unsupported flavor ${FLAVOR}"
+ exit 0
+fi
+
+if [ ${FLAVOR} == emacs ]
+then
+ # Nothing to do -- say nothing
+ exit 0
+fi
+
+echo >&2 -n "install/ledger-el: Byte-compiling for ${FLAVOR}..."
+mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/ledger
+ln -s -f @PREFIX@/share/emacs/site-lisp/ledger/ledger.el @PREFIX@/share/${FLAVOR}/site-lisp/ledger
+
+cd @PREFIX@/share/${FLAVOR}/site-lisp/ledger;
+
+(${FLAVOR} --no-init-file -batch -f batch-byte-compile ledger.el 2>&1) | gzip -9qf > @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz
+
+echo >&2 "done."
+echo >&2 "install/ledger-el: Compilation log saved in @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz."
+
+exit 0
diff -Naur --exclude='*~' ledger-2.6.1/fink/emacsen-remove ledger-2.6.1.fink/fink/emacsen-remove
--- ledger-2.6.1/fink/emacsen-remove 1969-12-31 16:00:00.000000000 -0800
+++ ledger-2.6.1.fink/fink/emacsen-remove 2007-11-16 21:09:02.000000000 -0800
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# This is the Fink version of the ledger-el emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo "remove/ledger-el: Handling removal for emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+ echo "remove/ledger-el: Skipping unsupported flavor ${FLAVOR}"
+ exit 0
+fi
+
+echo >&2 -n "remove/ledger-el: Purging compilation log and byte-compiled files for ${FLAVOR}..."
+rm -f @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/ledger
+echo >&2 "done."
+
+exit 0