#20006: Variant for installing erlang without wxWidgets/tk --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: bfulgham@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: erlang --------------------------------+------------------------------------------- Comment(by jabronson@…): i think we should take the opposite approach. the following patch removes the default dependency on wxWidgets and instead makes it available via the "wxwidgets" variant: {{{ Index: Portfile =================================================================== --- Portfile (revision 62384) +++ Portfile (working copy) @@ -97,10 +97,13 @@ configure.args-delete --enable-hipe } -depends_build port:gawk \ - port:wxWidgets -depends_run port:tk +variant wxwidgets description {Build wxWidgets support} { + depends_build-append port:wxWidgets + depends_run-append port:tk +} +depends_build port:gawk + post-destroot { system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}" system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}" }}} -- Ticket URL: <http://trac.macports.org/ticket/20006#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS