Ticket #20479: eiffelstudio64.patch

File eiffelstudio64.patch, 4.7 KB (added by daniel.furrer@…, 15 years ago)
  • Portfile

     
    88set branch        [join [lrange [split ${version} .] 0 1] ""]
    99categories        lang
    1010platforms         darwin
    11 maintainers       student.ethz.ch:roederja
     11maintainers       student.ethz.ch:roederja \
     12                  ethz.ch:dfurrer
    1213description       The ISE Eiffel Compiler and IDE
    1314long_description  EiffelStudio is a development environment for the \
    1415                  Eiffel programming language developed by Eiffel Software. \
     
    6566
    6667                    # Run ranlib on the libraries
    6768                    system "ranlib ${destroot}/${applications_dir}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/lib/*.a"
     69
     70                    if {[variant_isset precompile]} {
     71                      # Build the precompiles
     72                      set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
     73                      set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
     74                      ui_msg "--->  Precompiling EiffelBase"
     75                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base.ecf -c_compile -clean"
     76                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-safe.ecf -c_compile -clean"
     77                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt.ecf -c_compile -clean"
     78                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt-safe.ecf -c_compile -clean"
     79
     80                      ui_msg "--->  Precompiling EiffelVision"
     81                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2.ecf -c_compile -clean"
     82                      #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-safe.ecf -c_compile -clean"
     83                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt.ecf -c_compile -clean"
     84                      #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt-safe.ecf -c_compile -clean"
     85
     86                      # Build the precompiles
     87                      set env(ISE_EIFFEL) ${applications_dir}/Eiffel${branch}
     88                      set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
     89                      # Build the precompiles for -experimental
     90                      ui_msg "--->  Precompiling EiffelBase for experimental"
     91                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base.ecf -c_compile -clean"
     92                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-safe.ecf -c_compile -clean"
     93                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt.ecf -c_compile -clean"
     94                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt-safe.ecf -c_compile -clean"
     95
     96                      ui_msg "--->  Precompiling EiffelVision for experimental"
     97                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2.ecf -c_compile -clean"
     98                      #system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-safe.ecf -c_compile -clean"
     99                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt.ecf -c_compile -clean"
     100                      #system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt-safe.ecf -c_compile -clean"
     101                        }
    68102                  }
    69103
    70104post-install      {
     
    76110                        export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
    77111                        ################################################################################## \n"
    78112                  }
     113                 
     114variant precompile description {Build the precompiles for EiffelBase and EiffelVision} {
     115                  # Build the precompiles in the destroot phase.
     116}