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

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

gnucash, gnucash-devel: mark as conflicting.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
RevLine 
[39077]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
[20302]2# $Id: Portfile 127375 2014-10-26 15:41:21Z devans@macports.org $
[19132]3
4PortSystem        1.0
[35110]5
[19132]6name              gnucash
[127375]7conflicts         gnucash-devel
[118834]8version           2.6.3
[19132]9categories        gnome x11
[80624]10license           GPL-2+
[74830]11maintainers       dports openmaintainer
[39077]12platforms         darwin
13
[19132]14description       a personal and small-business financial-accounting software
15long_description  GnuCash is a personal and small-business \
[39077]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.
[35197]23
[19132]24homepage          http://www.gnucash.org/
[27059]25master_sites      sourceforge \
[39077]26                  http://www.gnucash.org/pub/gnucash/sources/stable/
[36746]27
[74828]28use_bzip2         yes
[44456]29
[118834]30checksums         rmd160  f9426aa5b31e731bc4d7a0837387b3a8d364c0a6 \
31                  sha256  02104c1d6a563d1209e2116dcca7fa9e28445b0e3335bedbcae85c834b17d93f
[89699]32
[80328]33post-patch {
34    # gnc-fq-dump needs to be patched to use MacPorts perl.
35    # (autoconf takes care of the other perl scripts.)
[116990]36    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
[80328]37}
38
[71807]39depends_build     port:pkgconfig \
40                  port:intltool \
41                  port:libtool
42
[116990]43depends_lib       port:guile \
[40374]44                  port:libgnomeui \
[114235]45                  path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
[108289]46                  port:goffice08 \
[120699]47                  port:p5.16-finance-quote
[35197]48
[120699]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
[108199]55
[120699]56if {![variant_isset quartz]} {
57    depends_run port:yelp
58}
59
[114237]60platform darwin {
[121269]61    if {${configure.cxx_stdlib} eq "libstdc++"} {
[114237]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
[120699]67# aqbanking is not universal
[61993]68universal_variant no
69
[39077]70configure.args    --disable-glibtest \
[74828]71                  --disable-dependency-tracking \
[94888]72                  --disable-aqbanking \
73                  --disable-ofx \
[74828]74                  --disable-dbi \
75                  --with-html-engine=webkit
[116990]76configure.perl    ${prefix}/bin/perl5.16
[19132]77
[120699]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.
[28132]81
[120699]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
[94888]88variant hbci description {AqBanking/HBCI support} {
[121044]89    depends_lib-append  path:lib/libaqbanking.dylib:aqbanking5-gtk
[94888]90    configure.args-delete   --disable-aqbanking
91    configure.args-append   --enable-aqbanking
[19132]92}
93
[94888]94variant ofx description {OFX support} {
95    depends_lib-append  port:libofx
96    configure.args-delete   --disable-ofx
97    configure.args-append   --enable-ofx
[19132]98}
[35244]99
[77346]100variant dbi description {Adds dbi backend support} {
101    depends_lib-append  port:libdbi \
[120699]102                        port:libdbi-drivers
103    configure.args-delete --disable-dbi
[77346]104    configure.args-append --enable-dbi
[120704]105    configure.args-append --with-dbi-dbd-dir=${prefix}/lib/dbd
[77346]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."
[94892]107}
[77346]108
[116990]109default_variants +ofx +hbci
[95009]110
[118835]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# }
[35244]117
118post-activate {
[72322]119    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
[116990]120    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
[19132]121}
[48689]122
[74135]123livecheck.regex "/${name} .*/(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)/"
Note: See TracBrowser for help on using the repository browser.