[66720] trunk/dports/devel/valgrind/Portfile

raimue at macports.org raimue at macports.org
Wed Apr 21 07:09:39 PDT 2010


Revision: 66720
          http://trac.macports.org/changeset/66720
Author:   raimue at macports.org
Date:     2010-04-21 07:09:37 -0700 (Wed, 21 Apr 2010)
Log Message:
-----------
devel/valgrind:
Advice users on Snow Leopard to use valgrind-devel instead

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

Modified: trunk/dports/devel/valgrind/Portfile
===================================================================
--- trunk/dports/devel/valgrind/Portfile	2010-04-21 14:08:30 UTC (rev 66719)
+++ trunk/dports/devel/valgrind/Portfile	2010-04-21 14:09:37 UTC (rev 66720)
@@ -17,6 +17,17 @@
 master_sites    http://valgrind.org/downloads/
 use_bzip2 yes
 
+pre-fetch {
+    if {"darwin" == ${os.platform} && ${os.major} < 9} {
+        ui_error "${name} ${version} is only compatible with Mac OS X 10.5."
+        return -code error "incompatible Mac OS X version"
+    }
+    if {"darwin" == ${os.platform} && ${os.major} > 9} {
+        ui_error "${name} ${version} is not compatible with Mac OS X 10.6 or later. Until ${name} 3.6.0 is released, please install valgrind-devel instead."
+        return -code error "incompatible Mac OS X version"
+    }
+}
+
 depends_build   bin:perl:perl5
 # Ignore trace reports about boost, Qt and OpenMP
 # as they are only used for tests
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100421/d6601a24/attachment.html>


More information about the macports-changes mailing list