sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Florian Franzmann (8f248d26be812798c9a0b0e8025ed6faf978fd13)
- From: Florian Franzmann <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Florian Franzmann (8f248d26be812798c9a0b0e8025ed6faf978fd13)
- Date: Fri, 1 Apr 2011 16:52:53 -0500
GIT changes to master grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:
ChangeLog | 4 ++++
devel/scala/BUILD | 3 +++
devel/scala/DEPENDS | 2 ++
devel/scala/DETAILS | 17 +++++++++++++++++
devel/scala/HISTORY | 5 +++++
devel/scala/INSTALL | 5 +++++
devel/scala/command-scripts/fsc | 7 +++++++
devel/scala/command-scripts/scala | 10 ++++++++++
devel/scala/command-scripts/scalac | 8 ++++++++
devel/scala/command-scripts/scaladoc | 6 ++++++
10 files changed, 67 insertions(+)
New commits:
commit f853a0f11d025a5cf24ee1e89ce711195b433a0e
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
devel/scala: new spell, the scala programming language
diff --git a/ChangeLog b/ChangeLog
index 5100579..a47ae31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-04-01 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * devel/scala: new spell, the scala programming language compiler and
+ runtime
+
2011-03-31 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* utils/extrautils: new spell, utilities complementing moreutils
* python-pypi/ttystatus: new spell, a library for showing status
updates on
diff --git a/devel/scala/BUILD b/devel/scala/BUILD
new file mode 100755
index 0000000..27924a1
--- /dev/null
+++ b/devel/scala/BUILD
@@ -0,0 +1,3 @@
+. $INSTALL_ROOT/etc/profile.d/ant.sh &&
+. $INSTALL_ROOT/etc/profile.d/java.sh &&
+ANT_OPTS="-Xmx1024M -Xss64M" ant fastdist
diff --git a/devel/scala/DEPENDS b/devel/scala/DEPENDS
new file mode 100755
index 0000000..5f0adaa
--- /dev/null
+++ b/devel/scala/DEPENDS
@@ -0,0 +1,2 @@
+depends JDK5 &&
+depends ant
diff --git a/devel/scala/DETAILS b/devel/scala/DETAILS
new file mode 100755
index 0000000..cddb12d
--- /dev/null
+++ b/devel/scala/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=scala
+ VERSION=2.8.1
+ SOURCE="${SPELL}-${VERSION}.final-sources.tgz"
+
SOURCE_URL[0]=http://www.${SPELL}-lang.org/downloads/distrib/files/${SOURCE}
+
SOURCE_HASH=sha512:527d9240f0d9cc368a68be8869f61b455b168921823688e43a0ca2ca49791863864f2d00464c8553c4af548b861939c18c6bc7dc81aad2324b81e77d4af70ceb
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}.final-sources"
+ WEB_SITE="http://www.scala-lang.org"
+ LICENSE[0]=BSD
+ ENTERED=20110401
+ SHORT="a general purpose programming language"
+cat << EOF
+Scala is a general purpose programming language designed to express common
+programming patterns in a concise, elegant, and type-safe way. It smoothly
+integrates features of object-oriented and functional languages, enabling
Java
+and other programmers to be more productive. Code sizes are typically reduced
+by a factor of two to three when compared to an equivalent Java application.
+EOF
diff --git a/devel/scala/HISTORY b/devel/scala/HISTORY
new file mode 100644
index 0000000..4309116
--- /dev/null
+++ b/devel/scala/HISTORY
@@ -0,0 +1,5 @@
+2011-04-01 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * DETAILS, DEPENDS, BUILD,
command-scripts/{fsc,scala,scalac,scaladoc},
+ INSTALL: spell created
+ command-scripts/* is from Debian
+
diff --git a/devel/scala/INSTALL b/devel/scala/INSTALL
new file mode 100755
index 0000000..ea09a1b
--- /dev/null
+++ b/devel/scala/INSTALL
@@ -0,0 +1,5 @@
+install -m755 ${SCRIPT_DIRECTORY}/command-scripts/* ${INSTALL_ROOT}/usr/bin
&&
+install -m644 ${SOURCE_DIRECTORY}/dists/latest/lib/*.jar
${INSTALL_ROOT}/usr/share/java/ &&
+install -m644 ${SOURCE_DIRECTORY}/dists/latest/man/man1/*
${INSTALL_ROOT}/usr/share/man/man1/ &&
+mkdir -p ${INSTALL_ROOT}/usr/share/doc/scala
&&
+cp -R ${SOURCE_DIRECTORY}/dists/latest/doc/*
${INSTALL_ROOT}/usr/share/doc/scala/
diff --git a/devel/scala/command-scripts/fsc b/devel/scala/command-scripts/fsc
new file mode 100644
index 0000000..3d61985
--- /dev/null
+++ b/devel/scala/command-scripts/fsc
@@ -0,0 +1,7 @@
+#!/bin/sh
+JAVA_DIR=/usr/share/java
+SCALAC_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar
+
+exec ${JAVACMD:=java} ${JAVA_OPTS:=-Xmx256M -Xms16M} \
+ -classpath $SCALAC_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ scala.tools.nsc.CompileClient "$@"
diff --git a/devel/scala/command-scripts/scala
b/devel/scala/command-scripts/scala
new file mode 100644
index 0000000..cf58687
--- /dev/null
+++ b/devel/scala/command-scripts/scala
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+JAVA_DIR=/usr/share/java
+LIB_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar:$JAVA_DIR/jline.jar
+
+exec ${JAVACMD:=java} ${JAVA_OPTS:=-Xmx256M -Xms16M} \
+ -Xbootclasspath/a:$LIB_CLASSPATH \
+ -classpath .:$CLASSPATH:$LIB_CLASSPATH \
+ scala.tools.nsc.MainGenericRunner \
+ "$@"
diff --git a/devel/scala/command-scripts/scalac
b/devel/scala/command-scripts/scalac
new file mode 100644
index 0000000..7cc07ce
--- /dev/null
+++ b/devel/scala/command-scripts/scalac
@@ -0,0 +1,8 @@
+#!/bin/sh
+JAVA_DIR=/usr/share/java
+SCALAC_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar
+
+exec ${JAVACMD:=java} ${JAVA_OPTS:=-Xmx256M -Xms16M} \
+ -Xbootclasspath/a:$SCALAC_CLASSPATH \
+ -classpath .:$CLASSPATH:$SCALAC_CLASSPATH
-Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ scala.tools.nsc.Main "$@"
diff --git a/devel/scala/command-scripts/scaladoc
b/devel/scala/command-scripts/scaladoc
new file mode 100644
index 0000000..084747d
--- /dev/null
+++ b/devel/scala/command-scripts/scaladoc
@@ -0,0 +1,6 @@
+#!/bin/sh
+JAVA_DIR=/usr/share/java
+SCALAC_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar
+
+exec ${JAVACMD:=java} ${JAVA_OPTS:=-Xmx256M -Xms16M} \
+ -classpath .:$CLASSPATH:$SCALAC_CLASSPATH scala.tools.nsc.ScalaDoc
"$@"
- [SM-Commit] GIT changes to master grimoire by Florian Franzmann (8f248d26be812798c9a0b0e8025ed6faf978fd13), Florian Franzmann, 04/01/2011
Archive powered by MHonArc 2.6.24.