Revision
69301
Author
jameskyle@macports.org
Date
2010-06-29 11:30:12 -0700 (Tue, 29 Jun 2010)

Log Message

Throw warning and exit if not leopard or above. #20113

Modified Paths

Diff

Modified: trunk/dports/math/shogun/Portfile (69300 => 69301)


--- trunk/dports/math/shogun/Portfile	2010-06-29 17:56:42 UTC (rev 69300)
+++ trunk/dports/math/shogun/Portfile	2010-06-29 18:30:12 UTC (rev 69301)
@@ -57,7 +57,7 @@
                     --disable-hdf5
 
 pre-fetch {
-  if {[ regexp {^[2-8]} os.version]} {
+  if {[ regexp {^[2-8]} ${os.major}]} {
     return -code error "Shogun is only supported on leopard or above"
   }
 }