Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28895

Modified Files:
        ledger.info 
Added Files:
        ledger.patch 
Log Message:
New upstream version by maintainer (tracker # 1547337)


Index: ledger.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/utils/ledger.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ledger.info 28 May 2006 21:41:35 -0000      1.1
+++ ledger.info 1 Dec 2006 23:30:58 -0000       1.2
@@ -1,32 +1,42 @@
 Package: ledger
-Version: 2.4.1
-Revision: 1
+Version: 2.5
+Revision: 10
 Source: mirror:sourceforge:%n/%n-%v.tar.gz
 Maintainer: Jesse Alama <[EMAIL PROTECTED]>
 Homepage: http://www.newartisans.com/ledger.html
 License: OSI-Approved
 Description: Maintain double-entry ledgers
-Source-MD5: 5c0b653ef3298b9fb851c372c604c509
-Depends: gmp-shlibs, libofx1-shlibs, libwww-shlibs, pcre-shlibs, expat-shlibs
-BuildDepends: gmp, libofx1, libwww, pcre, expat
-Suggests: python, gnuplot
+Source-MD5: ef2ac2e9942ecddfc01cc6ae42e264e9
+PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
+BuildDepends: gmp, libofx1, libwww, pcre, expat, opensp4-dev, libgettext3-dev, 
libiconv-dev
+GCC: 4.0
+Depends: %N-shlibs (= %v-%r), libofx1-shlibs, libwww-shlibs, expat-shlibs, 
opensp4-shlibs, libgettext3-shlibs, libiconv
+Suggests: gnuplot 
 Enhances: gnucash
 SetCPPFLAGS: -I%p/include/libofx -I%p/include/w3c-libwww
-InfoDocs: ledger.info
-ConfigureParams: --infodir=%p/share/info
+InfoDocs: ledger
+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 755 main.py setup.py %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/emacs/site-lisp/ledger
-  install -m 644 ledger.el %i/share/emacs/site-lisp/ledger
   mkdir -p %i/share/info
-  install -m 644 ledger.info %i/share/info
+  install -m 644 ledger.info %i/share/info/ledger
 <<
 DocFiles: LICENSE README NEWS ledger.pdf ChangeLog
 DescDetail: <<
@@ -43,10 +53,46 @@
 the `extras' subdirectory.  Some of these scripts draw graphs using
 the Gnuplot package.
 
-An emacs package, `ledger.el', is also included.  To enable it, simply
-add the command
+A vim configuration can be found in the `extras' subdirectory of the
+ledger documentation directory %p/share/doc/ledger .
+<<
+SplitOff: <<
+  Package: %N-shlibs
+  Description: Shared libraries for ledger
+  Depends: gmp-shlibs, pcre-shlibs
+  Shlibs: %p/lib/libledger-2.5.dylib 0.0.0 %n (>= 2.5-1)
+  Files: lib/libledger-2.5.dylib
+<<
+SplitOff2: <<
+  Package: %N-dev
+  Depends: %N-shlibs (= %v-%r)
+  Description: Header files for ledger
+  BuildDependsOnly: True
+  Files: lib/libledger.a lib/libledger.la lib/libledger.dylib include
+<<
+SplitOff3: <<
+  Package: %N-el
+  Depends: emacsen, %N (= %v-%r)
+  Conflicts: %N (<= 2.4.1-1)
+  Replaces: %N (<= 2.4.1-1)
+  Description: Maintain a double-entry ledger with emacs
+  Files: <<
+    share/emacs
+    lib/emacsen-common
+  <<
+  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: <<
+To enable this package within emacs, simply add the command
 
   (require 'ledger)
 
-in your emacs initialization file.
+to your emacs initialization file.
+  <<
 <<

--- NEW FILE: ledger.patch ---
diff -Naur --exclude='*~' ledger-2.5/fink/emacsen-install 
ledger-2.5.fink/fink/emacsen-install
--- ledger-2.5/fink/emacsen-install     1969-12-31 16:00:00.000000000 -0800
+++ ledger-2.5.fink/fink/emacsen-install        2006-11-27 01:33:43.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
+    echo "install/ledger-el: Done."
+    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.5/fink/emacsen-remove 
ledger-2.5.fink/fink/emacsen-remove
--- ledger-2.5/fink/emacsen-remove      1969-12-31 16:00:00.000000000 -0800
+++ ledger-2.5.fink/fink/emacsen-remove 2006-10-07 13:40:20.000000000 -0700
@@ -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

                 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to