summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/scala/ChangeLog7
-rw-r--r--dev-lang/scala/Manifest5
-rw-r--r--dev-lang/scala/scala-2.7.3.ebuild125
3 files changed, 135 insertions, 2 deletions
diff --git a/dev-lang/scala/ChangeLog b/dev-lang/scala/ChangeLog
index 394baadf4d99..da1c4bd117fc 100644
--- a/dev-lang/scala/ChangeLog
+++ b/dev-lang/scala/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/scala
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.9 2009/01/11 03:38:27 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.10 2009/01/18 04:16:30 ali_bush Exp $
+
+*scala-2.7.3 (18 Jan 2009)
+
+ 18 Jan 2009; Alistair Bush <ali_bush@gentoo.org> +scala-2.7.3.ebuild:
+ Version Bump
*scala-2.7.2 (11 Jan 2009)
diff --git a/dev-lang/scala/Manifest b/dev-lang/scala/Manifest
index cf9d48a02289..2f514d3fda4f 100644
--- a/dev-lang/scala/Manifest
+++ b/dev-lang/scala/Manifest
@@ -5,9 +5,12 @@ DIST scala-2.6.1-final-sources.tgz 26459400 RMD160 e7f2e12d52e1a371c92f46165a384
DIST scala-2.6.1-gentoo-binary.tar.bz2 9440893 RMD160 f958b094ba1202644022de2275ad57faa5ba2c0f SHA1 c02d2afec9e42e0fca3af8dc2f69ce12bac00d81 SHA256 12443ed9cd42dcc740ee27d2b69f7c91f0104c1893152579b47426284c1a79c0
DIST scala-2.7.2-gentoo-binary.tar.bz2 12691171 RMD160 47f663b0916cb0ddb2e4626c38ed199ab9826833 SHA1 15b86b3a581250dbd1e255f347bde06d328bf412 SHA256 28a6db309f17bb30e6fe2d494872266eea643cf037235fa2dc2bb184be86686e
DIST scala-2.7.2.final-sources.tgz 26906402 RMD160 2ead1c774c08d64d6ab6280278faf5f65fa269af SHA1 3d792210adaa1ebbb0c2c6b74bb3eb7dc32a2311 SHA256 46d1d3d58b7f2a4c0547a1dde53f099d0169072c3db491ebb9e3992aada7bb56
+DIST scala-2.7.3-gentoo-binary.tar.bz2 12803852 RMD160 f94cbdc7181af668aa20bf3784f419a0532cba9c SHA1 b967226c9bad0bf6667091996fd54ac565688d47 SHA256 46007b02af540cdce49f477dbf4d57cadc6604777e5ad39c51e60f67998cbc51
+DIST scala-2.7.3.final-sources.tgz 29451311 RMD160 67e1085a1eabf1b7743a7c3d07f96c0f9fa62493 SHA1 074e7fa344002725f5ed0201e061318150aa0d25 SHA256 124f11edca82bbb11c0718e293e8e34deda41f0ab31878e996b822107b311f68
EBUILD scala-2.6.0.ebuild 2623 RMD160 62a530badc945c153eaf86764fb06b0df166f24f SHA1 4ae3a01a7f6f5ded3b809cdb0cb2c29bd90041b6 SHA256 82132e0091ace8367d099cc65430d393061debc51304556cb7df49cc15aa3997
EBUILD scala-2.6.1-r1.ebuild 3552 RMD160 3d4befdc56f44258dbcca7e510c199122461e712 SHA1 c996a0e75108fbc32cba89e0fb829e290514616e SHA256 c0c7ff3138e54156b643d91c7e322b5566ad88ead65e2a731c1e0ab8acacd312
EBUILD scala-2.6.1.ebuild 3553 RMD160 20d71aa1d0811cca85808fd6b8c8ab1d564928d6 SHA1 a63affea5bb28e39963dd926d97128eea7998baa SHA256 176bfcf885824139129bb10fe7e9be7d5253dab5bbc382d7a443af60038448e6
EBUILD scala-2.7.2.ebuild 3279 RMD160 aa323193807d7e9fb3671db1a2927ceb02b99d15 SHA1 b91f5a57bb72bd30a4f04da58b89a4e05154a76d SHA256 331f78a7464a337648114c3c5b397f6a1ec4c4db81c90e4e694f8c0875441f8f
-MISC ChangeLog 2087 RMD160 753a05f3519a3da00b2d559ddc50440cb5bb9da1 SHA1 86f4b42371e60808ae8d09adfac66b57d32b7d9b SHA256 281cd15af79042f72e675fa713caa3b779b84365f6acecaf6820f7b539c9af91
+EBUILD scala-2.7.3.ebuild 3279 RMD160 331f009ef5901e954c8d9ac3c31001903a1d0936 SHA1 b261c375e1ae49127ff0255530090c9f76b4c7b1 SHA256 78a75d1967527ff87893d6aab137cb027081fb1ec99e20dee5173970951b6348
+MISC ChangeLog 2204 RMD160 539ae007dbe5b21b32207710d6efb794e4f35aae SHA1 5387d98b4c63d6354ae106f675abb99f698d687f SHA256 21970cc00eed41606a5899b5322335132363e76b9a18c998056ecd39db99d04b
MISC metadata.xml 317 RMD160 c068d6e3d0806587dc6262bd8162709fbd18b25e SHA1 d68298cc52c736cb3a300197daa86cf6d4618656 SHA256 9ec2b0918811b14be0850dabea428b6b976e7eae70e97f281f85533d4e66bc94
diff --git a/dev-lang/scala/scala-2.7.3.ebuild b/dev-lang/scala/scala-2.7.3.ebuild
new file mode 100644
index 000000000000..3024247df53e
--- /dev/null
+++ b/dev-lang/scala/scala-2.7.3.ebuild
@@ -0,0 +1,125 @@
+# 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.1 2009/01/18 04:16:30 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"
+}