[22949] trunk/dports/devel/readline/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 19 21:57:05 PDT 2007


Revision: 22949
          http://trac.macosforge.org/projects/macports/changeset/22949
Author:   pipping at macports.org
Date:     2007-03-19 21:57:05 -0700 (Mon, 19 Mar 2007)

Log Message:
-----------
 * make dylib fix darwin-only

Modified Paths:
--------------
    trunk/dports/devel/readline/Portfile

Modified: trunk/dports/devel/readline/Portfile
===================================================================
--- trunk/dports/devel/readline/Portfile	2007-03-20 04:45:02 UTC (rev 22948)
+++ trunk/dports/devel/readline/Portfile	2007-03-20 04:57:05 UTC (rev 22949)
@@ -41,12 +41,16 @@
 
 post-destroot {
     delete ${destroot}${prefix}/share/info/dir
-    cd ${destroot}${prefix}/lib
-    # keep ports from breaking that were linked against an old version
-    foreach f {history readline} {
-        foreach v {0 1} {
-            file link -hard lib${f}.5.${v}.dylib \
-            lib${f}.${milestone}.dylib
+    # on darwin, keep incorrectly linked ports from breaking
+    if {[variant_isset darwin]} {
+        cd ${destroot}${prefix}/lib
+        foreach f {history readline} {
+            foreach v {0 1} {
+                file link -hard lib${f}.5.${v}.dylib \
+                lib${f}.${milestone}.dylib
+            }
         }
     }
 }
+
+platform darwin {}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070319/0ddce948/attachment.html


More information about the macports-changes mailing list