Revision
147228
Author
dluke@macports.org
Date
2016-03-31 11:49:02 -0700 (Thu, 31 Mar 2016)

Log Message

nmap: add legacy compatibility variants (thanks to Ryan).

Modified Paths

Diff

Modified: trunk/dports/net/nmap/Portfile (147227 => 147228)


--- trunk/dports/net/nmap/Portfile	2016-03-31 17:27:16 UTC (rev 147227)
+++ trunk/dports/net/nmap/Portfile	2016-03-31 18:49:02 UTC (rev 147228)
@@ -51,7 +51,8 @@
 use_parallel_build	no
 configure.ccache	no
 
-default_variants +ssl +pcre +subversion
+#- add back +ssl and +pcre once we remove the compatibility variants
+default_variants +subversion
 
 variant ssl description {build with ssl support} {
 			configure.args-append --with-openssl=${prefix}
@@ -73,3 +74,13 @@
 			configure.python ${prefix}/bin/python2.7
 			depends_lib-append port:py27-pygtk
 		}
+
+#- remove after March 2017, backwards compatibility for previous variants
+variant no_ssl description {Legacy compatibility variant} {}
+if {![variant_isset no_ssl]} {
+	default_variants +ssl
+}
+variant no_pcre description {Legacy compatibility variant} {}
+if {![variant_isset no_pcre]} {
+	default_variants +pcre
+}