source: trunk/dports/gnome/gnucash/Portfile @ 129619

Last change on this file since 129619 was 129619, checked in by dports@…, 5 years ago

gnucash: update to v2.6.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# -*- 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
2# $Id: Portfile 129619 2014-12-17 02:38:42Z dports@macports.org $
3
4PortSystem        1.0
5
6name              gnucash
7version           2.6.4
8conflicts         gnucash-devel
9categories        gnome x11
10license           GPL-2+
11maintainers       dports openmaintainer
12platforms         darwin
13
14description       a personal and small-business financial-accounting software
15long_description  GnuCash is a personal and small-business \
16                  financial-accounting software, freely licensed under the \
17                  GNU GPL.  Designed to be easy to use, yet powerful and \
18                  flexible, GnuCash allows you to track bank accounts, \
19                  stocks, income and expenses. As quick and intuitive to \
20                  use as a checkbook register, it is based on professional \
21                  accounting principles to ensure balanced books and \
22                  accurate reports.
23
24homepage          http://www.gnucash.org/
25master_sites      sourceforge \
26                  http://www.gnucash.org/pub/gnucash/sources/stable/
27
28use_bzip2         yes
29
30checksums         rmd160  ff11fe50416e971cd77ebca109553e21b5d0d642 \
31                  sha256  0320e4c62a741795648929fd211aca7e816d22b48bc7c54226c99b02c56e34bc
32
33post-patch {
34    # gnc-fq-dump needs to be patched to use MacPorts perl.
35    # (autoconf takes care of the other perl scripts.)
36    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
37}
38
39depends_build     port:pkgconfig \
40                  port:intltool \
41                  port:libtool
42
43depends_lib       port:guile \
44                  port:libgnomeui \
45                  path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
46                  port:goffice08 \
47                  port:p5.16-finance-quote
48
49# yelp currently requires X11 to build so disable dependency if building
50# with +quartz
51#
52# TODO: add +x11 +quartz variants to distinguish one build from the other
53# since they have different binary dependencies.  Otherwise, rev-upgrade
54# errors may occur
55
56if {![variant_isset quartz]} {
57    depends_run port:yelp
58}
59
60platform darwin {
61    if {${configure.cxx_stdlib} eq "libstdc++"} {
62       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
63       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
64    }
65}
66
67# aqbanking is not universal
68universal_variant no
69
70configure.args    --disable-glibtest \
71                  --disable-dependency-tracking \
72                  --disable-aqbanking \
73                  --disable-ofx \
74                  --disable-dbi \
75                  --with-html-engine=webkit
76configure.perl    ${prefix}/bin/perl5.16
77
78# this variant is obsolete as the current version of gnucash no longer
79# supports libgtkhtml3, only webkit-gtk. It didn't work anyway due to the
80# webkit-gtk dependency manipulations above.
81
82# variant gtkhtml description {Use gtkhtml instead of webkit-gtk for html rendering} {
83#    configure.args-delete --with-html-engine=webkit
84#    depends_lib-delete    path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
85#    depends_lib-append    port:libgtkhtml3
86# }
87
88variant hbci description {AqBanking/HBCI support} {
89    depends_lib-append  path:lib/libaqbanking.dylib:aqbanking5-gtk
90    configure.args-delete   --disable-aqbanking
91    configure.args-append   --enable-aqbanking
92}
93
94variant ofx description {OFX support} {
95    depends_lib-append  port:libofx
96    configure.args-delete   --disable-ofx
97    configure.args-append   --enable-ofx
98}
99
100variant dbi description {Adds dbi backend support} {
101    depends_lib-append  port:libdbi \
102                        port:libdbi-drivers
103    configure.args-delete --disable-dbi
104    configure.args-append --enable-dbi
105    configure.args-append --with-dbi-dbd-dir=${prefix}/lib/dbd
106    notes-append "gnucash DBI backend support requires the libdbi-drivers port to be built with support for the desired databases. sqlite3 is available by default; for MySQL or PostgreSQL support, ensure that the corresponding variant is selected for libdbi-drivers."
107}
108
109default_variants +ofx +hbci
110
111# variant python27 description {Install Python bindings for Python 2.7} {
112#     #patchfiles-append patch-configure-python.diff
113#     depends_lib-append port:python27
114#     configure.args-append --enable-python
115#     configure.python ${prefix}/bin/python2.7
116# }
117
118post-activate {
119    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
120    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
121}
122
123livecheck.regex "/${name} .*/(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)/"
Note: See TracBrowser for help on using the repository browser.