1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name eiffelstudio |
---|
4 | set major_version 18.01 |
---|
5 | set minor_version 10.1424 |
---|
6 | version ${major_version}.${minor_version} |
---|
7 | categories lang |
---|
8 | license GPL-2 |
---|
9 | platforms darwin |
---|
10 | maintainers jann |
---|
11 | description The ISE Eiffel Compiler and IDE |
---|
12 | long_description EiffelStudio is a development environment for the \ |
---|
13 | Eiffel programming language developed by Eiffel Software. \ |
---|
14 | EiffelStudio includes a combination of tools integrated under \ |
---|
15 | a single user interface: compiler, interpreter, debugger, \ |
---|
16 | browser, metrics tool, profiler, diagram tool. \ |
---|
17 | The user interface rests on a number of specific UI paradigms, \ |
---|
18 | in particular "pick-and-drop" for effective browsing. |
---|
19 | homepage http://www.eiffel.com |
---|
20 | master_sites sourceforge:eiffelstudio:source \ |
---|
21 | ftp://ftp.eiffel.com/pub/download/${major_version}:source \ |
---|
22 | http://ftp.eiffel.com/pub/download/${major_version}:source \ |
---|
23 | http://www.jann-roeder.net/download/:launcher |
---|
24 | depends_lib port:gtk2 \ |
---|
25 | lib:libXtst:xorg-libXtst |
---|
26 | depends_build bin:bzip2:bzip2 \ |
---|
27 | port:pkgconfig |
---|
28 | |
---|
29 | extract.suffix .tar |
---|
30 | extract.cmd tar |
---|
31 | extract.post_args |
---|
32 | extract.pre_args -xf |
---|
33 | distname eiffelstudio-${version} |
---|
34 | set eiffel_launch eiffel_launcher_20091003.tar.bz2 |
---|
35 | distfiles ${distname}${extract.suffix}:source \ |
---|
36 | ${eiffel_launch}:launcher |
---|
37 | extract.only ${distname}${extract.suffix} |
---|
38 | worksrcdir PorterPackage |
---|
39 | |
---|
40 | checksums ${distname}${extract.suffix} \ |
---|
41 | rmd160 9d4ddebf7d4b9307205294e38fc6859ee5657359 \ |
---|
42 | sha256 2016be2e94bc2f9df6c317118c1b7125f9243e646a1e763641c1dc9243e9cb40 \ |
---|
43 | ${eiffel_launch} \ |
---|
44 | rmd160 f52af5b8b09ecdd21af4b1d89d2716597a9c1340 \ |
---|
45 | sha256 862bce03664b1ef554e3b8f432cdc77284912d606f6ac58dc47dd499c3a3f594 |
---|
46 | |
---|
47 | use_configure no |
---|
48 | |
---|
49 | set ise_platform ${os.platform}-${os.arch} |
---|
50 | platform darwin i386 { |
---|
51 | if {${build_arch} eq "i386"} { |
---|
52 | set ise_platform macosx-x86 |
---|
53 | } elseif {${build_arch} eq "x86_64"} { |
---|
54 | set ise_platform macosx-x86-64 |
---|
55 | } |
---|
56 | } |
---|
57 | |
---|
58 | platform darwin powerpc { |
---|
59 | set ise_platform macosx-ppc |
---|
60 | } |
---|
61 | |
---|
62 | build { |
---|
63 | system -W ${worksrcpath} "env CC=${configure.cc} ${worksrcpath}/compile_exes $ise_platform" |
---|
64 | |
---|
65 | # Extract Eiffel Launcher |
---|
66 | system "tar -xjf ${distpath}/${eiffel_launch} -C ${worksrcpath}/Eiffel_${major_version}/" |
---|
67 | } |
---|
68 | |
---|
69 | post-build { |
---|
70 | file attributes ${worksrcpath}/Eiffel_${major_version}/studio/spec/$ise_platform/bin/ec -permissions 0755 |
---|
71 | } |
---|
72 | |
---|
73 | destroot { |
---|
74 | xinstall -m 755 -d ${destroot}${applications_dir} |
---|
75 | file copy ${worksrcpath}/Eiffel_${major_version} ${destroot}${applications_dir}/ |
---|
76 | |
---|
77 | # Run ranlib on the libraries |
---|
78 | system "ranlib ${destroot}${applications_dir}/Eiffel_${major_version}/studio/spec/$ise_platform/lib/*.a" |
---|
79 | } |
---|
80 | |
---|
81 | notes " |
---|
82 | To complete the installation you have to add the following to your .bashrc or .profile file : \n\ |
---|
83 | export ISE_PLATFORM=$ise_platform \n\ |
---|
84 | export ISE_EIFFEL=${applications_dir}/Eiffel_${major_version} \n\ |
---|
85 | export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\ |
---|
86 | export PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin \n\ |
---|
87 | " |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.version [join [split ${minor_version} .] ""] |
---|
91 | livecheck.url http://sourceforge.net/api/file/index/project-name/eiffelstudio/rss |
---|
92 | livecheck.regex ${major_version}/Build_(\\d+)/ |
---|