# -*- 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-devel conflicts gnucash set my_name gnucash version 2.6.14 revision 2 perl5.branches 5.24 categories gnome x11 license GPL-2+ maintainers dports openmaintainer platforms darwin set branch [join [lrange [split ${version} .] 0 1] .] description a personal and small-business financial-accounting software long_description GnuCash is a personal and small-business \ financial-accounting software. -- gnucash-devel \ installs a version from the development (unstable) \ branch. It cannot be installed along the regular \ (stable) version. If you want to try it, it is \ recommended that you `port deactivate gnucash', then \ `port install gnucash-devel', so that you can go \ back to a working copy in case anything goes wrong. homepage http://www.gnucash.org/ master_sites sourceforge:${my_name} \ http://www.gnucash.org/pub/gnucash/sources/unstable/${branch}.x/ dist_subdir ${my_name} distname ${my_name}-${version} 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|