[50548] trunk/dports/gnome/gnucash

blb at macports.org blb at macports.org
Sun May 3 01:10:49 PDT 2009


Revision: 50548
          http://trac.macports.org/changeset/50548
Author:   blb at macports.org
Date:     2009-05-03 01:10:45 -0700 (Sun, 03 May 2009)
Log Message:
-----------
gnome/gnucash - switch to using DYLD_FALLBACK_LIBRARY_PATH since it's
vastly preferred to DYLD_LIBRARY_PATH; set LTDL_LIBRARY_PATH as well now
since gnucash uses guile's lib-loading which in turn uses libltdl and
LTDL_LIBRARY_PATH lets it find necessary files

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

Added Paths:
-----------
    trunk/dports/gnome/gnucash/files/patch-src_bin_gnucash.in.diff

Modified: trunk/dports/gnome/gnucash/Portfile
===================================================================
--- trunk/dports/gnome/gnucash/Portfile	2009-05-03 06:52:59 UTC (rev 50547)
+++ trunk/dports/gnome/gnucash/Portfile	2009-05-03 08:10:45 UTC (rev 50548)
@@ -5,7 +5,7 @@
 
 name              gnucash
 version           2.2.9
-revision          1
+revision          2
 categories        gnome x11
 maintainers       nomaintainer
 platforms         darwin
@@ -52,11 +52,14 @@
 configure.args    --disable-glibtest \
                   --disable-dependency-tracking --enable-hbci --enable-ofx
 
-patchfiles        patch-configure.diff patch-lib_libc_libc-missing-noop.c.diff
+patchfiles        patch-configure.diff patch-lib_libc_libc-missing-noop.c.diff \
+                  patch-src_bin_gnucash.in.diff
 
 post-patch {
-    reinplace "/^DYLD_LIBRARY_PATH/s|=\"|=\"/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources at -PATH_SEPARATOR-@|" ${worksrcpath}/src/bin/gnucash.in
-    reinplace "/^DYLD_LIBRARY_PATH/s|=\"|=\"/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources at -PATH_SEPARATOR-@|" ${worksrcpath}/src/bin/overrides/gnucash-env.in
+    reinplace "s|DYLD_LIBRARY_PATH|DYLD_FALLBACK_LIBRARY_PATH|g" \
+        ${worksrcpath}/configure ${worksrcpath}/src/bin/gnucash.in \
+        ${worksrcpath}/src/bin/overrides/gnucash-env.in \
+        ${worksrcpath}/src/gnc-test-env
     fs-traverse src_file ${worksrcpath}/src {
         if { [ file isfile ${src_file} ] } {
             reinplace "s|\\<guile\\/|\\<guile16\\/|g"   ${src_file}

Added: trunk/dports/gnome/gnucash/files/patch-src_bin_gnucash.in.diff
===================================================================
--- trunk/dports/gnome/gnucash/files/patch-src_bin_gnucash.in.diff	                        (rev 0)
+++ trunk/dports/gnome/gnucash/files/patch-src_bin_gnucash.in.diff	2009-05-03 08:10:45 UTC (rev 50548)
@@ -0,0 +1,15 @@
+--- src/bin/gnucash.in.orig	2008-01-07 18:05:50.000000000 -0700
++++ src/bin/gnucash.in	2009-05-03 01:42:49.000000000 -0600
+@@ -18,10 +18,12 @@
+ 
+ LD_LIBRARY_PATH="${EXTRA_LIBS}@-PATH_SEPARATOR-@${LD_LIBRARY_PATH}"
+ DYLD_LIBRARY_PATH="${EXTRA_LIBS}@-PATH_SEPARATOR-@${DYLD_LIBRARY_PATH}"
++LTDL_LIBRARY_PATH="${EXTRA_LIBS}@-PATH_SEPARATOR-@${LTDL_LIBRARY_PATH}"
+ 
+ export GNC_MODULE_PATH
+ export GUILE_LOAD_PATH
+ export LD_LIBRARY_PATH
+ export DYLD_LIBRARY_PATH
++export LTDL_LIBRARY_PATH
+ 
+ exec gnucash-bin "$@"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090503/700302c6/attachment-0001.html>


More information about the macports-changes mailing list