# $Id: Portfile 38077 2008-07-05 21:37:56Z ryandesign@macports.org $ PortSystem 1.0 name gnucash version 2.2.5 categories gnome x11 maintainers nomaintainer platforms darwin description a personal and small-business financial-accounting software long_description GnuCash is a personal and small-business \ financial-accounting software, freely licensed under the \ GNU GPL. Designed to be easy to use, yet powerful and \ flexible, GnuCash allows you to track bank accounts, \ stocks, income and expenses. As quick and intuitive to \ use as a checkbook register, it is based on professional \ accounting principles to ensure balanced books and \ accurate reports. homepage http://www.gnucash.org/ master_sites sourceforge \ http://www.gnucash.org/pub/gnucash/sources/stable/ use_bzip2 yes checksums md5 81d8d115e27db96ab2b47727010ccdc4 \ sha1 32acf9c980000fd851b543ac541a786ac36cf721 depends_lib lib:XML/Parser.pm:p5-xml-parser \ path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \ port:gconf \ port:guile16 \ port:slib \ port:slib-guile16 \ lib:libpopt:popt \ lib:libgnomeui:libgnomeui \ lib:libgnomeprintui:libgnomeprintui \ lib:libgtkhtml-3:libgtkhtml3 \ lib:libgsf:libgsf \ lib:libgoffice-0.6:goffice \ lib:aqbanking:aqbanking \ lib:libofx:libofx \ lib:Finance/Quote.pm:p5-finance-quote depends_build bin:glibtoolize:libtool depends_run port:evince configure.args --disable-glibtest \ --disable-dependency-tracking --enable-hbci --enable-ofx patchfiles patch-configure.diff patch-lib_libc_libc-missing-noop.c.diff post-patch { reinplace "/^DYLD_LIBRARY_PATH/s|=\"|=\"/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources@-PATH_SEPARATOR-@|" ${worksrcpath}/src/bin/gnucash.in reinplace "/^DYLD_LIBRARY_PATH/s|=\"|=\"/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources@-PATH_SEPARATOR-@|" ${worksrcpath}/src/bin/overrides/gnucash-env.in fs-traverse src_file ${worksrcpath}/src { if { [ file isfile ${src_file} ] } { reinplace "s|\\ 0 } { file mkdir ${destroot}${storagedir} set fh [open ${destroot}${storagefile} w] foreach file $schemafiles { puts $fh [exec basename $file] } close $fh } } post-activate { if { [file exists ${storagefile} ] } { set fh [open ${storagefile} r] while { ! [eof $fh] } { lappend schemafiles [gets $fh] } close $fh } set schemastring [join $schemafiles " "] system "cd ${prefix}/etc/gconf/schemas && \ GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemastring" }