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

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

gnucash, gnucash-devel: mark as conflicting.

File size: 4.7 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 127375 2014-10-26 15:41:21Z devans@macports.org $
3
4PortSystem        1.0
5
6name              gnucash-devel
7conflicts         gnucash
8set my_name       gnucash
9version           2.6.3
10categories        gnome x11
11license           GPL-2+
12maintainers       dports openmaintainer
13platforms         darwin
14
15set branch        [join [lrange [split ${version} .] 0 1] .]
16
17description       a personal and small-business financial-accounting software
18
19long_description  GnuCash is a personal and small-business \
20                  financial-accounting software. -- gnucash-devel \
21                  installs a version from the development (unstable) \
22                  branch.  It cannot be installed along the regular \
23                  (stable) version.  If you want to try it, it is \
24                  recommended that you `port deactivate gnucash', then \
25                  `port install gnucash-devel', so that you can go \
26                  back to a working copy in case anything goes wrong.
27homepage          http://www.gnucash.org/
28master_sites      sourceforge:${my_name} \
29                  http://www.gnucash.org/pub/gnucash/sources/unstable/${branch}.x/
30
31dist_subdir       ${my_name}
32distname          ${my_name}-${version}
33use_bzip2         yes
34
35checksums         rmd160  f9426aa5b31e731bc4d7a0837387b3a8d364c0a6 \
36                  sha256  02104c1d6a563d1209e2116dcca7fa9e28445b0e3335bedbcae85c834b17d93f
37
38post-patch {
39    # gnc-fq-dump needs to be patched to use MacPorts perl.
40    # (autoconf takes care of the other perl scripts.)
41    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
42}
43
44depends_build     port:pkgconfig \
45                  port:intltool \
46                  port:libtool
47
48depends_lib       port:guile \
49                  port:libgnomeui \
50                  path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
51                  port:goffice08 \
52                  port:p5.16-finance-quote
53
54# yelp currently requires X11 to build so disable dependency if building
55# with +quartz
56#
57# TODO: add +x11 +quartz variants to distinguish one build from the other
58# since they have different binary dependencies.  Otherwise, rev-upgrade
59# errors may occur
60
61if {![variant_isset quartz]} {
62    depends_run port:yelp
63}
64
65platform darwin {
66    if {${configure.cxx_stdlib} eq "libstdc++"} {
67       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
68       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
69    }
70}
71
72# aqbanking is not universal
73universal_variant no
74
75configure.args    --disable-glibtest \
76                  --disable-dependency-tracking \
77                  --disable-aqbanking \
78                  --disable-ofx \
79                  --disable-dbi \
80                  --with-html-engine=webkit
81configure.perl    ${prefix}/bin/perl5.16
82
83# this variant is obsolete as the current version of gnucash no longer
84# supports libgtkhtml3, only webkit-gtk. It didn't work anyway due to the
85# webkit-gtk dependency manipulations above.
86
87# variant gtkhtml description {Use gtkhtml instead of webkit-gtk for html rendering} {
88#    configure.args-delete --with-html-engine=webkit
89#    depends_lib-delete    path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
90#    depends_lib-append    port:libgtkhtml3
91# }
92
93variant hbci description {AqBanking/HBCI support} {
94    depends_lib-append  path:lib/libaqbanking.dylib:aqbanking5-gtk
95    configure.args-delete   --disable-aqbanking
96    configure.args-append   --enable-aqbanking
97}
98
99variant ofx description {OFX support} {
100    depends_lib-append  port:libofx
101    configure.args-delete   --disable-ofx
102    configure.args-append   --enable-ofx
103}
104
105variant dbi description {Adds dbi backend support} {
106    depends_lib-append  port:libdbi \
107                        port:libdbi-drivers
108    configure.args-delete --disable-dbi
109    configure.args-append --enable-dbi
110    configure.args-append --with-dbi-dbd-dir=${prefix}/lib/dbd
111    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."
112}
113
114default_variants +ofx +hbci
115
116# variant python27 description {Install Python bindings for Python 2.7} {
117#     #patchfiles-append patch-configure-python.diff
118#     depends_lib-append port:python27
119#     configure.args-append --enable-python
120#     configure.python ${prefix}/bin/python2.7
121# }
122
123post-activate {
124    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
125    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
126}
127
128livecheck.regex "/${my_name} .*/(\[0-9\]+\\.\[0-9\]*\[0-9\]\\.\[0-9\]+)/"
Note: See TracBrowser for help on using the repository browser.