[63140] trunk/dports/lang/scala/Portfile
blair at macports.org
blair at macports.org
Wed Jan 27 08:49:30 PST 2010
Revision: 63140
http://trac.macports.org/changeset/63140
Author: blair at macports.org
Date: 2010-01-27 08:49:28 -0800 (Wed, 27 Jan 2010)
Log Message:
-----------
Enable the 'scala' port to be co-installed with the 'scala-devel' and
a forthcoming 'scala28' port by appending -2.7 to the name.
Modified Paths:
--------------
trunk/dports/lang/scala/Portfile
Modified: trunk/dports/lang/scala/Portfile
===================================================================
--- trunk/dports/lang/scala/Portfile 2010-01-27 16:46:23 UTC (rev 63139)
+++ trunk/dports/lang/scala/Portfile 2010-01-27 16:49:28 UTC (rev 63140)
@@ -4,6 +4,7 @@
name scala
version 2.7.7
+revision 1
categories lang java
maintainers blair
description The Scala Programming Language
@@ -30,18 +31,22 @@
destroot {
set sharedir ${destroot}${prefix}/share
set man1dir ${sharedir}/man/man1
- set scaladir ${sharedir}/scala
- set docscaladir ${sharedir}/doc/scala
+ set scaladir ${sharedir}/scala-2.7
+ set docscaladir ${sharedir}/doc/scala-2.7
xinstall -d -m 755 ${sharedir}
file copy ${worksrcpath} ${scaladir}
foreach f {fsc sbaz sbaz-setup scala scalac scaladoc scalap} {
- ln -s ../share/scala/bin/${f} ${destroot}${prefix}/bin/${f}
+ ln -s ../share/scala-2.7/bin/${f} ${destroot}${prefix}/bin/${f}
+ ln -s ../share/scala-2.7/bin/${f} ${destroot}${prefix}/bin/${f}-2.7
}
file delete ${man1dir}
file rename ${scaladir}/man/man1 ${man1dir}
+ foreach f {fsc sbaz scala scalac scaladoc} {
+ file rename ${man1dir}/${f}.1 ${man1dir}/${f}-2.7.1
+ }
file delete -force ${scaladir}/man
xinstall -d -m 755 ${docscaladir}
@@ -52,6 +57,7 @@
xinstall -d -m 755 ${sharedir}/java
foreach f {sbaz-tests.jar sbaz.jar scala-compiler.jar scala-dbc.jar scala-decoder.jar scala-library.jar} {
- ln -s ../scala/lib/${f} ${sharedir}/java/${f}
+ set g [strsed ${f} {/.jar/-2.7.jar/}]
+ ln -s ../scala-2.7/lib/${f} ${sharedir}/java/${g}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100127/388e4982/attachment.html>
More information about the macports-changes
mailing list