summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2009-04-30 19:29:39 +0000
committerAlistair Bush <ali_bush@gentoo.org>2009-04-30 19:29:39 +0000
commite5c60836dc07be0e002fb4bc441db5efd046e5c7 (patch)
treee1ef517988aad32a102a057cfb6c7107d8976cce /dev-lang/scala
parentstable ppc, bug 238625 (diff)
downloadhistorical-e5c60836dc07be0e002fb4bc441db5efd046e5c7.tar.gz
historical-e5c60836dc07be0e002fb4bc441db5efd046e5c7.tar.bz2
historical-e5c60836dc07be0e002fb4bc441db5efd046e5c7.zip
Version Bump.
Package-Manager: portage-2.1.6.11/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/scala')
-rw-r--r--dev-lang/scala/ChangeLog7
-rw-r--r--dev-lang/scala/Manifest5
-rw-r--r--dev-lang/scala/scala-2.7.4.ebuild127
3 files changed, 137 insertions, 2 deletions
diff --git a/dev-lang/scala/ChangeLog b/dev-lang/scala/ChangeLog
index 170b3991723d..0165e759d15c 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.14 2009/02/14 21:05:59 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.15 2009/04/30 19:29:39 ali_bush Exp $
+
+*scala-2.7.4 (30 Apr 2009)
+
+ 30 Apr 2009; Alistair Bush <ali_bush@gentoo.org> +scala-2.7.4.ebuild:
+ Version Bump to 2.7.4.
14 Feb 2009; Alistair Bush <ali_bush@gentoo.org> scala-2.7.3-r1.ebuild:
Add block on scala-bin. see #247401.
diff --git a/dev-lang/scala/Manifest b/dev-lang/scala/Manifest
index ce0e0e7dffdd..dd554c5ef35b 100644
--- a/dev-lang/scala/Manifest
+++ b/dev-lang/scala/Manifest
@@ -8,11 +8,14 @@ DIST scala-2.7.2-gentoo-binary.tar.bz2 12691171 RMD160 47f663b0916cb0ddb2e4626c3
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
+DIST scala-2.7.4-gentoo-binary.tar.bz2 13664162 RMD160 61e514e90d58ddd584c37ec96bb15c3095eb59be SHA1 cfa3a23b72eaf6f3a0f2172f5d17a60b9c36e8b3 SHA256 9c71d76d1f1908ec9733fbfde5d1b01f63dee9ee9c937a2c62df011e041f518e
+DIST scala-2.7.4.final-sources.tgz 29500833 RMD160 1305974e084135a7ab2597d2dd5e7724667d7659 SHA1 cec8a9ee65f8f48026db0a77f77182bc8b76986e SHA256 3c2c92af6a9994c18a38c3fa6e2c3e65de9c06bff9d59e8c1e63e45965c7ac11
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
EBUILD scala-2.7.3-r1.ebuild 3263 RMD160 c18ac152419a59bf22ab9aaf52b6a0513165b251 SHA1 257b0a5a1ca40f44a3fd2ca35a138879da4cdf7c SHA256 7f608b36f883df757ee8bcc4d35940bf29796565a3ed748ba83d29ea4d2209d4
EBUILD scala-2.7.3.ebuild 3386 RMD160 7b7f300e5a19d7bdb7d40d9603c8a721a7c8fcb5 SHA1 dee9e19706431d568d63813224abf415a5039e29 SHA256 7b40d7224933f9ca6046c076a3fc181524f8aed820db7d8e183836690a6ded01
-MISC ChangeLog 2745 RMD160 e5c7aea0079e574d8408bf8d0813af717b4b1444 SHA1 624c2891edfdf2441008ec9abeedfce856f4a6f2 SHA256 8673f10b6028fb3faf6619c3d558c7d929136468a4192896256e6b82d613e515
+EBUILD scala-2.7.4.ebuild 3296 RMD160 87f09f17c82a206cd180c6133963b4b23bd65767 SHA1 612ed29f4c8634492b24d1ca038127b854d8650b SHA256 0dc8c0bc6d60feae0148d08a93c845655f79267bf7d6acd8afc017a2acb6ba31
+MISC ChangeLog 2871 RMD160 002148b777b3d86010ad706e31bf53339709e281 SHA1 d34a142b4e86a105704e55fe67366efdb8c1585b SHA256 601971d1e07bf1a9a36da8a760ab59013d23066fc9282ccbba291dc2dce85c93
MISC metadata.xml 317 RMD160 c068d6e3d0806587dc6262bd8162709fbd18b25e SHA1 d68298cc52c736cb3a300197daa86cf6d4618656 SHA256 9ec2b0918811b14be0850dabea428b6b976e7eae70e97f281f85533d4e66bc94
diff --git a/dev-lang/scala/scala-2.7.4.ebuild b/dev-lang/scala/scala-2.7.4.ebuild
new file mode 100644
index 000000000000..15b0d49c7b3e
--- /dev/null
+++ b/dev-lang/scala/scala-2.7.4.ebuild
@@ -0,0 +1,127 @@
+# 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"
+}