[97809] trunk/dports/textproc/ux-trie/Portfile

hum at macports.org hum at macports.org
Sun Sep 16 08:12:56 PDT 2012


Revision: 97809
          http://trac.macports.org//changeset/97809
Author:   hum at macports.org
Date:     2012-09-16 08:12:56 -0700 (Sun, 16 Sep 2012)
Log Message:
-----------
ux-trie: fix to change install_name for installed libraires.

Modified Paths:
--------------
    trunk/dports/textproc/ux-trie/Portfile

Modified: trunk/dports/textproc/ux-trie/Portfile
===================================================================
--- trunk/dports/textproc/ux-trie/Portfile	2012-09-16 15:09:11 UTC (rev 97808)
+++ trunk/dports/textproc/ux-trie/Portfile	2012-09-16 15:12:56 UTC (rev 97809)
@@ -5,7 +5,7 @@
 
 name                ux-trie
 version             0.1.8
-revision            1
+revision            2
 categories          textproc
 platforms           darwin
 maintainers         hum openmaintainer
@@ -36,6 +36,8 @@
 post-destroot {
     set libpath  ${prefix}/lib/libux.dylib
     set builddir ${worksrcpath}/build/src
-    system "install_name_tool -id     ${libpath}                         ${destroot}${libpath}"
-    system "install_name_tool -change ${builddir}/libux.dylib ${libpath} ${destroot}${prefix}/bin/ux"
+    set bin      ${destroot}${prefix}/bin/ux
+    regexp {(\S+\/libux\S+dylib)} [exec otool -L ${bin}] path
+    system "install_name_tool -id     ${libpath} ${destroot}${libpath}"
+    system "install_name_tool -change ${path}    ${libpath} ${bin}"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120916/040d6ddc/attachment.html>


More information about the macports-changes mailing list