Revision
99262
Author
mk@macports.org
Date
2012-10-30 11:05:27 -0700 (Tue, 30 Oct 2012)

Log Message

istumbler: include version check (#issue 34857) and add BSD license

Modified Paths

Diff

Modified: trunk/dports/aqua/istumbler/Portfile (99261 => 99262)


--- trunk/dports/aqua/istumbler/Portfile	2012-10-30 17:00:43 UTC (rev 99261)
+++ trunk/dports/aqua/istumbler/Portfile	2012-10-30 18:05:27 UTC (rev 99262)
@@ -9,6 +9,7 @@
 maintainers	nomaintainer
 supported_archs	i386 ppc
 configure.universal_archs i386 ppc
+license     BSD
 
 description	iStumbler is an Aqua GUI for finding wireless networks
 long_description	iStumbler is a free, open source tool for finding \
@@ -40,6 +41,15 @@
 #	BUILT_PRODUCTS_DIR=${worksrcpath}/build
 #	OTHER_LDFLAGS="-I${worksrcpath}/Frameworks"
 
+pre-fetch {
+	platform darwin {
+		if {${os.major} < 10} {
+			ui_error "${name} requires OS X 10.6 or newer."
+			return -code error "incompatible OS X version"
+		}
+	}
+}
+
 if { ![variant_isset use_source] } {
 	default_variants +use_binary
 }