Ticket #20718: eiffelstudio65-II.patch

File eiffelstudio65-II.patch, 5.3 KB (added by daniel.furrer@…, 15 years ago)
  • Portfile

     
    6565
    6666                    # Run ranlib on the libraries
    6767                    system "ranlib ${destroot}/${applications_dir}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/lib/*.a"
    68                   }
    6968
     69                    if {[variant_isset precompile]} {
     70                      # Build the precompiles
     71                      set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
     72                      set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
     73                      ui_msg "--->  Precompiling EiffelBase"
     74                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base.ecf -c_compile -clean"
     75                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-safe.ecf -c_compile -clean"
     76                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt.ecf -c_compile -clean"
     77                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config base-mt-safe.ecf -c_compile -clean"
     78
     79                      ui_msg "--->  Precompiling EiffelVision"
     80                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2.ecf -c_compile -clean"
     81                      #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-safe.ecf -c_compile -clean"
     82                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt.ecf -c_compile -clean"
     83                      #system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -precompile -config vision2-mt-safe.ecf -c_compile -clean"
     84
     85                      # Build the precompiles
     86                      set env(ISE_EIFFEL) ${applications_dir}/Eiffel${branch}
     87                      set compiler $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin/ec
     88                      # Build the precompiles for -experimental
     89                      ui_msg "--->  Precompiling EiffelBase for experimental"
     90                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base.ecf -c_compile -clean"
     91                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-safe.ecf -c_compile -clean"
     92                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt.ecf -c_compile -clean"
     93                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config base-mt-safe.ecf -c_compile -clean"
     94
     95                      ui_msg "--->  Precompiling EiffelVision for experimental"
     96                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2.ecf -c_compile -clean"
     97                      #system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-safe.ecf -c_compile -clean"
     98                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt.ecf -c_compile -clean"
     99                      #system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt-safe.ecf -c_compile -clean"
     100                        }
     101                    if {[variant_isset fixpermissions]} {
     102                      set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
     103                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
     104                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
     105                    }
     106                      }
     107
    70108post-install      {
    71109                    ui_msg " ################################################################################## \n\
    72110                        To complete the installation you have to add the following to your .bashrc file : \n\
     
    75113                        export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\
    76114                        export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
    77115                        ################################################################################## \n"
    78                   }
    79  No newline at end of file
     116                  }
     117                 
     118variant precompile description {Build the precompiles for EiffelBase and EiffelVision} {
     119                  # Build the precompiles in the destroot phase.
     120}
     121
     122variant fixpermissions description {Makes the precompile directory shared and writable by all users.} {
     123                  # This fixes the issue with users being unable to build precompiles but
     124                  # it is a potential security risk on multi-user systems
     125}
     126 No newline at end of file