[57832] trunk/dports/lang

ryandesign at macports.org ryandesign at macports.org
Thu Sep 17 01:04:35 PDT 2009


Revision: 57832
          http://trac.macports.org/changeset/57832
Author:   ryandesign at macports.org
Date:     2009-09-17 01:04:30 -0700 (Thu, 17 Sep 2009)
Log Message:
-----------
pure, pure-devel: remove code advising users to rebuild old modules. The modules don't live in those paths anymore, and I rev-bump all the modules when they need to be rebuilt.

Modified Paths:
--------------
    trunk/dports/lang/pure/Portfile
    trunk/dports/lang/pure-devel/Portfile

Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile	2009-09-17 07:57:54 UTC (rev 57831)
+++ trunk/dports/lang/pure/Portfile	2009-09-17 08:04:30 UTC (rev 57832)
@@ -69,33 +69,6 @@
 test.run                yes
 test.target             check
 
-post-destroot {
-    # Check for old modules.
-    set old_files {}
-    foreach dir [glob -nocomplain -type d -tails -directory ${prefix}/lib pure-*] {
-        if {"pure-${branch}" == ${dir}} continue
-        if {![regexp "^pure-\[0-9.\]+$" ${dir}]} continue
-        foreach file [glob -type f -directory ${prefix}/lib/${dir} *] {
-            lappend old_files ${file}
-        }
-    }
-    set old_ports {}
-    if {[llength ${old_files}] > 0} {
-        foreach provides [split [eval exec ${prefix}/bin/port provides ${old_files}] "\n"] {
-            set old_port [lindex [split ${provides}] end]
-            if {-1 == [lsearch -glob ${old_ports} ${old_port}]} {
-                lappend old_ports ${old_port}
-            }
-        }
-    }
-    if {[llength ${old_ports}] > 0} {
-        ui_msg "Some of your pure modules were built for a different version of pure."
-        ui_msg "To use them with version ${branch}, you must rebuild them by running this command:"
-        ui_msg ""
-        ui_msg "sudo port -nf upgrade [join ${old_ports} " "]"
-    }
-}
-
 livecheck.type          regex
 livecheck.url           http://code.google.com/p/pure-lang/downloads/list
 livecheck.regex         ${name}-(\[0-9.\]+\[a-z\]*)\\.tar

Modified: trunk/dports/lang/pure-devel/Portfile
===================================================================
--- trunk/dports/lang/pure-devel/Portfile	2009-09-17 07:57:54 UTC (rev 57831)
+++ trunk/dports/lang/pure-devel/Portfile	2009-09-17 08:04:30 UTC (rev 57832)
@@ -72,33 +72,6 @@
 test.run                yes
 test.target             check
 
-post-destroot {
-    # Check for old modules.
-    set old_files {}
-    foreach dir [glob -nocomplain -type d -tails -directory ${prefix}/lib pure-*] {
-        if {"pure-${branch}" == ${dir}} continue
-        if {![regexp "^pure-\[0-9.\]+$" ${dir}]} continue
-        foreach file [glob -type f -directory ${prefix}/lib/${dir} *] {
-            lappend old_files ${file}
-        }
-    }
-    set old_ports {}
-    if {[llength ${old_files}] > 0} {
-        foreach provides [split [eval exec ${prefix}/bin/port provides ${old_files}] "\n"] {
-            set old_port [lindex [split ${provides}] end]
-            if {-1 == [lsearch -glob ${old_ports} ${old_port}]} {
-                lappend old_ports ${old_port}
-            }
-        }
-    }
-    if {[llength ${old_ports}] > 0} {
-        ui_msg "Some of your pure modules were built for a different version of pure."
-        ui_msg "To use them with version ${branch}, you must rebuild them by running this command:"
-        ui_msg ""
-        ui_msg "sudo port -nf upgrade [join ${old_ports} " "]"
-    }
-}
-
 livecheck.version       [strsed ${version} {g/\.0\.r.*$//}]
 livecheck.type          regex
 livecheck.url           ${svn.url}/configure.ac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090917/1047d0dd/attachment-0001.html>


More information about the macports-changes mailing list