[62456] trunk/dports/lang/erlang/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Fri Jan 8 08:36:21 PST 2010


Revision: 62456
          http://trac.macports.org/changeset/62456
Author:   macsforever2000 at macports.org
Date:     2010-01-08 08:36:17 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
Move wxwidgets dependency to a variant. Maintainer timeout. Also moved variants down some to be more organized. (#20006)

Modified Paths:
--------------
    trunk/dports/lang/erlang/Portfile

Modified: trunk/dports/lang/erlang/Portfile
===================================================================
--- trunk/dports/lang/erlang/Portfile	2010-01-08 13:55:17 UTC (rev 62455)
+++ trunk/dports/lang/erlang/Portfile	2010-01-08 16:36:17 UTC (rev 62456)
@@ -71,6 +71,26 @@
                 --enable-hipe                   \
                 --disable-ssl
 
+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}"
+ 
+        set erts_dir   erts-5.7.4
+
+        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl
+        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start
+        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/erl
+        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/start
+
+	foreach x {dialyzer ear ecc elink epmd erl erlc escript run_erl start to_erl typer} { file delete -force ${destroot}${prefix}/bin/${x} }
+	foreach x {dialyzer erl erlc escript run_erl start to_erl typer} { system "ln -s ../lib/erlang/bin/${x} ${destroot}${prefix}/bin/${x}" }
+
+	file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd
+	system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd"
+}
+
 platform darwin 10 {
     # 10.6 comes with wxWidgets and since it requires libsdl, which
     # current doesn't compile (bug #20235), we can avoid it here.
@@ -85,6 +105,11 @@
     configure.ldflags-append -framework CoreFoundation
 }
 
+variant wxwidgets description {Build wxWidgets support}	{
+	depends_build-append     port:wxWidgets
+	depends_run-append       port:tk
+}
+
 variant ssl description {Build SSL support}	{
         configure.args-delete    --disable-ssl
 	configure.args-append    --with-ssl=${prefix}
@@ -97,28 +122,6 @@
 	configure.args-delete   --enable-hipe
 }
 
-depends_build   port:gawk \
-                port:wxWidgets
-depends_run     port:tk
-
-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}"
- 
-        set erts_dir   erts-5.7.4
-
-        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl
-        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start
-        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/erl
-        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/start
-
-	foreach x {dialyzer ear ecc elink epmd erl erlc escript run_erl start to_erl typer} { file delete -force ${destroot}${prefix}/bin/${x} }
-	foreach x {dialyzer erl erlc escript run_erl start to_erl typer} { system "ln -s ../lib/erlang/bin/${x} ${destroot}${prefix}/bin/${x}" }
-
-	file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd
-	system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd"
-}
-
 # Livecheck 
 livecheck.type     regex
 livecheck.version  ${version}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100108/a1450f9b/attachment.html>


More information about the macports-changes mailing list