[57330] trunk/dports/lang

jann at macports.org jann at macports.org
Wed Sep 9 12:48:59 PDT 2009


Revision: 57330
          http://trac.macports.org/changeset/57330
Author:   jann at macports.org
Date:     2009-09-09 12:48:55 -0700 (Wed, 09 Sep 2009)
Log Message:
-----------
Fixes for Snow Leopard

Modified Paths:
--------------
    trunk/dports/lang/eiffelstudio/Portfile
    trunk/dports/lang/eiffelstudio64/Portfile
    trunk/dports/lang/eiffelstudio65/Portfile

Modified: trunk/dports/lang/eiffelstudio/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio/Portfile	2009-09-09 19:35:58 UTC (rev 57329)
+++ trunk/dports/lang/eiffelstudio/Portfile	2009-09-09 19:48:55 UTC (rev 57330)
@@ -22,7 +22,8 @@
                   http://download.origo.ethz.ch/eiffelstudio/951/:source \
                   http://n.ethz.ch/student/roederja/download/:launcher
 depends_lib       port:gtk2
-depends_build     bin:bzip2:bzip2
+depends_build     bin:bzip2:bzip2 \
+                  bin:svn:subversion
 extract.suffix    .tar
 extract.cmd       tar
 extract.post_args
@@ -44,12 +45,26 @@
 use_configure     no
 
 platform i386     {
-                    set env(ISE_PLATFORM) macosx-x86
+                    if {${build_arch} == "i386"} {
+                        set env(ISE_PLATFORM) macosx-x86
+                    } elseif {${build_arch} == "x86_64"} {
+                        set env(ISE_PLATFORM) macosx-x86-64
+                    }
                   }
 
 platform powerpc  {
                     set env(ISE_PLATFORM) macosx-ppc
                   }
+                  
+patch             {
+                    # Check out C/CONFIGS/macosx-x86 and C/CONFIGS/macosx-x86-64 from the trunk
+                    # This is a temporary workaround to support 64bit architectures until new porter packages are available
+                    system "cd ${worksrcpath} && tar -xjf c.tar.bz2"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86-64"
+                    system "cd ${worksrcpath} && tar -cjf c.tar.bz2 C"
+                    file delete -force -- ${worksrcpath}/C
+                  }
 
 build             {
                     set env(ISE_EIFFEL) ${worksrcpath}/Eiffel${branch}

Modified: trunk/dports/lang/eiffelstudio64/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio64/Portfile	2009-09-09 19:35:58 UTC (rev 57329)
+++ trunk/dports/lang/eiffelstudio64/Portfile	2009-09-09 19:48:55 UTC (rev 57330)
@@ -23,7 +23,8 @@
                   http://download.origo.ethz.ch/eiffelstudio/1286/:source \
                   http://n.ethz.ch/student/roederja/download/:launcher
 depends_lib       port:gtk2
-depends_build     bin:bzip2:bzip2
+depends_build     bin:bzip2:bzip2 \
+                  bin:svn:subversion
 extract.suffix    .tar
 extract.cmd       tar
 extract.post_args
@@ -41,12 +42,26 @@
 use_configure     no
 
 platform i386     {
-                    set env(ISE_PLATFORM) macosx-x86
+                    if {${build_arch} == "i386"} {
+                        set env(ISE_PLATFORM) macosx-x86
+                    } elseif {${build_arch} == "x86_64"} {
+                        set env(ISE_PLATFORM) macosx-x86-64
+                    }
                   }
 
 platform powerpc  {
                     set env(ISE_PLATFORM) macosx-ppc
                   }
+                  
+patch             {
+                    # Check out C/CONFIGS/macosx-x86 and C/CONFIGS/macosx-x86-64 from the trunk
+                    # This is a temporary workaround to support 64bit architectures until new porter packages are available
+                    system "cd ${worksrcpath} && tar -xjf c.tar.bz2"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86-64"
+                    system "cd ${worksrcpath} && tar -cjf c.tar.bz2 C"
+                    file delete -force -- ${worksrcpath}/C
+                  }
 
 build             {
                     set env(ISE_EIFFEL) ${worksrcpath}/Eiffel${branch}
@@ -98,7 +113,7 @@
                       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      {

Modified: trunk/dports/lang/eiffelstudio65/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio65/Portfile	2009-09-09 19:35:58 UTC (rev 57329)
+++ trunk/dports/lang/eiffelstudio65/Portfile	2009-09-09 19:48:55 UTC (rev 57330)
@@ -22,7 +22,8 @@
                   http://download.origo.ethz.ch/eiffelstudio/1385/:source \
                   http://n.ethz.ch/student/roederja/download/:launcher
 depends_lib       port:gtk2
-depends_build     bin:bzip2:bzip2
+depends_build     bin:bzip2:bzip2 \
+                  bin:svn:subversion
 extract.suffix    .tar
 extract.cmd       tar
 extract.post_args
@@ -40,18 +41,32 @@
 use_configure     no
 
 platform i386     {
-                    set env(ISE_PLATFORM) macosx-x86
+                    if {${build_arch} == "i386"} {
+                        set env(ISE_PLATFORM) macosx-x86
+                    } elseif {${build_arch} == "x86_64"} {
+                        set env(ISE_PLATFORM) macosx-x86-64
+                    }
                   }
 
 platform powerpc  {
                     set env(ISE_PLATFORM) macosx-ppc
                   }
 
+patch             {
+                    # Check out C/CONFIGS/macosx-x86 and C/CONFIGS/macosx-x86-64 from the trunk
+                    # This is a temporary workaround to support 64bit architectures until new porter packages are available
+                    system "cd ${worksrcpath} && tar -xjf c.tar.bz2"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86"
+                    system "cd ${worksrcpath}/C/CONFIGS && svn export https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/C/CONFIGS/macosx-x86-64"
+                    system "cd ${worksrcpath} && tar -cjf c.tar.bz2 C"
+                    file delete -force -- ${worksrcpath}/C
+                  }
+
 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
 
@@ -97,13 +112,13 @@
                       #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"
-	                }
+                    }
                     if {[variant_isset fixpermissions]} {
                       set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
                       system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
                       system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
                     }
-	              }
+                  }
 
 post-install      {
                     ui_msg " ################################################################################## \n\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090909/0f285e92/attachment.html>


More information about the macports-changes mailing list