[86140] trunk/dports/lang/eiffelstudio70/Portfile

jann at macports.org jann at macports.org
Wed Oct 19 14:29:03 PDT 2011


Revision: 86140
          http://trac.macports.org/changeset/86140
Author:   jann at macports.org
Date:     2011-10-19 14:29:03 -0700 (Wed, 19 Oct 2011)
Log Message:
-----------
Replace env variables with better alternatives

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

Modified: trunk/dports/lang/eiffelstudio70/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio70/Portfile	2011-10-19 20:49:32 UTC (rev 86139)
+++ trunk/dports/lang/eiffelstudio70/Portfile	2011-10-19 21:29:03 UTC (rev 86140)
@@ -45,23 +45,22 @@
 
 platform i386     {
                     if {${build_arch} == "i386"} {
-                        set env(ISE_PLATFORM) macosx-x86
+                        set ise_platform macosx-x86
                     } elseif {${build_arch} == "x86_64"} {
-                        set env(ISE_PLATFORM) macosx-x86-64
+                        set ise_platform macosx-x86-64
                     }
                   }
 
 platform powerpc  {
-                    set env(ISE_PLATFORM) macosx-ppc
+                    set ise_platform macosx-ppc
                   }
+                  
+build.env-append  ISE_PLATFORM=$ise_platform
+build.env-append  ISE_EIFFEL=${worksrcpath}/Eiffel${branch}
 
-build             {
-                    set env(ISE_EIFFEL) ${worksrcpath}/Eiffel${branch}
-                    set env(GOBO) $env(ISE_EIFFEL)/library/gobo
-                    set env(PATH) $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin:$env(PATH)
-                   
-                    system "cd ${worksrcpath} && ${worksrcpath}/compile_exes $env(ISE_PLATFORM)"
-                    file attributes ${worksrcpath}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/bin/ec -permissions 0755
+build             {                   
+                    system "cd ${worksrcpath} && ${worksrcpath}/compile_exes $ise_platform"
+                    file attributes ${worksrcpath}/Eiffel${branch}/studio/spec/$ise_platform/bin/ec -permissions 0755
 
                     # Extract Eiffel Launcher
                     system "tar -xjf ${distpath}/${eiffel_launch} -C ${worksrcpath}/Eiffel${branch}/"
@@ -72,20 +71,18 @@
                     file copy ${worksrcpath}/Eiffel${branch} ${destroot}${applications_dir}/
 
                     # Run ranlib on the libraries
-                    system "ranlib ${destroot}${applications_dir}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/lib/*.a"
+                    system "ranlib ${destroot}${applications_dir}/Eiffel${branch}/studio/spec/$ise_platform/lib/*.a"
                     
                     # Fix permissions of precompile directory
-                    set env(ISE_EIFFEL) ${destroot}${applications_dir}/Eiffel${branch}
-                    file attributes $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
-                    file attributes $env(ISE_EIFFEL)/compatible/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
+                    set ise_eiffel ${destroot}${applications_dir}/Eiffel${branch}
+                    file attributes $ise_eiffel/precomp/spec/$ise_platform -permissions g+w
+                    file attributes $ise_eiffel/compatible/precomp/spec/$ise_platform -permissions g+w
                   }
 
-post-activate     {
-                    ui_msg " ################################################################################## \n\
-                        To complete the installation you have to add the following to your .bashrc or .profile file : \n\
-                        export ISE_PLATFORM=$env(ISE_PLATFORM) \n\
-                        export ISE_EIFFEL=${applications_dir}/Eiffel${branch} \n\
-                        export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\
-                        export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
-                        ################################################################################## \n"
-                  }
+notes "
+To complete the installation you have to add the following to your .bashrc or .profile file : \n\
+export ISE_PLATFORM=$ise_platform \n\
+export ISE_EIFFEL=${applications_dir}/Eiffel${branch} \n\
+export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\
+export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111019/a6751392/attachment-0001.html>


More information about the macports-changes mailing list