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-2.7.7.dfsg/debian/clean
@@ -0,0 +1,3 @@
+src/actors/scala/actors/ThreadPoolScheduler.scala
+dists
+build
--- scala-2.7.7.dfsg.orig/debian/watch
+++ scala-2.7.7.dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="dversionmangle=s/\.dfsg[\.0-9]*$//" \
+http://www.scala-lang.org/downloads \
+ /downloads/distrib/files/scala-(.*)\.final-sources\.tgz
--- scala-2.7.7.dfsg.orig/debian/changelog
+++ scala-2.7.7.dfsg/debian/changelog
@@ -0,0 +1,187 @@
+scala (2.7.7.dfsg-4ubuntu1) lucid; urgency=low
+
+ * New version from Debian (LP: #545975)
+ * debian/rules: reduce max memory to 512 by modifying Java params to avoid a
+ "Cannot allocate memory" error during build with less than 2Gb
+
+ -- Fabrice Coutadeur Sun, 28 Mar 2010 19:54:55 +0200
+
+scala (2.7.7.dfsg-4) unstable; urgency=low
+
+ * Fix scaladoc script to use $CLASSPATH variable
+
+ -- Mehdi Dogguy Tue, 23 Mar 2010 13:20:41 +0100
+
+scala (2.7.7.dfsg-3) unstable; urgency=low
+
+ * Fix scalac script (use $CLASSPATH variable), (LP: #544481)
+ * Adjust the JRE/JVM depends (Closes: #573384)
+
+ -- Mehdi Dogguy Tue, 23 Mar 2010 12:53:15 +0100
+
+scala (2.7.7.dfsg-2) unstable; urgency=low
+
+ * Fix scaladoc script (LP: #521093)
+
+ -- Mehdi Dogguy Fri, 12 Feb 2010 21:15:06 +0100
+
+scala (2.7.7.dfsg-1) unstable; urgency=low
+
+ * New upstream release (Closes: #551454).
+
+ -- Mehdi Dogguy Sat, 31 Oct 2009 21:16:38 +0100
+
+scala (2.7.5.dfsg-2) unstable; urgency=low
+
+ [ Min Huang ]
+ * Do not compress script.js (Closes: #545051).
+
+ [ Mehdi Dogguy ]
+ * Use my Debian address.
+ * Build-depend on debhelper 7.0.50 since we use overrides.
+
+ -- Min Huang Sun, 06 Sep 2009 12:54:53 +0200
+
+scala (2.7.5.dfsg-1) unstable; urgency=low
+
+ * New Upstream Version
+ * Remove Lex Spoon from uploaders (retired), closes: #527957.
+ * Shorten debian/rules: using new features of debhelper 7
+
+ -- Mehdi Dogguy Tue, 02 Jun 2009 19:45:47 +0200
+
+scala (2.7.4.dfsg-1) unstable; urgency=low
+
+ * New Upstream Version
+ * Add a watch file.
+ * Add ${misc:Depends} as a dependency, thanks lintian.
+ * Triggering doc-base.
+ * Moving doc to /usr/share/doc/scala-doc/html/.
+ * Bump standards version to 3.8.1.
+ * Scala now depends on scala-library ${Source:Version}
+ * Remove windows DLLs from upstream sources.
+
+ -- Mehdi Dogguy Fri, 24 Apr 2009 17:59:12 +0200
+
+scala (2.7.3-3) unstable; urgency=low
+
+ * Adding « java-virtual-machine » as an alternative runtime dependency
+ (Closes: #464552).
+ * Switch arch back to « all ».
+
+ -- Mehdi Dogguy Mon, 02 Feb 2009 17:36:22 +0100
+
+scala (2.7.3-2) unstable; urgency=low
+
+ * Add Homepage field in debian/control
+ * Fix debian/rules to execute binary-arch target.
+ * Scala and Scala-library depend now on openjdk6-jre as an alternative
+ to the virtual package java-virtual-machine, thanks Lintian.
+
+ -- Mehdi Dogguy Tue, 27 Jan 2009 11:20:34 +0100
+
+scala (2.7.3-1) unstable; urgency=low
+
+ [ Min Huang ]
+ * New upstream release
+ * Crash with OpenJDK installed is fixed (Closes: #505913)
+
+ [ Mehdi Dogguy ]
+ * Set Maintainer to "Debian Scala Maintainers" mailing-list and Min
+ as Uploader.
+ * Restrict "Architecture" field to build only where the java compiler
+ exists (Closes: #483412).
+
+ -- Lex Spoon Sat, 24 Jan 2009 20:32:34 -0500
+
+scala (2.7.2-2) unstable; urgency=low
+
+ * Recompiling to upload on Min Huang's behalf.
+
+ -- Lex Spoon Sun, 30 Nov 2008 15:52:21 -0500
+
+scala (2.7.2-1) unstable; urgency=low
+
+ [ Min Huang ]
+ * New upstream release.
+ * Fixed out of memory error while building (Closes: #443040).
+ * The pwd is added to the classpath when running scala. Also, any
+ command line arguments are passed to scala (Closes: #470667).
+
+ [ Mehdi Dogguy ]
+ * Using debhelper 7
+ * Bump standards version to 3.8.0, no changes needed.
+ * Relax build dependency by removing gcj from it.
+ * Add a scala-doc package which install API html files.
+
+ -- Mehdi Dogguy Sat, 15 Nov 2008 12:31:10 +0100
+
+scala (2.7.1-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Min Huang Fri, 22 Aug 2008 00:57:33 -0700
+
+scala (2.6.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Lex Spoon Fri, 14 Sep 2007 15:22:05 +0100
+
+scala (2.5.0-1) unstable; urgency=low
+
+ * New upstream release
+ * Depend only on java-gcj-compat, not java-gcj-compat-dev
+
+ -- Lex Spoon Tue, 22 May 2007 16:51:47 +0200
+
+scala (2.4.0-1) unstable; urgency=low
+
+ * New upstream version.
+
+ * Deleting all mention of the Sun JVM, just because some
+ DD's find it bothersome.
+
+ * Deleted mention of JDK5-specific classes, while awaiting
+ the Sun JVM to become open source. (Closes: #409785)
+
+ * Added java-gcj-compat-dev as an install dependency. (Closes: #408353)
+
+ -- Lex Spoon Sun, 25 Mar 2007 11:56:18 +0200
+
+scala (2.3.2-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Lex Spoon Fri, 19 Jan 2007 14:45:51 +0100
+
+scala (2.3.0-1) unstable; urgency=low
+
+ * New upstream version
+ * Added a Java compiler as a build-dependency
+
+ -- Lex Spoon Fri, 24 Nov 2006 16:02:09 +0100
+
+scala (2.2.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Lex Spoon Mon, 30 Oct 2006 21:35:10 -0500
+
+scala (2.1.5-2) unstable; urgency=low
+
+ * Rearranged to have three packages instead of four.
+
+ -- Lex Spoon Wed, 28 Jun 2006 17:16:02 +0200
+
+scala (2.1.5-1) unstable; urgency=low
+
+ * upstream update.
+
+ -- Lex Spoon Sun, 9 Jun 2006 14:45:26 +0100
+
+scala (2.1.1-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Lex Spoon Sun, 26 Mar 2006 14:45:26 +0100
--- scala-2.7.7.dfsg.orig/debian/scala.dirs
+++ scala-2.7.7.dfsg/debian/scala.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/java
--- scala-2.7.7.dfsg.orig/debian/scala-doc.doc-base
+++ scala-2.7.7.dfsg/debian/scala-doc.doc-base
@@ -0,0 +1,9 @@
+Document: scala-doc
+Title: Scala API Documentation
+Author: The Scala Development Team
+Abstract: This manual describes the API of the programming language Scala.
+Section: Programming/Scala
+
+Format: HTML
+Index: /usr/share/doc/scala-doc/html/index.html
+Files: /usr/share/doc/scala-doc/html/*
--- scala-2.7.7.dfsg.orig/debian/scala.manpages
+++ scala-2.7.7.dfsg/debian/scala.manpages
@@ -0,0 +1 @@
+simpbuild/manual/man1/*.1
--- scala-2.7.7.dfsg.orig/debian/copyright
+++ scala-2.7.7.dfsg/debian/copyright
@@ -0,0 +1,43 @@
+The original source of this package is http://www.scala-lang.org . 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-2008 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.
--- scala-2.7.7.dfsg.orig/debian/compat
+++ scala-2.7.7.dfsg/debian/compat
@@ -0,0 +1 @@
+7
--- scala-2.7.7.dfsg.orig/debian/README.Debian
+++ scala-2.7.7.dfsg/debian/README.Debian
@@ -0,0 +1,6 @@
+The source code to this package was downloaded from:
+
+http://lampsvn.epfl.ch/trac/scala/browser/scala/tags
+
+This directory includes a tag for each release of the Scala
+development tools.
--- scala-2.7.7.dfsg.orig/debian/scala-doc.install
+++ scala-2.7.7.dfsg/debian/scala-doc.install
@@ -0,0 +1 @@
+simpbuild/api/library/scala/api/* usr/share/doc/scala-doc/html/
--- scala-2.7.7.dfsg.orig/debian/rules
+++ scala-2.7.7.dfsg/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+override_dh_auto_build:
+ ANT_OPTS="-Xmx512M -Xss64M" ant -f debian/simpbuild.xml build docs dist
+
+override_dh_auto_clean:
+ rm -rf simpbuild
+
+override_dh_compress:
+ dh_compress -Xscript.js
+
+%:
+ dh $@
--- scala-2.7.7.dfsg.orig/debian/gbp.conf
+++ scala-2.7.7.dfsg/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+pristine-tar = True
+filter-pristine-tar = True
+filter = [
+ "lib/mscorlib.dll",
+ "lib/scalaruntime.dll"
+ ]
--- scala-2.7.7.dfsg.orig/debian/scala-library.dirs
+++ scala-2.7.7.dfsg/debian/scala-library.dirs
@@ -0,0 +1 @@
+usr/share/java
--- scala-2.7.7.dfsg.orig/debian/scala-library.install
+++ scala-2.7.7.dfsg/debian/scala-library.install
@@ -0,0 +1,2 @@
+simpbuild/lib/scala-library.jar usr/share/java/
+simpbuild/lib/scala-dbc.jar usr/share/java/
--- scala-2.7.7.dfsg.orig/debian/control
+++ scala-2.7.7.dfsg/debian/control
@@ -0,0 +1,42 @@
+Source: scala
+Section: devel
+Priority: optional
+Maintainer: Ubuntu Developers
+XSBC-Original-Maintainer: Debian Scala Maintainers
+Uploaders: Mehdi Dogguy , Min Huang
+DM-Upload-Allowed: yes
+Standards-Version: 3.8.1
+Build-Depends: openjdk-6-jdk | java-compiler, ant, debhelper (>= 7.0.50)
+Homepage: http://www.scala-lang.org/
+Vcs-Browser: http://git.debian.org/?p=pkg-scala/packages/scala.git
+Vcs-Git: git://git.debian.org/git/pkg-scala/packages/scala.git
+
+Package: scala
+Architecture: all
+Depends: scala-library (= ${source:Version}), openjdk-6-jre | java6-runtime, ${misc:Depends}
+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 and
+ subclass each other with no glue code needed. It
+ includes modern language features such as closures,
+ pattern-matching, parametric types, and virtual type members.
+ .
+ This package includes the various tools used to develop
+ code written in Scala. It includes a compiler (scalac),
+ an interpreter and script runner (scala), the offline
+ compiler (fsc), and source-scanning documentation
+ generator (scaladoc).
+
+Package: scala-library
+Architecture: all
+Depends: openjdk-6-jre | java6-runtime, ${misc:Depends}
+Description: The Scala standard library
+ This run-time library is needed to run Scala programs.
+
+Package: scala-doc
+Architecture: all
+Depends: ${misc:Depends}
+Section: doc
+Description: The Scala API documentation
+ This is the API documentation for Scala.
--- scala-2.7.7.dfsg.orig/debian/scala.install
+++ scala-2.7.7.dfsg/debian/scala.install
@@ -0,0 +1,2 @@
+simpbuild/lib/scala-compiler.jar usr/share/java/
+debian/command-scripts/* usr/bin/
--- scala-2.7.7.dfsg.orig/debian/README
+++ scala-2.7.7.dfsg/debian/README
@@ -0,0 +1,2 @@
+This directory holds files used to build *.deb packages of Scala
+for the Debian Linux distribution (http://www.debian.org).
--- scala-2.7.7.dfsg.orig/debian/command-scripts/scaladoc
+++ scala-2.7.7.dfsg/debian/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 "$@"
--- scala-2.7.7.dfsg.orig/debian/command-scripts/scala
+++ scala-2.7.7.dfsg/debian/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 \
+ "$@"
--- scala-2.7.7.dfsg.orig/debian/command-scripts/scalac
+++ scala-2.7.7.dfsg/debian/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 "$@"
--- scala-2.7.7.dfsg.orig/debian/command-scripts/fsc
+++ scala-2.7.7.dfsg/debian/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 "$@"