[55299] trunk/dports/lang/eiffelstudio64/Portfile
jann at macports.org
jann at macports.org
Sat Aug 8 08:46:39 PDT 2009
Revision: 55299
http://trac.macports.org/changeset/55299
Author: jann at macports.org
Date: 2009-08-08 08:46:36 -0700 (Sat, 08 Aug 2009)
Log Message:
-----------
Added precompile variant ticket #20479
Modified Paths:
--------------
trunk/dports/lang/eiffelstudio64/Portfile
Modified: trunk/dports/lang/eiffelstudio64/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio64/Portfile 2009-08-08 12:53:38 UTC (rev 55298)
+++ trunk/dports/lang/eiffelstudio64/Portfile 2009-08-08 15:46:36 UTC (rev 55299)
@@ -8,7 +8,8 @@
set branch [join [lrange [split ${version} .] 0 1] ""]
categories lang
platforms darwin
-maintainers student.ethz.ch:roederja
+maintainers student.ethz.ch:roederja \
+ ethz.ch:dfurrer
description The ISE Eiffel Compiler and IDE
long_description EiffelStudio is a development environment for the \
Eiffel programming language developed by Eiffel Software. \
@@ -65,6 +66,39 @@
# Run ranlib on the libraries
system "ranlib ${destroot}/${applications_dir}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/lib/*.a"
+
+ if {[variant_isset precompile]} {
+ # Build the precompiles
+ set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
+ set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
+ ui_msg "---> Precompiling EiffelBase"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-safe.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt-safe.ecf -c_compile -clean"
+
+ ui_msg "---> Precompiling EiffelVision"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2.ecf -c_compile -clean"
+ #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-safe.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt.ecf -c_compile -clean"
+ #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt-safe.ecf -c_compile -clean"
+
+ # Build the precompiles
+ set env(ISE_EIFFEL) ${applications_dir}/Eiffel${branch}
+ set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
+ # Build the precompiles for -experimental
+ ui_msg "---> Precompiling EiffelBase for experimental"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-safe.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt-safe.ecf -c_compile -clean"
+
+ ui_msg "---> Precompiling EiffelVision for experimental"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-safe.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt.ecf -c_compile -clean"
+ system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt-safe.ecf -c_compile -clean"
+ }
}
post-install {
@@ -76,3 +110,7 @@
export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
################################################################################## \n"
}
+
+variant precompile description {Build the precompiles for EiffelBase and EiffelVision} {
+ # Build the precompiles in the destroot phase.
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090808/54cae06d/attachment.html>
More information about the macports-changes
mailing list