source: trunk/dports/lang/scala2.7/Portfile

Last change on this file was 95464, checked in by blair@…, 5 years ago

scala*: whitespace changes: move to 4-space indentation.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 95464 2012-07-13 18:45:37Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup select 1.0
5
6name            scala2.7
7version         2.7.7
8set branch      [join [lrange [split ${version} .] 0 1] .]
9categories      lang java
10license         BSD
11maintainers     blair
12description     The Scala Programming Language
13long_description \
14                Scala is a modern multi-paradigm programming language \
15                designed to express common programming patterns in a \
16                concise, elegant, and type-safe way.  It smoothly \
17                integrates features of object-oriented and functional \
18                languages.  It runs inside a Java Virtual Machine and \
19                is fully interoperable with Java.
20homepage        http://www.scala-lang.org/
21platforms       darwin
22supported_archs noarch
23
24master_sites    ${homepage}downloads/distrib/files/
25distname        scala-${version}.final
26extract.suffix  .tgz
27checksums       md5 5d2294d5aab72fec869c0ba666d28b7e \
28                sha1 2197475c8d137cb9f05614807e7d4f18ad8db7e3 \
29                rmd160 ea590b9e25fd0ede59cc6ccd5e9d3bba99885b0f
30
31depends_lib     port:scala_select
32
33use_configure   no
34build           {}
35
36select.group    scala
37select.file     ${filespath}/${name}
38
39destroot {
40    set sharedir ${destroot}${prefix}/share
41    set man1dir ${sharedir}/man/man1
42    set scaladir ${sharedir}/scala-${branch}
43    set docscaladir ${sharedir}/doc/scala-${branch}
44
45    xinstall -d -m 755 ${sharedir}
46    file copy ${worksrcpath} ${scaladir}
47
48    foreach f {fsc sbaz sbaz-setup scala scalac scaladoc scalap} {
49        ln -s ../share/scala-${branch}/bin/${f} \
50            ${destroot}${prefix}/bin/${f}-${branch}
51    }
52
53    file delete ${man1dir}
54    file rename ${scaladir}/man/man1 ${man1dir}
55    foreach f {fsc sbaz scala scalac scaladoc} {
56        file rename ${man1dir}/${f}.1 ${man1dir}/${f}-${branch}.1
57    }
58    file delete -force ${scaladir}/man
59
60    xinstall -d -m 755 ${docscaladir}
61    foreach doc {sbaz sbaz-setup} {
62        file rename ${scaladir}/doc/${doc} ${docscaladir}/${doc}
63    }
64    file delete -force ${scaladir}/doc
65
66    xinstall -d -m 755 ${sharedir}/java
67    foreach f {sbaz-tests.jar
68               sbaz.jar
69               scala-compiler.jar
70               scala-dbc.jar
71               scala-library.jar
72               scala-swing.jar} {
73        set g [strsed ${f} "/.jar/-${branch}.jar/"]
74        ln -s ../scala-${branch}/lib/${f} ${sharedir}/java/${g}
75    }
76}
Note: See TracBrowser for help on using the repository browser.