source: trunk/dports/devel/gwenhywfar4/Portfile

Last change on this file was 154149, checked in by mk@…, 13 months ago

gwenhywfar4-devel: update to 4.16.0beta

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 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# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
3# $Id: Portfile 154149 2016-10-22 13:46:43Z ryandesign@macports.org $
4
5PortSystem        1.0
6
7name              gwenhywfar4
8revision          7
9# This port offers the latest stable version (also as a gtk subport)
10# as well as the latest beta version as gwenhywfar4-devel!
11
12categories        devel net finance
13maintainers       mk dports openmaintainer
14platforms         darwin
15license           {LGPL-2.1 OpenSSLException}
16
17description       a utility library required by aqbanking and related software
18long_description  ${description}
19
20homepage          http://www2.aquamaniac.de/sites/aqbanking/index.php
21
22conflicts         gwenhywfar gwenhywfar4 gwenhywfar4-devel gwenhywfar4-gtk gwenhywfar4-gtk-devel
23
24depends_lib       path:lib/libssl.dylib:openssl \
25                  port:libgcrypt \
26                  port:gettext \
27                  port:libxml2 \
28                  port:gnutls
29
30depends_build     port:libtool \
31                  port:pkgconfig
32
33configure.args    --enable-static
34
35conflicts-delete  $subport
36
37
38# Usually the port has a different version than the *-devel subports
39if {$subport eq $name || $subport eq "gwenhywfar4-gtk"} {
40    version                 4.14.0
41    # this is specific to this port and *version* for downloading it
42    set release             01
43
44    checksums               md5     b0662b7c1451b6e6fcad41a00c4db713 \
45                            sha1    9e00927c1b3a7d02408caf0e3540619d2e75c069 \
46                            rmd160  c092c53e4137b47d5595eb57be6cb9bbb186314d
47}
48
49subport gwenhywfar4-gtk {}
50subport gwenhywfar4-devel {}
51subport gwenhywfar4-gtk-devel {}
52
53patchfiles      patch-shlib-extensions.diff \
54                patch-src-sio-syncio_tls.c.diff
55
56if {[string match "*-devel" $subport]} {
57    version         4.16.0beta
58    # this is specific to this port and *version* for downloading it
59    set release     204
60
61    patchfiles      patch-gwenhywfar-config.cmake.in.diff \
62                    patch-gwengui-qt4-config.cmake.in.diff \
63                    patch-gwengui-cpp-config.cmake.in.diff
64
65    checksums       md5     ecdcf6add5d352e34b1ff3e620e7fb1e \
66                    sha1    d2a42a0ba49de03712c5cd08c704ca22c2ff5cb6 \
67                    rmd160  a7dd956f7744de8bd0649bf564c4f430f3b85474
68}
69
70if {$subport eq $name || $subport eq "gwenhywfar4-devel"} {
71    # the correct way to depend on Qt4:
72    PortGroup               qt4 1.0
73    configure.args-append   --with-qt4-libs=${qt_libs_dir} \
74                            --with-qt4-includes=${qt_includes_dir} \
75                            --with-qt4-moc=${qt_moc_cmd} \
76                            --with-qt4-uic=${qt_uic_cmd} \
77                            --with-guis="qt4 cpp cocoa"
78}
79
80master_sites      http://www2.aquamaniac.de/sites/download/download.php?package=01&release=${release}&file=01&dummy=
81distname          gwenhywfar-${version}
82
83if {[string match "gwenhywfar4-gtk*" $subport]} {
84    depends_lib-append      port:gtk2
85    configure.args-append   --with-guis="gtk2 cpp" --disable-qt4
86
87    # Allow gwenhywfar4-gtk and aqbanking5-gtk to replace the old
88    # gwenhywfar and aqbanking by deactivating them if installed. This
89    # allows gnucash to switch versions without conflicts.
90    #
91    # kmymoney still depends on gwenhywfar/aqbanking, so don't
92    # deactivate if it's installed.
93    conflicts-delete        gwenhywfar
94    pre-activate {
95        if {![catch {set vers [lindex [registry_active gwenhywfar] 0]}]} {
96            if {![catch {set vers [lindex [registry_active kmymoney] 0]}]} {
97                ui_error "${subport} conflicts with gwenhywfar and aqbanking. Please uninstall the ports that depend on them."
98                return -code error "conflict"
99            }
100            if {![catch {set vers [lindex [registry_active aqbanking] 0]}]} {
101                registry_deactivate_composite aqbanking "" [list ports_nodepcheck 1]
102            }
103            registry_deactivate_composite gwenhywfar "" [list ports_nodepcheck 1]
104        }
105    }
106}
107
108variant enable_local_install description "Enable local installation mode (plugins, data, locale and config are located relatively to the binary)" {
109    configure.args-append   --enable-local-install
110}
111
112variant debug description "Enable debug." {
113    configure.args-append --enable-debug
114}
115
116configure.args-append   --disable-dependency-tracking --disable-silent-rules
117
118livecheck.type    regex
119livecheck.url     http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1
120if {[string match "*-devel" $subport]} {
121    livecheck.regex   gwenhywfar-(\[0-9.\]*beta)\\.tar
122} else {
123    livecheck.regex   gwenhywfar-(\[0-9.\]*)\\.tar
124}
Note: See TracBrowser for help on using the repository browser.