source: trunk/dports/lang/eiffelstudio65/Portfile @ 67553

Last change on this file since 67553 was 67553, checked in by jann@…, 10 years ago

License added

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1# $Id: Portfile 67553 2010-05-12 16:24:43Z jann@macports.org $
2PortSystem        1.0
3
4name              eiffelstudio65
5set minor_version 81777
6version           6.5.${minor_version}
7set branch        [join [lrange [split ${version} .] 0 1] ""]
8categories        lang
9license           GPL
10platforms         darwin
11maintainers       jann \
12                  ethz.ch:dfurrer
13description       The ISE Eiffel Compiler and IDE
14long_description  EiffelStudio is a development environment for the \
15                  Eiffel programming language developed by Eiffel Software. \
16                  EiffelStudio includes a combination of tools integrated under \
17                  a single user interface: compiler, interpreter, debugger, \
18                  browser, metrics tool, profiler, diagram tool. \
19                  The user interface rests on a number of specific UI paradigms, \
20                  in particular "pick-and-drop" for effective browsing.
21homepage          http://www.eiffel.com
22master_sites      sourceforge:eiffelstudio:source \
23                  http://download.origo.ethz.ch/eiffelstudio/1540/:source \
24                  http://n.ethz.ch/student/roederja/download/:launcher \
25                  http://www.jann-roeder.net/download/:launcher
26depends_lib       port:gtk2
27depends_build     bin:bzip2:bzip2
28extract.suffix    .tar
29extract.cmd       tar
30extract.post_args
31extract.pre_args  -xf
32distname          PorterPackage_${branch}_${minor_version}
33set eiffel_launch eiffel_launcher_20091003.tar.bz2
34distfiles         ${distname}${extract.suffix}:source \
35                  ${eiffel_launch}:launcher
36extract.only      ${distname}${extract.suffix}
37worksrcdir        PorterPackage
38
39checksums         ${distname}${extract.suffix} rmd160 cad60f3e854c88e9d08eaf58d6e295929a9c92e0 \
40                  ${eiffel_launch} rmd160 f52af5b8b09ecdd21af4b1d89d2716597a9c1340
41
42use_configure     no
43
44platform i386     {
45                    if {${build_arch} == "i386"} {
46                        set env(ISE_PLATFORM) macosx-x86
47                    } elseif {${build_arch} == "x86_64"} {
48                        set env(ISE_PLATFORM) macosx-x86-64
49                    }
50                  }
51
52platform powerpc  {
53                    set env(ISE_PLATFORM) macosx-ppc
54                  }
55
56build             {
57                    set env(ISE_EIFFEL) ${worksrcpath}/Eiffel${branch}
58                    set env(GOBO) $env(ISE_EIFFEL)/library/gobo
59                    set env(PATH) $env(ISE_EIFFEL)/studio/spec/$env(ISE_PLATFORM)/bin:$env(PATH)
60                   
61                    system "cd ${worksrcpath} && ${worksrcpath}/compile_exes $env(ISE_PLATFORM)"
62                    file attributes ${worksrcpath}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/bin/ec -permissions 0755
63
64                    # Extract Eiffel Launcher
65                    system "tar -xjf ${distpath}/${eiffel_launch} -C ${worksrcpath}/Eiffel${branch}/"
66                  }
67
68destroot          {
69                    xinstall -m 755 -d ${destroot}${applications_dir}
70                    file copy ${worksrcpath}/Eiffel${branch} ${destroot}/${applications_dir}/
71
72                    # Run ranlib on the libraries
73                    system "ranlib ${destroot}${applications_dir}/Eiffel${branch}/studio/spec/$env(ISE_PLATFORM)/lib/*.a"
74                   
75                    # Fix permissions of precompile directory
76                    set env(ISE_EIFFEL) ${destroot}${applications_dir}/Eiffel${branch}
77                    file attributes $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
78                    file attributes $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
79                  }
80
81post-activate     {
82                    ui_msg " ################################################################################## \n\
83                        To complete the installation you have to add the following to your .bashrc or .profile file : \n\
84                        export ISE_PLATFORM=$env(ISE_PLATFORM) \n\
85                        export ISE_EIFFEL=${applications_dir}/Eiffel${branch} \n\
86                        export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\
87                        export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\
88                        ################################################################################## \n"
89                  }
Note: See TracBrowser for help on using the repository browser.