the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gnucash
Version: 1.8.12
Revision: 11
Depends: audiofile-shlibs, bonobo-shlibs, esound-shlibs, g-wrap-shlibs (>= 1.3.4-3), g-wrap (>= 1.3.4-3), gal21-shlibs (>= 0.22-1014), gconf-shlibs, gdk-pixbuf-shlibs, glib-shlibs, gnome-libs-shlibs, gnome-print-shlibs, gtk+-shlibs (>= 1.2.10-50), gtkhtml1.1-shlibs, guile16-shlibs (>= 1.6.7-1010), guppi16-shlibs, imlib-shlibs, libghttp-shlibs, libglade-shlibs, libtool14-shlibs (>= 1.4.3-3), libxml-shlibs, oaf-shlibs, orbit-shlibs, popt-shlibs , slib, finance-quote-pm586, date-manip-pm, finance-quotehist-pm586, xml-parser-pm586, guile16 (>= 1.6.7-1010), gconf, libgettext3-shlibs
BuildDepends: guppi16-dev (>= 0.40.3-2), g-wrap-dev (>= 1.3.4-3), gal21 (>= 0.22-1014), gdk-pixbuf, glib, orbit-dev, libjpeg, libpng3, libtiff, netpbm, giflib, gdbm3, bonobo-dev, control-center-dev (>= 1.4.0.5-6), gconf-dev, glibwww, gnome-core-dev (>= 1.4.1-4), gnome-libs-dev, gnome-print-dev, gtkhtml1.1-dev (>= 1.1.7-12), oaf-dev, expat, guile16-dev (>= 1.6.7-1010), libole2, libwww, gnome-vfs-dev (>= 1.0.5-5) | gnome-vfs-ssl-dev (>= 1.0.5-7), libtool14, libofx1 (>= 0.7.0-1002), doxygen, popt, imlib (>= 1.9.14-2), esound, opensp4-dev (>= 1.5.1-1002), libghttp, libglade, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, texinfo, fink (>= 0.20.1-1), pkgconfig, db44-aes | db44, gtk+ (>= 1.2.10-50), audiofile, libxml, graphviz
Suggests: gnucash-docs (>= 1.8.0)
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 81e7c703db56bb203e106664157779cc
PatchScript: <<
perl -pi.bak -e "s#need_relink=yes#need_relink=no#" ltmain.sh
<<
Patch: %n.patch
NoSetLDFlags: true
NoSetCPPFlags: true
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --enable-prefer-db1=no --disable-static --enable-ofx --enable-error-on-warning=no --libexecdir=%p/lib --enable-doxygen
CompileScript: <<
#!/bin/sh -ex
export LTDL_LIBRARY_PATH=%p/lib
#export DYLD_LIBRARY_PATH=%p/lib
export LIBRARY_PATH=%p/lib
export CPATH=%p/include
guile16-build ./configure %c
mv libtool libtool.old
sed -e 's/^hardcode_direct.*/hardcode_direct=no/' -e 's/^hardcode_libdir_flag_spec.*/hardcode_libdir_flag_spec=\"\ \"/' < libtool.old > libtool
chmod +x libtool
echo "all:" > intl/Makefile
echo "install:" >> intl/Makefile
echo "#define HAVE_GETTEXT 1" >> config.h
rm -f src/doc/design/gnucash-design.info
guile16-build make LIBINTL="" LTLIBINTL="" USE_INCLUDED_LIBINTL="no" INTLLIBS="-lintl"
cp -p src/backend/postgres/README README.postgres
<<
InstallScript: <<
#! /bin/sh -ev
export LTDL_LIBRARY_PATH=%p/lib
#export DYLD_LIBRARY_PATH=%p/lib
export LIBRARY_PATH=%p/lib
export CPATH=%p/include
guile16-build make DESTDIR=%d install
cd %i/share/info; gzip -v9 *info*
rm -f %i/lib/charset.alias %i/share/locale/locale.alias
perl -pi.bak -e 's|guile-1\.6|%p/bin/guile-1.6|' %i/lib/gnucash/overrides/guile
<<
DocFiles: COPYING
Description: Personal finance tracking program
DescDetail: <<
Gnucash can track finances in multiple accounts, keeping running
and reconciled balances. It has an X based graphical user interface,
double entry, a hierarchy of accounts, expense accounts (categories),
and can import Quicken QIF files.
<<
DescPort: <<
Although my patches were all committed upstream, there are some libtool
issues, and there remain some nls issues. The gnucash-docs pages only
appear in english, even though an almost complete German translation
is available. The problem is due to the fact that setlocale remains
badly broken on jaguar. The included gettext is too new, and fails to
detect fink's gettext install, this is forced in the build.
<<
#Splitoff: <<
# Package: %N-hbci
# DocFiles: COPYING doc/README.HBCI
# Description: Home Banking (Germany) modules for gnucash
# Depends: openhbci-shlibs (>= 0.9.13-1012), %N (= %v-%r)
# Files: <<
# lib/gnucash/libgncmod-hbci*
# share/gnucash/scm/hbci/hbci.scm
# <<
#<<
Splitoff2: <<
Package: %N-ofx
DocFiles: COPYING doc/README.OFX
Description: OFX import module for gnucash
Depends: libofx1-shlibs (>= 0.7.0-1002), %N (= %v-%r)
Files: <<
lib/gnucash/libgncmod-ofx*
share/gnucash/scm/ofx/ofx-import.scm
<<
<<
Splitoff3: <<
Package: %N-dev
BuildDependsOnly: true
DocFiles: COPYING
Depends: %N (= %v-%r)
Description: Development headers and docs for gnucash
Files: <<
include/gnucash
share/aclocal/gnucash.m4
share/gnucash/doc/html/html
share/gnucash/doc/guile-hackers.txt
share/gnucash/doc/HACKING
bin/gnucash-config
share/info/gnucash-design.info.gz
<<
InfoDocs: %p/share/info/gnucash-design.info
<<
#Splitoff4: <<
# Package: %N-sql
# DocFiles: COPYING README.postgres
# Description: postgresql backend for gnucash
# Depends: postgresql-shlibs (>= 7.3.2-5) | postgresql-ssl-shlibs (>= 7.3.2-5) | postgresql73-shlibs (>= 7.3.2-5) | postgresql73-ssl-shlibs (>= 7.3.2-5), %N (= %v-%r)
# Files: <<
# lib/gnucash/libgncmod-backend-postgres*
# <<
#<<
License: GPL
Maintainer: None
Homepage: http://www.gnucash.org
diff -u -d -b -w -u -r1.7 ltmain.sh
--- foo/ltmain.sh 29 Aug 2002 04:12:30 -0000 1.7
+++ foo/ltmain.sh 13 May 2003 12:33:35 -0000
@@ -2370,7 +2370,11 @@
;;
esac
if grep "^installed=no" $deplib > /dev/null; then
- path="-L$absdir/$objdir"
+ if test -d "$absdir/$objdir"; then
+ path="$absdir/$objdir"
+ else
+ path="$absdir"
+ fi
else
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
if test -z "$libdir"; then
@@ -2380,11 +2384,56 @@
if test "$absdir" != "$libdir"; then
$echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
fi
- path="-L$absdir"
+ path="$absdir"
+ fi
+ depdepl=
+ case $host in
+ *-*-darwin*)
+ # we do not want to link against static libs, but need to link against shared
+ eval deplibrary_names=`sed -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$path/$depdepl" ; then
+ depdepl="$path/$depdepl"
+ fi
+
+ case " $newlib_search_path " in
+ *" $path "*) ;;
+ *) newlib_search_path="$newlib_search_path $path" ;;
+ esac
+ path=""
fi
;;
+ *)
+ path="-L$path"
+ ;;
+ esac
+
+ ;;
+ -l*)
+ case $host in
+ *-*-darwin*)
+ # Again, we only want to link against shared libraries
+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
+ for tmp in $newlib_search_path ; do
+ if test -f "$tmp/lib$tmp_libs.dylib" ; then
+ eval depdepl="$tmp/lib$tmp_libs.dylib"
+ break
+ fi
+ done
+ path=""
+ ;;
*) continue ;;
esac
+ ;;
+ *) continue ;;
+ esac
+ case " $deplibs " in
+ *" $depdepl "*) ;;
+ *) deplibs="$deplibs $depdepl" ;;
+ esac
case " $deplibs " in
*" $path "*) ;;
*) deplibs="$deplibs $path" ;;
--- gnucash-1.8.3/src/scm/main.scm.old Thu May 15 00:28:39 2003
+++ gnucash-1.8.3/src/scm/main.scm Thu May 15 00:48:28 2003
@@ -316,8 +316,8 @@
(define (locale-prefixes)
;; Mac OS X. 10.1 and earlier don't have LC_MESSAGES. Fall back to
;; LC_ALL for those systems.
- (let* ((locale (or (false-if-exception (setlocale LC_MESSAGES))
- (setlocale LC_ALL)))
+ (let* ((locale (or (false-if-exception (getenv "LANG"))
+ (getenv "LANG")))
(strings (cond ((not (string? locale)) '())
((equal? locale "C") '())
((<= (string-length locale) 4) (list locale))
Package: gnucash
Version: 1.8.12
Revision: 12
Depends: audiofile-shlibs, bonobo-shlibs, esound-shlibs, g-wrap-shlibs (>= 1.3.4-3), g-wrap (>= 1.3.4-3), gal21-shlibs (>= 0.22-1014), gconf-shlibs, gdk-pixbuf-shlibs, glib-shlibs, gnome-libs-shlibs, gnome-print-shlibs, gtk+-shlibs (>= 1.2.10-50), gtkhtml1.1-shlibs, guile16-shlibs (>= 1.6.7-1010), guppi16-shlibs, imlib-shlibs, libghttp-shlibs, libglade-shlibs, libtool14-shlibs (>= 1.4.3-3), libxml-shlibs, oaf-shlibs, orbit-shlibs, popt-shlibs , slib, finance-quote-pm586, date-manip-pm, finance-quotehist-pm586, guile16 (>= 1.6.7-1010), gconf, libgettext3-shlibs
BuildDepends: guppi16-dev (>= 0.40.3-2), g-wrap-dev (>= 1.3.4-3), gal21 (>= 0.22-1014), gdk-pixbuf, glib, orbit-dev, libjpeg, libpng3, libtiff, netpbm, giflib, gdbm3, bonobo-dev, control-center-dev (>= 1.4.0.5-6), gconf-dev, glibwww, gnome-core-dev (>= 1.4.1-4), gnome-libs-dev, gnome-print-dev, gtkhtml1.1-dev (>= 1.1.7-12), oaf-dev, expat, guile16-dev (>= 1.6.7-1010), libole2, libwww, gnome-vfs-dev (>= 1.0.5-5) | gnome-vfs-ssl-dev (>= 1.0.5-7), libtool14, libofx1 (>= 0.7.0-1002), doxygen, popt, imlib (>= 1.9.14-2), esound, opensp4-dev (>= 1.5.1-1002), libghttp, libglade, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, texinfo, pkgconfig, db44-aes | db44, gtk+ (>= 1.2.10-50), audiofile, libxml, graphviz, fink (>= 0.24.12-1), intltool
Suggests: gnucash-docs (>= 1.8.0)
Architecture: powerpc
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 81e7c703db56bb203e106664157779cc
PatchScript: <<
%{default_script}
perl -pi.bak -e "s#need_relink=yes#need_relink=no#" ltmain.sh
<<
PatchFile: %n.patch
PatchFile-MD5: 4eabea63094158716ea487321fa70c7e
NoSetLDFlags: true
NoSetCPPFlags: true
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --enable-prefer-db1=no --disable-static --enable-ofx --enable-error-on-warning=no --libexecdir=%p/lib --enable-doxygen
CompileScript: <<
#!/bin/sh -ex
export LTDL_LIBRARY_PATH=%p/lib
#export DYLD_LIBRARY_PATH=%p/lib
export LIBRARY_PATH=%p/lib
export CPATH=%p/include
guile16-build ./configure %c
mv libtool libtool.old
sed -e 's/^hardcode_direct.*/hardcode_direct=no/' -e 's/^hardcode_libdir_flag_spec.*/hardcode_libdir_flag_spec=\"\ \"/' < libtool.old > libtool
chmod +x libtool
echo "all:" > intl/Makefile
echo "install:" >> intl/Makefile
echo "#define HAVE_GETTEXT 1" >> config.h
rm -f src/doc/design/gnucash-design.info
guile16-build make LIBINTL="" LTLIBINTL="" USE_INCLUDED_LIBINTL="no" INTLLIBS="-lintl"
cp -p src/backend/postgres/README README.postgres
<<
InstallScript: <<
#! /bin/sh -ev
export LTDL_LIBRARY_PATH=%p/lib
#export DYLD_LIBRARY_PATH=%p/lib
export LIBRARY_PATH=%p/lib
export CPATH=%p/include
guile16-build make DESTDIR=%d install
cd %i/share/info; gzip -v9 *info*
rm -f %i/lib/charset.alias %i/share/locale/locale.alias
perl -pi.bak -e 's|guile-1\.6|%p/bin/guile-1.6|' %i/lib/gnucash/overrides/guile
<<
DocFiles: COPYING
Description: Personal finance tracking program
DescDetail: <<
Gnucash can track finances in multiple accounts, keeping running
and reconciled balances. It has an X based graphical user interface,
double entry, a hierarchy of accounts, expense accounts (categories),
and can import Quicken QIF files.
<<
DescPort: <<
Although my patches were all committed upstream, there are some libtool
issues, and there remain some nls issues. The gnucash-docs pages only
appear in english, even though an almost complete German translation
is available. The problem is due to the fact that setlocale remains
badly broken on jaguar. The included gettext is too new, and fails to
detect fink's gettext install, this is forced in the build.
<<
#Splitoff: <<
# Package: %N-hbci
# DocFiles: COPYING doc/README.HBCI
# Description: Home Banking (Germany) modules for gnucash
# Depends: openhbci-shlibs (>= 0.9.13-1012), %N (= %v-%r)
# Files: <<
# lib/gnucash/libgncmod-hbci*
# share/gnucash/scm/hbci/hbci.scm
# <<
#<<
Splitoff2: <<
Package: %N-ofx
DocFiles: COPYING doc/README.OFX
Description: OFX import module for gnucash
Depends: libofx1-shlibs (>= 0.7.0-1002), %N (= %v-%r)
Files: <<
lib/gnucash/libgncmod-ofx*
share/gnucash/scm/ofx/ofx-import.scm
<<
<<
Splitoff3: <<
Package: %N-dev
BuildDependsOnly: true
DocFiles: COPYING
Depends: %N (= %v-%r)
Description: Development headers and docs for gnucash
Files: <<
include/gnucash
share/aclocal/gnucash.m4
share/gnucash/doc/html/html
share/gnucash/doc/guile-hackers.txt
share/gnucash/doc/HACKING
bin/gnucash-config
share/info/gnucash-design.info.gz
<<
InfoDocs: %p/share/info/gnucash-design.info
<<
#Splitoff4: <<
# Package: %N-sql
# DocFiles: COPYING README.postgres
# Description: postgresql backend for gnucash
# Depends: postgresql-shlibs (>= 7.3.2-5) | postgresql-ssl-shlibs (>= 7.3.2-5) | postgresql73-shlibs (>= 7.3.2-5) | postgresql73-ssl-shlibs (>= 7.3.2-5), %N (= %v-%r)
# Files: <<
# lib/gnucash/libgncmod-backend-postgres*
# <<
#<<
License: GPL
Maintainer: None
Homepage: http://www.gnucash.org
diff -u -d -b -w -u -r1.7 ltmain.sh
--- foo/ltmain.sh 29 Aug 2002 04:12:30 -0000 1.7
+++ foo/ltmain.sh 13 May 2003 12:33:35 -0000
@@ -2370,7 +2370,11 @@
;;
esac
if grep "^installed=no" $deplib > /dev/null; then
- path="-L$absdir/$objdir"
+ if test -d "$absdir/$objdir"; then
+ path="$absdir/$objdir"
+ else
+ path="$absdir"
+ fi
else
eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
if test -z "$libdir"; then
@@ -2380,11 +2384,56 @@
if test "$absdir" != "$libdir"; then
$echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
fi
- path="-L$absdir"
+ path="$absdir"
+ fi
+ depdepl=
+ case $host in
+ *-*-darwin*)
+ # we do not want to link against static libs, but need to link against shared
+ eval deplibrary_names=`sed -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$path/$depdepl" ; then
+ depdepl="$path/$depdepl"
+ fi
+
+ case " $newlib_search_path " in
+ *" $path "*) ;;
+ *) newlib_search_path="$newlib_search_path $path" ;;
+ esac
+ path=""
fi
;;
+ *)
+ path="-L$path"
+ ;;
+ esac
+
+ ;;
+ -l*)
+ case $host in
+ *-*-darwin*)
+ # Again, we only want to link against shared libraries
+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
+ for tmp in $newlib_search_path ; do
+ if test -f "$tmp/lib$tmp_libs.dylib" ; then
+ eval depdepl="$tmp/lib$tmp_libs.dylib"
+ break
+ fi
+ done
+ path=""
+ ;;
*) continue ;;
esac
+ ;;
+ *) continue ;;
+ esac
+ case " $deplibs " in
+ *" $depdepl "*) ;;
+ *) deplibs="$deplibs $depdepl" ;;
+ esac
case " $deplibs " in
*" $path "*) ;;
*) deplibs="$deplibs $path" ;;
--- gnucash-1.8.3/src/scm/main.scm.old Thu May 15 00:28:39 2003
+++ gnucash-1.8.3/src/scm/main.scm Thu May 15 00:48:28 2003
@@ -316,8 +316,8 @@
(define (locale-prefixes)
;; Mac OS X. 10.1 and earlier don't have LC_MESSAGES. Fall back to
;; LC_ALL for those systems.
- (let* ((locale (or (false-if-exception (setlocale LC_MESSAGES))
- (setlocale LC_ALL)))
+ (let* ((locale (or (false-if-exception (getenv "LANG"))
+ (getenv "LANG")))
(strings (cond ((not (string? locale)) '())
((equal? locale "C") '())
((<= (string-length locale) 4) (list locale))