Ignore:
Timestamp:
Aug 7, 2014, 2:08:21 AM (6 years ago)
Author:
dports@…
Message:

gnucash-devel: resync with gnucash port (version 2.6.3)

[merge r116990,118521,118834,118835,120699,120704,121044]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/gnucash-devel/Portfile

    r121269 r123211  
    66name              gnucash-devel
    77set my_name       gnucash
    8 version           2.5.5
    9 revision          1
     8version           2.6.3
    109categories        gnome x11
    1110license           GPL-2+
     
    3332use_bzip2         yes
    3433
    35 checksums         rmd160  cec3cff09e95c51a8cc6fba0ead091fd447e70fb \
    36                   sha256  f877e510ff019c36bbbc3eac17b97178feadf7fd9f564d220de7c2f617c42ab9
    37 
    38 # patch configure to not set PLATFORM_OSX_QUARTZ even if we are
    39 # running gtk +quartz because we want gnucash to set up its
    40 # environment the same way it does for regular builds, rather than
    41 # using the gnucash-setup-environment script for OS X. We don't need
    42 # to use dbus-launch or muck with DYLD_LIBRARY_PATH.
    43 patchfiles        patch-configure.diff
     34checksums         rmd160  f9426aa5b31e731bc4d7a0837387b3a8d364c0a6 \
     35                  sha256  02104c1d6a563d1209e2116dcca7fa9e28445b0e3335bedbcae85c834b17d93f
    4436
    4537post-patch {
    4638    # gnc-fq-dump needs to be patched to use MacPorts perl.
    4739    # (autoconf takes care of the other perl scripts.)
    48     reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.12|" ${worksrcpath}/src/quotes/gnc-fq-dump
     40    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
    4941}
    5042
     
    5345                  port:libtool
    5446
    55 depends_lib       port:gconf \
    56                   port:slib-guile \
     47depends_lib       port:guile \
    5748                  port:libgnomeui \
    58                   port:libgnomeprintui \
    5949                  path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
    6050                  port:goffice08 \
    61                   port:icu \
    62                   port:p5.12-finance-quote   
     51                  port:p5.16-finance-quote
     52
     53# yelp currently requires X11 to build so disable dependency if building
     54# with +quartz
     55#
     56# TODO: add +x11 +quartz variants to distinguish one build from the other
     57# since they have different binary dependencies.  Otherwise, rev-upgrade
     58# errors may occur
     59
     60if {![variant_isset quartz]} {
     61    depends_run port:yelp
     62}
    6363
    6464platform darwin {
     
    6969}
    7070
    71 # aqbanking and libgtkhtml3 are not universal
     71# aqbanking is not universal
    7272universal_variant no
    7373
     
    7878                  --disable-dbi \
    7979                  --with-html-engine=webkit
    80 configure.perl    ${prefix}/bin/perl5.12
     80configure.perl    ${prefix}/bin/perl5.16
    8181
    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 }
     82# this variant is obsolete as the current version of gnucash no longer
     83# supports libgtkhtml3, only webkit-gtk. It didn't work anyway due to the
     84# webkit-gtk dependency manipulations above.
     85
     86# variant gtkhtml description {Use gtkhtml instead of webkit-gtk for html rendering} {
     87#    configure.args-delete --with-html-engine=webkit
     88#    depends_lib-delete    path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
     89#    depends_lib-append    port:libgtkhtml3
     90# }
    8791
    8892variant hbci description {AqBanking/HBCI support} {
    89     depends_lib-append  port:aqbanking5-gtk
     93    depends_lib-append  path:lib/libaqbanking.dylib:aqbanking5-gtk
    9094    configure.args-delete   --disable-aqbanking
    9195    configure.args-append   --enable-aqbanking
     
    98102}
    99103
    100 variant without_hbci conflicts hbci description {Legacy compatibility variant} {}
    101 variant without_ofx conflicts ofx description {Legacy compatibility variant} {}
    102 if {![variant_isset without_hbci]} {
    103     default_variants +hbci
    104 }
    105 if {![variant_isset without_ofx]} {
    106     default_variants +ofx
    107 }
    108 
    109104variant dbi description {Adds dbi backend support} {
    110105    depends_lib-append  port:libdbi \
    111                         port:libdbi-drivers 
    112     configure.args-delete --disable-dbi 
     106                        port:libdbi-drivers
     107    configure.args-delete --disable-dbi
    113108    configure.args-append --enable-dbi
     109    configure.args-append --with-dbi-dbd-dir=${prefix}/lib/dbd
    114110    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."
    115111}
    116112
    117 variant python27 description {Install Python bindings for Python 2.7} {
    118     patchfiles-append patch-configure-python.diff
    119     depends_lib-append port:python27
    120     configure.args-append --enable-python-bindings
    121     configure.python ${prefix}/bin/python2.7
    122 }
     113default_variants +ofx +hbci
    123114
    124 set gnucash_register_schema ${prefix}/libexec/${my_name}-gconf-schema.sh
    125 
    126 post-destroot {
    127     # We need to register some stuff to gconf. Just putting the
    128     # schema files to the right place is not enough.
    129     # Setup ${prefix}/libexec/${my_name}-gconf-schema.sh to handle this
    130 
    131     set schemafiles ""
    132     fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas {
    133         if {[file isfile $schema]} {
    134             # The 'string range' bit is to remove the initial ${destroot} stuff
    135             append schemafiles " [string range $schema [string length ${destroot}] end]"
    136         }
    137     }
    138 
    139     if {[string length $schemafiles] > 0} {
    140         set fh [open ${destroot}${gnucash_register_schema} w]
    141         puts $fh "#!/bin/sh"
    142         puts $fh "env GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemafiles"
    143         close $fh
    144         file attributes ${destroot}${gnucash_register_schema} -permissions 0755
    145     }
    146 }
     115# variant python27 description {Install Python bindings for Python 2.7} {
     116#     #patchfiles-append patch-configure-python.diff
     117#     depends_lib-append port:python27
     118#     configure.args-append --enable-python
     119#     configure.python ${prefix}/bin/python2.7
     120# }
    147121
    148122post-activate {
    149     if {[file exists ${gnucash_register_schema}]} {
    150         system "${gnucash_register_schema}"
    151     }
    152 
    153123    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
     124    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
    154125}
    155126
Note: See TracChangeset for help on using the changeset viewer.