summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/README3
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/command-scripts/scala11
-rw-r--r--debian/command-scripts/scalac7
-rw-r--r--debian/command-scripts/scaladoc5
-rw-r--r--debian/command-scripts/scalaint7
-rw-r--r--debian/compat1
-rw-r--r--debian/control37
-rw-r--r--debian/copyright43
-rwxr-xr-xdebian/rules50
-rw-r--r--debian/scala-dev.dirs2
-rw-r--r--debian/scala-library.dirs2
12 files changed, 174 insertions, 0 deletions
diff --git a/debian/README b/debian/README
new file mode 100644
index 0000000000..501befeca8
--- /dev/null
+++ b/debian/README
@@ -0,0 +1,3 @@
+This directory holds files used to build *.deb packages of Scala
+for the Debian Linux distribution (http://www.debian.org).
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000..6e858cf955
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+scala (2.1.1-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Lex Spoon <lex@debian.org> Sun, 26 Mar 2006 14:45:26 +0100
+
diff --git a/debian/command-scripts/scala b/debian/command-scripts/scala
new file mode 100755
index 0000000000..bf24032f07
--- /dev/null
+++ b/debian/command-scripts/scala
@@ -0,0 +1,11 @@
+#!/bin/sh
+#XXX this script is not as smart about classpaths as it should be.
+# In particular, "scala -cp build" does not do the right
+# thing.
+
+JAVA_DIR=/usr/share/java
+LIB_CLASSPATH=$JAVA_DIR/scala-library.jar:.
+
+exec ${JAVACMD:=java} -Xmx256M -Xms16M \
+ -classpath $LIB_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ "$@"
diff --git a/debian/command-scripts/scalac b/debian/command-scripts/scalac
new file mode 100644
index 0000000000..bcfbbb62ac
--- /dev/null
+++ b/debian/command-scripts/scalac
@@ -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} -Xmx256M -Xms16M \
+ -classpath $SCALAC_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ scala.tools.nsc.Main "$@"
diff --git a/debian/command-scripts/scaladoc b/debian/command-scripts/scaladoc
new file mode 100644
index 0000000000..bd74c529ca
--- /dev/null
+++ b/debian/command-scripts/scaladoc
@@ -0,0 +1,5 @@
+#!/bin/sh
+JAVA_DIR=/usr/share/java
+SCALAC_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar
+
+exec ${JAVACMD:=java} -Xmx256M -Xms16M -classpath $SCALAC_CLASSPATH scala.tools.nsc.Main -doc "$@"
diff --git a/debian/command-scripts/scalaint b/debian/command-scripts/scalaint
new file mode 100644
index 0000000000..9b2c161432
--- /dev/null
+++ b/debian/command-scripts/scalaint
@@ -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} -Xmx256M -Xms16M \
+ -classpath $SCALAC_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ scala.tools.nsc.MainInterpreter "$@"
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000000..7813681f5b
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5 \ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000..a479aecea8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: scala
+Section: devel
+Priority: optional
+Maintainer: Lex Spoon <lex@debian.org>
+Standards-Version: 3.6.1
+Build-Depends: java-compiler, ant
+
+Package: scala
+Architecture: all
+Depends: scala-library, scala-dev
+Recommends: sbaz
+Description: The Scala programming language
+ Scala is a Java-compatible programming language with many
+ modern language features. It is Java-compatible in that
+ Scala and Java classes can directly reference each other,
+ subclass each other, and send messages to each other. It
+ includes modern language features such as closures,
+ pattern-matching, parametric types, and virtual type members.
+ .
+ This package depends on all of the basic packages a typical
+ Scala enthusiast would want.
+
+
+Package: scala-library
+Architecture: all
+Depends: java-virtual-machine
+Description: The Scala standard library
+ The Scala standard library. This is needed to run Scala programs.
+
+Package: scala-dev
+Architecture: all
+Depends: scala-library, java-virtual-machine
+Description: The Scala development tools
+ This package includes the various tools used to develop
+ code written in Scala. It includes a compiler (scalac),
+ a convenient command-runner (scala), an interpreter
+ (scalaint), and a source-scanning document generator (scaladoc).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000000..91e03f753c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+The original source of this package is http://scala.epfl.ch . The
+original authors are the members of the Programming Methods Laboratory
+(LAMP) of the Swiss Federal Institute of Technology (EPFL), Lausanne,
+Switzerland.
+
+This package was originally assembled by Lex Spoon (lex@debian.org).
+
+
+SCALA LICENSE
+
+Copyright (c) 2002-2006 EPFL, Lausanne, unless otherwise specified.
+All rights reserved.
+
+This software was developed by the Programming Methods Laboratory of the
+Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland.
+
+Permission to use, copy, modify, and distribute this software in source
+or binary form for any purpose with or without fee is hereby granted,
+provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of the EPFL nor the names of its contributors
+ may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000000..5e616b2fa6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+export DH_ALWAYS_EXCLUDE=.svn
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ ANT_OPTS=-Xmx512M ant dist
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_clean -A
+ rm -rf build dists
+ rm -f build-stamp
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs -A
+
+ install dists/latest/lib/scala-library.jar $(CURDIR)/debian/scala-library/usr/share/java/
+ install dists/latest/lib/scala-dbc.jar $(CURDIR)/debian/scala-library/usr/share/java/
+
+ install -m 644 dists/latest/lib/scala-compiler.jar $(CURDIR)/debian/scala-dev/usr/share/java/
+ install debian/command-scripts/* $(CURDIR)/debian/scala-dev/usr/bin/
+
+ dh_installdocs -A
+ dh_installman -pscala-dev docs/man/*/*
+ dh_installchangelogs -A
+ dh_compress -A
+ dh_fixperms -A
+
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdeb -A
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+
+binary: binary-indep
+
+.PHONY: build clean binary-indep binary install
diff --git a/debian/scala-dev.dirs b/debian/scala-dev.dirs
new file mode 100644
index 0000000000..17e8a2d271
--- /dev/null
+++ b/debian/scala-dev.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/java \ No newline at end of file
diff --git a/debian/scala-library.dirs b/debian/scala-library.dirs
new file mode 100644
index 0000000000..17e8a2d271
--- /dev/null
+++ b/debian/scala-library.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/java \ No newline at end of file