diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-12-17 17:48:14 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-12-17 17:48:14 +0000 |
commit | 8b8b477f806d6864903279b9fa441a24f3f7e97d (patch) | |
tree | 5c9d4b0fc1df800b4ffb1845a98f24cd3e9af465 /dev-lang | |
parent | amd64 stable (diff) | |
download | gentoo-2-8b8b477f806d6864903279b9fa441a24f3f7e97d.tar.gz gentoo-2-8b8b477f806d6864903279b9fa441a24f3f7e97d.tar.bz2 gentoo-2-8b8b477f806d6864903279b9fa441a24f3f7e97d.zip |
version bump
(Portage version: 2.1.3.16)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/scala/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/scala/files/digest-scala-2.6.0 | 3 | ||||
-rw-r--r-- | dev-lang/scala/files/scala-2.6.0-build.xml.patch | 79 | ||||
-rw-r--r-- | dev-lang/scala/scala-2.6.0.ebuild | 105 |
4 files changed, 194 insertions, 1 deletions
diff --git a/dev-lang/scala/ChangeLog b/dev-lang/scala/ChangeLog index c1531d5b62bc..92d8ff3a890d 100644 --- a/dev-lang/scala/ChangeLog +++ b/dev-lang/scala/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/scala # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.4 2007/06/18 19:30:26 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.5 2007/12/17 17:48:13 caleb Exp $ + +*scala-2.6.0 (17 Dec 2007) + + 17 Dec 2007; Caleb Tennis <caleb@gentoo.org> + +files/scala-2.6.0-build.xml.patch, +scala-2.6.0.ebuild: + version bump 18 Jun 2007; Vlastimil Babka <caster@gentoo.org> scala-2.5.1.ebuild: Increase thread stack size for compilation on x86 - was getting stack diff --git a/dev-lang/scala/files/digest-scala-2.6.0 b/dev-lang/scala/files/digest-scala-2.6.0 new file mode 100644 index 000000000000..66e557f5aa2c --- /dev/null +++ b/dev-lang/scala/files/digest-scala-2.6.0 @@ -0,0 +1,3 @@ +MD5 47493b733bf87d51fdb86428f62a422f scala-2.6.0-final-sources.tgz 25405348 +RMD160 56cfa9cd224c5599ab4a5c7fd81019581dcbf2e2 scala-2.6.0-final-sources.tgz 25405348 +SHA256 afb33197c51cc9f6bd0283a3bdafb3f0721cc0cfb855df5d3b9abb5914c669a3 scala-2.6.0-final-sources.tgz 25405348 diff --git a/dev-lang/scala/files/scala-2.6.0-build.xml.patch b/dev-lang/scala/files/scala-2.6.0-build.xml.patch new file mode 100644 index 000000000000..67a225329d62 --- /dev/null +++ b/dev-lang/scala/files/scala-2.6.0-build.xml.patch @@ -0,0 +1,79 @@ +--- build.xml.orig 2007-12-17 12:05:42.000000000 -0500 ++++ build.xml 2007-12-17 12:07:34.000000000 -0500 +@@ -90,11 +90,13 @@ + <!-- Setting-up Ant contrib tasks --> + <taskdef resource="net/sf/antcontrib/antlib.xml" + classpath="${ant-contrib.jar}"/> ++ <!-- + <fail message="External library ${ant-contrib.jar} requires the optional Ant tasks to be installed"> + <condition><not><and> + <available file="${ant.home}/lib/ant-nodeps.jar"/> + </and></not></condition> + </fail> ++ --> + </target> + + <!-- =========================================================================== +@@ -1052,7 +1054,7 @@ + DOCUMENTATION + ============================================================================ --> + +- <target name="docs" depends="setup.quick" ++ <target name="docs" depends="setup.quick" if="do.docs" + description="Generated the API for library sources"> + <mkdir dir="${api-lib.dir}"/> + <quickdoc +@@ -1070,7 +1072,7 @@ + </quickdoc> + </target> + +- <target name="docs.compiler" depends="setup.quick" ++ <target name="docs.compiler" depends="setup.quick" if="do.docs" + description="Generated the API for compiler sources"> + <mkdir dir="${api-comp.dir}"/> + <quickdoc +@@ -1155,7 +1157,7 @@ + + <target name="dist.patch" depends="init"> + <propertyfile file="${number.file}"> +- <entry key="version.patch" type="int" default="0" operation="+"/> ++ <entry key="version.patch" type="int" default="0"/> + </propertyfile> + <property file="${number.file}"/> + <property name="version.number" +@@ -1165,7 +1167,7 @@ + + <target name="dist.minor" depends="init"> + <propertyfile file="${number.file}"> +- <entry key="version.minor" type="int" default="0" operation="+"/> ++ <entry key="version.minor" type="int" default="0"/> + <entry key="version.patch" type="int" value="0"/> + </propertyfile> + <property file="${number.file}"/> +@@ -1339,7 +1341,7 @@ + <copy todir="${dist.current.dir}/doc/scala"> + <fileset dir="${docs.dir}" includes="README,LICENSE"/> + </copy> +- <copy todir="${dist.current.dir}/doc/scala/api"> ++ <copy todir="${dist.current.dir}/doc/scala/api" failonerror="false"> + <fileset dir="${api-lib.dir}"/> + </copy> + <copy todir="${dist.current.dir}/doc/scala/examples"> +@@ -1360,7 +1362,7 @@ + </target> + + <!-- Create the SBaz packages --> +- <target name="build.sbaz" depends="build.dist"> ++ <target name="build.sbaz" depends="build.dist" if="do.archive"> + <property name="sbaz.universe" value="http://www.scala-lang.org/downloads/packages"/> + <mkdir dir="${dist.dir}"/> + <!-- Create the Scala library package --> +@@ -1426,7 +1428,7 @@ + </quicksbaz> + </target> + +- <target name="build.archive" depends="build.dist"> ++ <target name="build.archive" depends="build.dist" if="do.archive"> + <tar + destfile="${dist.dir}/scala-${version.number}.tgz" + compression="gzip"> diff --git a/dev-lang/scala/scala-2.6.0.ebuild b/dev-lang/scala/scala-2.6.0.ebuild new file mode 100644 index 000000000000..8185a2c3e4e6 --- /dev/null +++ b/dev-lang/scala/scala-2.6.0.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.6.0.ebuild,v 1.1 2007/12/17 17:48:13 caleb Exp $ + +JAVA_PKG_IUSE="doc examples source" +WANT_ANT_TASKS="ant-nodeps" +inherit check-reqs java-pkg-2 java-ant-2 versionator + +MY_P="${P}-final" + +DESCRIPTION="The Scala Programming Language" +HOMEPAGE="http://www.scala-lang.org/" +SRC_URI="http://www.scala-lang.org/downloads/distrib/files/${MY_P}-sources.tgz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND=">=virtual/jdk-1.5 + dev-java/ant-contrib" +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + java-pkg-2_pkg_setup + + debug-print "Checking for sufficient physical RAM" + + if use amd64; then + CHECKREQS_MEMORY="1024" + else + CHECKREQS_MEMORY="512" + fi + check_reqs +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # remove check for ant-nodeps.jar in ant-core/lib; make docs opt-in; + # don't increase version; don't create dist archives + epatch "${FILESDIR}/${P}-build.xml.patch" + + cd lib || die + # other jars are needed for bootstrap + rm -v ant-contrib.jar || die + java-pkg_jar-from --build-only ant-contrib +} + +src_compile() { + if use amd64; then + export ANT_OPTS="-Xmx1024M -Xms1024M" + else + export ANT_OPTS="-Xmx512M -Xms512M -Xss1024k" + fi + local target + if [[ "$(get_version_component_range 3)" == "0" ]]; + then + target="minor" + else + target="patch" + fi + eant dist.${target} $(use_doc -Ddo.docs=true) +} + +src_test() { + bash ${S}/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/${MY_P} || 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 lib/*-src.jar + fi + + rm lib/*-src.jar + java-pkg_dojar lib/*.jar + + doman man/man1/*.1 || die + local docdir="doc/${PN}" + dodoc "${docdir}"/{LICENSE,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" +} |