# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup perl5 1.0 name gnucash version 2.6.14 revision 2 perl5.branches 5.24 conflicts gnucash-devel categories gnome x11 license GPL-2+ maintainers dports openmaintainer 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 rmd160 3e7eb1da511efe7b1a91224d1ca2a53b3fd42052 \ sha256 3b144f2ca5025df5eb1977b11e6f93208f3e90d840285ae952fa9b3da8158e75 # We'll install gnucash's libraries in a separate subdir of # ${prefix}/lib, because gnucash sets DYLD_LIBRARY_PATH at runtime in # order to dynamically load these directories, and including all # MacPorts libraries in DYLD_LIBRARY_PATH can cause problems. # guile18 modules are also installed in a separate subdirectory. # See https://trac.macports.org/ticket/52494. set gnclibdir ${prefix}/lib/gnucash patchfiles patch-configure.ac.diff \ patch-src_bin_environment.in.diff \ patch-src_core-utils_gnc-path.c.diff post-patch { reinplace "s|@@GUILEPATH@@|${prefix}/lib/guile18|" ${worksrcpath}/src/bin/environment.in reinplace "s|@@LIBDIR@@|${gnclibdir}|" ${worksrcpath}/src/bin/environment.in reinplace "s|@@LIBDIR@@|${gnclibdir}|" ${worksrcpath}/src/core-utils/gnc-path.c # gnc-fq-dump needs to be patched to use MacPorts perl. # (autoconf takes care of the other perl scripts.) reinplace "s|^#!/usr/bin/perl|#!${perl5.bin}|" ${worksrcpath}/src/quotes/gnc-fq-dump # patch source files to include guile18 header instead of guile. # (Note that gnucash's autoconf scripts prefer guile18 over guile # if both are installed.) fs-traverse f ${worksrcpath} { if [regexp {\.[ch]$} ${f}] { reinplace -locale C "s|||g" ${f} reinplace -locale C "s|