Changeset 116990


Ignore:
Timestamp:
Feb 12, 2014, 1:48:51 AM (6 years ago)
Author:
dports@…
Message:

gnucash: update to v2.6.1

  • replace gconf schema installation with gsettings equivalent
  • remove dependencies that are no longer used
  • switch to perl 5.16
  • remove +without_hbci and +without_ofx legacy compatibility variants

This fixes #42425 by eliminating the slib dependency.

Disable the +python27 variant for the moment. It needs to be updated
for gnucash 2.6, but more important to get the 2.6 upgrade committed
because of #42425.

File:
1 edited

Legend:

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

    r115525 r116990  
    55
    66name              gnucash
    7 version           2.4.14
     7version           2.6.1
    88categories        gnome x11
    99license           GPL-2+
     
    2727use_bzip2         yes
    2828
    29 checksums         rmd160  470785d1a09c3967e90f6b7c5e49389f625cd59e \
    30                   sha256  7906d6f931393042005ec8634d69be52368b4c01d51d43b872072f2c13ad2671
    31 
    32 # patch configure to not set PLATFORM_OSX_QUARTZ even if we are
    33 # running gtk +quartz because we want gnucash to set up its
    34 # environment the same way it does for regular builds, rather than
    35 # using the gnucash-setup-environment script for OS X. We don't need
    36 # to use dbus-launch or muck with DYLD_LIBRARY_PATH.
    37 patchfiles        patch-configure.diff
     29checksums         rmd160  e9c8e6bace9a41195d2fdfc323dcd089d5cc09f5 \
     30                  sha256  c9e66f84c7706e3c8e7a1c88dcd58c5c3d102e285012b51f5af25052502cd8a4
    3831
    3932post-patch {
    4033    # gnc-fq-dump needs to be patched to use MacPorts perl.
    4134    # (autoconf takes care of the other perl scripts.)
    42     reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.12|" ${worksrcpath}/src/quotes/gnc-fq-dump
     35    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
    4336}
    4437
     
    4740                  port:libtool
    4841
    49 depends_lib       port:gconf \
    50                   port:slib-guile \
     42depends_lib       port:guile \
    5143                  port:libgnomeui \
    52                   port:libgnomeprintui \
    5344                  path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
    5445                  port:goffice08 \
    55                   port:icu \
    56                   port:p5.12-finance-quote   
     46                  port:p5.16-finance-quote   
    5747
    5848depends_run       port:yelp
     
    8878                  --disable-dbi \
    8979                  --with-html-engine=webkit
    90 configure.perl    ${prefix}/bin/perl5.12
     80configure.perl    ${prefix}/bin/perl5.16
    9181
    9282variant gtkhtml description {Use gtkhtml instead of webkit-gtk for html rendering} {
     
    10898}
    10999
    110 variant without_hbci conflicts hbci description {Legacy compatibility variant} {}
    111 variant without_ofx conflicts ofx description {Legacy compatibility variant} {}
    112 if {![variant_isset without_hbci]} {
    113     default_variants +hbci
    114 }
    115 if {![variant_isset without_ofx]} {
    116     default_variants +ofx
    117 }
    118 
    119100variant dbi description {Adds dbi backend support} {
    120101    depends_lib-append  port:libdbi \
     
    125106}
    126107
    127 variant python27 description {Install Python bindings for Python 2.7} {
    128     patchfiles-append patch-configure-python.diff
    129     depends_lib-append port:python27
    130     configure.args-append --enable-python-bindings
    131     configure.python ${prefix}/bin/python2.7
    132 }
     108default_variants +ofx +hbci
    133109
    134 set gnucash_register_schema ${prefix}/libexec/${name}-gconf-schema.sh
    135 
    136 post-destroot {
    137     # We need to register some stuff to gconf. Just putting the
    138     # schema files to the right place is not enough.
    139     # Setup ${prefix}/libexec/${name}-gconf-schema.sh to handle this
    140 
    141     set schemafiles ""
    142     fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas {
    143         if {[file isfile $schema]} {
    144             # The 'string range' bit is to remove the initial ${destroot} stuff
    145             append schemafiles " [string range $schema [string length ${destroot}] end]"
    146         }
    147     }
    148 
    149     if {[string length $schemafiles] > 0} {
    150         set fh [open ${destroot}${gnucash_register_schema} w]
    151         puts $fh "#!/bin/sh"
    152         puts $fh "env GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemafiles"
    153         close $fh
    154         file attributes ${destroot}${gnucash_register_schema} -permissions 0755
    155     }
    156 }
     110# XXX This is currently broken; patch needs to be updated to fix
     111# configure's python ldflags detection.
     112#
     113# variant python27 description {Install Python bindings for Python 2.7} {
     114#     patchfiles-append patch-configure-python.diff
     115#     depends_lib-append port:python27
     116#     configure.args-append --enable-python
     117#     configure.python ${prefix}/bin/python2.7
     118# }
    157119
    158120post-activate {
    159     if {[file exists ${gnucash_register_schema}]} {
    160         system "${gnucash_register_schema}"
    161     }
    162 
    163121    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
     122    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
    164123}
    165124
Note: See TracChangeset for help on using the changeset viewer.