[116990] trunk/dports/gnome/gnucash/Portfile

dports at macports.org dports at macports.org
Tue Feb 11 17:48:52 PST 2014


Revision: 116990
          https://trac.macports.org/changeset/116990
Author:   dports at macports.org
Date:     2014-02-11 17:48:51 -0800 (Tue, 11 Feb 2014)
Log 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.

Modified Paths:
--------------
    trunk/dports/gnome/gnucash/Portfile

Modified: trunk/dports/gnome/gnucash/Portfile
===================================================================
--- trunk/dports/gnome/gnucash/Portfile	2014-02-12 01:31:19 UTC (rev 116989)
+++ trunk/dports/gnome/gnucash/Portfile	2014-02-12 01:48:51 UTC (rev 116990)
@@ -4,7 +4,7 @@
 PortSystem        1.0
 
 name              gnucash
-version           2.4.14
+version           2.6.1
 categories        gnome x11
 license           GPL-2+
 maintainers       dports openmaintainer
@@ -26,34 +26,24 @@
 
 use_bzip2         yes
 
-checksums         rmd160  470785d1a09c3967e90f6b7c5e49389f625cd59e \
-                  sha256  7906d6f931393042005ec8634d69be52368b4c01d51d43b872072f2c13ad2671
+checksums         rmd160  e9c8e6bace9a41195d2fdfc323dcd089d5cc09f5 \
+                  sha256  c9e66f84c7706e3c8e7a1c88dcd58c5c3d102e285012b51f5af25052502cd8a4
 
-# patch configure to not set PLATFORM_OSX_QUARTZ even if we are
-# running gtk +quartz because we want gnucash to set up its
-# environment the same way it does for regular builds, rather than
-# using the gnucash-setup-environment script for OS X. We don't need
-# to use dbus-launch or muck with DYLD_LIBRARY_PATH.
-patchfiles        patch-configure.diff
-
 post-patch {
     # gnc-fq-dump needs to be patched to use MacPorts perl.
     # (autoconf takes care of the other perl scripts.)
-    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.12|" ${worksrcpath}/src/quotes/gnc-fq-dump
+    reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" ${worksrcpath}/src/quotes/gnc-fq-dump
 }
 
 depends_build     port:pkgconfig \
                   port:intltool \
                   port:libtool
 
-depends_lib       port:gconf \
-                  port:slib-guile \
+depends_lib       port:guile \
                   port:libgnomeui \
-                  port:libgnomeprintui \
                   path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
                   port:goffice08 \
-                  port:icu \
-                  port:p5.12-finance-quote   
+                  port:p5.16-finance-quote   
 
 depends_run       port:yelp
 
@@ -87,7 +77,7 @@
                   --disable-ofx \
                   --disable-dbi \
                   --with-html-engine=webkit
-configure.perl    ${prefix}/bin/perl5.12
+configure.perl    ${prefix}/bin/perl5.16
 
 variant gtkhtml description {Use gtkhtml instead of webkit-gtk for html rendering} {
     configure.args-delete --with-html-engine=webkit
@@ -107,15 +97,6 @@
     configure.args-append   --enable-ofx
 }
 
-variant without_hbci conflicts hbci description {Legacy compatibility variant} {}
-variant without_ofx conflicts ofx description {Legacy compatibility variant} {}
-if {![variant_isset without_hbci]} {
-    default_variants +hbci
-}
-if {![variant_isset without_ofx]} {
-    default_variants +ofx
-}
-
 variant dbi description {Adds dbi backend support} {
     depends_lib-append  port:libdbi \
                         port:libdbi-drivers 
@@ -124,43 +105,21 @@
     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."
 }
 
-variant python27 description {Install Python bindings for Python 2.7} {
-    patchfiles-append patch-configure-python.diff
-    depends_lib-append port:python27
-    configure.args-append --enable-python-bindings
-    configure.python ${prefix}/bin/python2.7
-}
+default_variants +ofx +hbci
 
-set gnucash_register_schema ${prefix}/libexec/${name}-gconf-schema.sh
+# XXX This is currently broken; patch needs to be updated to fix
+# configure's python ldflags detection.
+# 
+# variant python27 description {Install Python bindings for Python 2.7} {
+#     patchfiles-append patch-configure-python.diff
+#     depends_lib-append port:python27
+#     configure.args-append --enable-python
+#     configure.python ${prefix}/bin/python2.7
+# }
 
-post-destroot {
-    # We need to register some stuff to gconf. Just putting the
-    # schema files to the right place is not enough.
-    # Setup ${prefix}/libexec/${name}-gconf-schema.sh to handle this
-
-    set schemafiles ""
-    fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas {
-        if {[file isfile $schema]} {
-            # The 'string range' bit is to remove the initial ${destroot} stuff
-            append schemafiles " [string range $schema [string length ${destroot}] end]"
-        }
-    }
-
-    if {[string length $schemafiles] > 0} {
-        set fh [open ${destroot}${gnucash_register_schema} w]
-        puts $fh "#!/bin/sh"
-        puts $fh "env GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemafiles"
-        close $fh
-        file attributes ${destroot}${gnucash_register_schema} -permissions 0755
-    }
-}
-
 post-activate {
-    if {[file exists ${gnucash_register_schema}]} {
-        system "${gnucash_register_schema}"
-    }
-
     system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
+    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
 }
 
 livecheck.regex "/${name} .*/(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)/"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140211/a11ee6c7/attachment-0001.html>


More information about the macports-changes mailing list