aboutsummaryrefslogtreecommitdiff
path: root/lang/scala
diff options
context:
space:
mode:
Diffstat (limited to 'lang/scala')
-rw-r--r--lang/scala/Makefile42
-rw-r--r--lang/scala/distinfo4
2 files changed, 27 insertions, 19 deletions
diff --git a/lang/scala/Makefile b/lang/scala/Makefile
index f8f127d2e3ca..99c749290ec4 100644
--- a/lang/scala/Makefile
+++ b/lang/scala/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= scala
-PORTVERSION= 2.8.1
-DISTVERSIONSUFFIX= .final
+PORTVERSION= 2.9.0.1
CATEGORIES= lang java
MASTER_SITES= http://www.scala-lang.org/downloads/distrib/files/ \
LOCAL/glarkin
@@ -16,6 +15,8 @@ EXTRACT_SUFX= .tgz
MAINTAINER= mitsururike@gmail.com
COMMENT= The Scala Programming Language
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
@@ -24,6 +25,13 @@ MAN1= fsc.1 sbaz.1 scala.1 scalac.1 scaladoc.1 scalap.1
SCALA_HOME?= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
SCALA_SHRDIRS= lib meta misc
+SCALA_BINS= fsc \
+ sbaz \
+ sbaz-setup \
+ scala \
+ scalac \
+ scaladoc \
+ scalap
PLIST_SUB+= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
@@ -33,25 +41,25 @@ pre-patch:
@${ECHO_MSG} "Installation settings:"
@${ECHO_MSG} " SCALA_HOME: ${SCALA_HOME}"
+post-patch:
+.for f in ${SCALA_BINS}
+ @${REINPLACE_CMD} 's|^#!/bin/bash|#!${LOCALBASE}/bin/bash|' \
+ ${WRKSRC}/bin/${f}
+.endfor
+
do-install:
@${ECHO_MSG} ">> Installing Scala files..."
@${INSTALL} -d ${SCALA_HOME}/bin
- @cd ${WRKSRC}/bin \
- && ${FIND} . -perm 755 -type f -exec ${INSTALL_SCRIPT} {} \
- ${SCALA_HOME}/bin/{} \;
-.for target in ${SCALA_SHRDIRS}
- @cd ${WRKSRC}/${target} \
- && ${FIND} . -type d -exec ${INSTALL} -d ${SCALA_HOME}/${target}/{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} {} \
- ${SCALA_HOME}/${target}/{} \;
+.for f in ${SCALA_BINS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${SCALA_HOME}/bin/${f}
+ ${LN} -s ${SCALA_HOME}/${f} ${PREFIX}/bin/${f}
+.endfor
+.for d in ${SCALA_SHRDIRS}
+ @cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} . ${SCALA_HOME}/${d}
+.endfor
+.for m in ${MAN1}
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/${m} ${MANPREFIX}/man/man1/${m}
.endfor
- @cd ${WRKSRC}/man/man1 \
- && ${FIND} . -type f -exec ${INSTALL_MAN} {} \
- ${MANPREFIX}/man/man1/{} \;
- @${ECHO_MSG} ">> Installing symlinks in ${PREFIX}/bin..."
- @cd ${SCALA_HOME}/bin \
- && ${FIND} . -type f -exec ${LN} -s ${SCALA_HOME}/bin/{} \
- ${PREFIX}/bin/{} \;
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ">> Installing documentation files..."
diff --git a/lang/scala/distinfo b/lang/scala/distinfo
index 1b5b7f5f36b2..43c515836fb2 100644
--- a/lang/scala/distinfo
+++ b/lang/scala/distinfo
@@ -1,2 +1,2 @@
-SHA256 (scala-2.8.1.final.tgz) = 74211e0fc79ccd555708c1102049cfcaa615984cfdef37b412b4b44d9933c751
-SIZE (scala-2.8.1.final.tgz) = 20203153
+SHA256 (scala-2.9.0.1.tgz) = 0db61068d831c3416e19846d9f090df748e08dfbba78030f90fcb5ca355fd407
+SIZE (scala-2.9.0.1.tgz) = 25368402