summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2010-05-02 11:44:49 +0000
committerDirkjan Ochtman <djc@gentoo.org>2010-05-02 11:44:49 +0000
commit0b7e585da9cf5db809879e2b51d452f9b9b91228 (patch)
tree2b55e5f9e314bedcf72215e435ff93392c7997af /dev-lang/scala
parentRemove unused patches. (diff)
downloadgentoo-2-0b7e585da9cf5db809879e2b51d452f9b9b91228.tar.gz
gentoo-2-0b7e585da9cf5db809879e2b51d452f9b9b91228.tar.bz2
gentoo-2-0b7e585da9cf5db809879e2b51d452f9b9b91228.zip
Clean out old versions.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/scala')
-rw-r--r--dev-lang/scala/ChangeLog7
-rw-r--r--dev-lang/scala/scala-2.7.2.ebuild125
-rw-r--r--dev-lang/scala/scala-2.7.3-r1.ebuild132
-rw-r--r--dev-lang/scala/scala-2.7.3.ebuild131
-rw-r--r--dev-lang/scala/scala-2.7.4-r1.ebuild128
-rw-r--r--dev-lang/scala/scala-2.7.4.ebuild127
-rw-r--r--dev-lang/scala/scala-2.7.5.ebuild128
7 files changed, 6 insertions, 772 deletions
diff --git a/dev-lang/scala/ChangeLog b/dev-lang/scala/ChangeLog
index c9d5c37efb87..fef50a45eaea 100644
--- a/dev-lang/scala/ChangeLog
+++ b/dev-lang/scala/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/scala
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.20 2010/05/02 11:41:07 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.21 2010/05/02 11:44:49 djc Exp $
+
+ 02 May 2010; Dirkjan Ochtman <djc@gentoo.org> -scala-2.7.2.ebuild,
+ -scala-2.7.3.ebuild, -scala-2.7.3-r1.ebuild, -scala-2.7.4.ebuild,
+ -scala-2.7.4-r1.ebuild, -scala-2.7.5.ebuild:
+ Clean out old versions.
02 May 2010; Dirkjan Ochtman <djc@gentoo.org>
-files/scala-2.6.0-build.xml.patch, -files/scala-2.6.1-build.xml.patch:
diff --git a/dev-lang/scala/scala-2.7.2.ebuild b/dev-lang/scala/scala-2.7.2.ebuild
deleted file mode 100644
index 526f188a5f3e..000000000000
--- a/dev-lang/scala/scala-2.7.2.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.2.ebuild,v 1.1 2009/01/11 03:38:27 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- if use amd64; then
- export ANT_OPTS="-Xmx1024M -Xms1024M"
- else
- export ANT_OPTS="-Xmx512M -Xms512M -Xss1024k"
- fi
-
- #Try setting -Djava.flags="${ANT_OPTS}"
- eant clean docsclean dist.done $(use_doc docs)
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- bash test/scalatest || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" ${3} \
- --java_args "-Xmx256M -Xms16M -Xbootclasspath/a:${bcp} -Dscala.home=\\\"${SCALADIR}\\\" -Denv.classpath=\\\"\${CLASSPATH}\\\""
-}
-
-src_install() {
- cd dists/latest || die
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
- local docdir="doc/${PN}-devel-docs"
- dodoc "${docdir}/README" ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.Main "--pkg_args -doc"
-}
diff --git a/dev-lang/scala/scala-2.7.3-r1.ebuild b/dev-lang/scala/scala-2.7.3-r1.ebuild
deleted file mode 100644
index 9cdecd9661bd..000000000000
--- a/dev-lang/scala/scala-2.7.3-r1.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.3-r1.ebuild,v 1.4 2009/02/14 21:05:59 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# fix dist/latest link.
-# tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary emacs"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline
- !dev-java/scala-bin"
-
-PDEPEND="emacs? ( app-emacs/scala-mode )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
-
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
-
- epatch "${FILESDIR}/${P}-build.xml.patch"
-
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- eant all.clean dist.done
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- eant test.suite || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" \
- --java_args "-Xmx256M -Xms32M -Dscala.home=\\\"${SCALADIR}\\\" -Denv.emacs=\\\"\${EMACS}\\\""
-}
-
-src_install() {
- if use binary ; then
- cd dists/scala-2.7.3.r0-b20090118133557 || die
- else
- cd dists/latest || die
- fi
-
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
-
- local docdir="doc/${PN}-devel-docs"
- dodoc "${docdir}/README" ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.ScalaDoc
-}
diff --git a/dev-lang/scala/scala-2.7.3.ebuild b/dev-lang/scala/scala-2.7.3.ebuild
deleted file mode 100644
index 58c1039a950d..000000000000
--- a/dev-lang/scala/scala-2.7.3.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.3.ebuild,v 1.2 2009/02/05 08:13:53 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# fix dist/latest link.
-# tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- if use amd64; then
- export ANT_OPTS="-Xmx1024M -Xms1024M"
- else
- export ANT_OPTS="-Xmx512M -Xms512M -Xss1024k"
- fi
-
- #Try setting -Djava.flags="${ANT_OPTS}"
- eant clean docsclean dist.done $(use_doc docs)
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- bash test/scalatest || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" ${3} \
- --java_args "-Xmx256M -Xms16M -Xbootclasspath/a:${bcp} -Dscala.home=\\\"${SCALADIR}\\\" -Denv.classpath=\\\"\${CLASSPATH}\\\""
-}
-
-src_install() {
- if use binary ; then
- cd dists/scala-2.7.3.r0-b20090118133557 || die
- else
- cd dists/latest || die
- fi
-
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
- local docdir="doc/${PN}-devel-docs"
- dodoc "${docdir}/README" ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.Main "--pkg_args -doc"
-}
diff --git a/dev-lang/scala/scala-2.7.4-r1.ebuild b/dev-lang/scala/scala-2.7.4-r1.ebuild
deleted file mode 100644
index 4289b4510be5..000000000000
--- a/dev-lang/scala/scala-2.7.4-r1.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.4-r1.ebuild,v 1.1 2009/05/01 07:44:39 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# fix dist/latest link.
-# tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary emacs"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline
- !dev-java/scala-bin"
-
-PDEPEND="emacs? ( app-emacs/scala-mode )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
-
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
-
- epatch "${FILESDIR}/${PN}-2.7.3-build.xml.patch"
-
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- eant all.clean dist.done
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- eant test.suite || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" \
- --java_args "-Xmx256M -Xms32M -Dscala.home=\\\"${SCALADIR}\\\" -Denv.emacs=\\\"\${EMACS}\\\""
-}
-
-src_install() {
- cd dists/latest || die
-
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
-
- local docdir="doc/${PN}-devel-docs"
- dodoc doc/README ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.ScalaDoc
-}
diff --git a/dev-lang/scala/scala-2.7.4.ebuild b/dev-lang/scala/scala-2.7.4.ebuild
deleted file mode 100644
index 15b0d49c7b3e..000000000000
--- a/dev-lang/scala/scala-2.7.4.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.4.ebuild,v 1.1 2009/04/30 19:29:39 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# fix dist/latest link.
-# tar -cjf $DISTDIR/scala-$PV-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- if use amd64; then
- export ANT_OPTS="-Xmx1024M -Xms1024M"
- else
- export ANT_OPTS="-Xmx512M -Xms512M -Xss1024k"
- fi
-
- #Try setting -Djava.flags="${ANT_OPTS}"
- eant clean docsclean dist.done $(use_doc docs)
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- bash test/scalatest || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" ${3} \
- --java_args "-Xmx256M -Xms16M -Xbootclasspath/a:${bcp} -Dscala.home=\\\"${SCALADIR}\\\" -Denv.classpath=\\\"\${CLASSPATH}\\\""
-}
-
-src_install() {
- cd dists/latest || die
-
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
- local docdir="doc/${PN}-devel-docs"
- dodoc doc/README ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.Main "--pkg_args -doc"
-}
diff --git a/dev-lang/scala/scala-2.7.5.ebuild b/dev-lang/scala/scala-2.7.5.ebuild
deleted file mode 100644
index 97bac48958f8..000000000000
--- a/dev-lang/scala/scala-2.7.5.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.7.5.ebuild,v 1.1 2009/06/05 08:45:17 ali_bush Exp $
-
-JAVA_PKG_IUSE="doc examples source"
-WANT_ANT_TASKS="ant-nodeps"
-inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
-
-MY_P="${P}.final-sources"
-
-# creating the binary:
-# JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
-# cd $WORDKIR
-# fix dist/latest link.
-# tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
-
-DESCRIPTION="The Scala Programming Language"
-HOMEPAGE="http://www.scala-lang.org/"
-SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
- binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="binary emacs"
-# one fails with 1.7, two with 1.4 (blackdown)
-RESTRICT="test"
-
-DEPEND=">=virtual/jdk-1.5
- !binary? (
- dev-java/ant-contrib
- dev-java/jline
- )"
-RDEPEND=">=virtual/jre-1.5
- dev-java/jline
- !dev-java/scala-bin"
-
-PDEPEND="emacs? ( app-emacs/scala-mode )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if ! use binary; then
- debug-print "Checking for sufficient physical RAM"
-
- ewarn "This package can fail to build with memory allocation errors in some cases."
- ewarn "If you are unable to build from sources, please try USE=binary"
- ewarn "for this package. See bug #181390 for more information."
- ebeep 3
- epause 5
-
- if use amd64; then
- CHECKREQS_MEMORY="1024"
- else
- CHECKREQS_MEMORY="512"
- fi
-
- check_reqs
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use binary; then
-
- epatch "${FILESDIR}/${PN}-2.7.3-build.xml.patch"
-
- cd lib || die
- # other jars are needed for bootstrap
- rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
- java-pkg_jar-from --build-only ant-contrib
- java-pkg_jar-from jline
- fi
-}
-
-src_compile() {
- if ! use binary; then
- eant all.clean dist.done
- else
- einfo "Skipping compilation, USE=binary is set."
- fi
-}
-
-src_test() {
- eant test.suite || die "Some tests aren't passed"
-}
-
-scala_launcher() {
- local SCALADIR="/usr/share/${PN}"
- local bcp="${SCALADIR}/lib/scala-library.jar"
- java-pkg_dolauncher "${1}" --main "${2}" \
- --java_args "-Xmx256M -Xms32M -Dscala.home=${SCALADIR} -Denv.emacs=${EMACS}"
-}
-
-src_install() {
- cd dists/latest || die
-
- local SCALADIR="/usr/share/${PN}/"
-
- #sources are .scala so no use for java-pkg_dosrc
- if use source; then
- dodir "${SCALADIR}/src"
- insinto "${SCALADIR}/src"
- doins src/*-src.jar
- fi
-
- java-pkg_dojar lib/*.jar
- use binary && java-pkg_register-dependency jline
-
- doman man/man1/*.1 || die
-
- local docdir="doc/${PN}-devel-docs"
- dodoc doc/README ../../docs/TODO || die
- if use doc; then
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/tools" || die
- fi
-
- use examples && java-pkg_doexamples "${docdir}/examples"
-
- scala_launcher fsc scala.tools.nsc.CompileClient
- scala_launcher scala scala.tools.nsc.MainGenericRunner
- scala_launcher scalac scala.tools.nsc.Main
- scala_launcher scaladoc scala.tools.nsc.ScalaDoc
-}