Gentoo Archives: gentoo-commits

From: "Alistair Bush (ali_bush)" <ali_bush@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/scala: ChangeLog scala-2.7.5.ebuild scala-2.6.1-r1.ebuild scala-2.6.0.ebuild scala-2.6.1.ebuild
Date: Fri, 05 Jun 2009 08:45:20
Message-Id: E1MCV38-0002AN-2v@stork.gentoo.org
1 ali_bush 09/06/05 08:45:18
2
3 Modified: ChangeLog
4 Added: scala-2.7.5.ebuild
5 Removed: scala-2.6.1-r1.ebuild scala-2.6.0.ebuild
6 scala-2.6.1.ebuild
7 Log:
8 Version bump, clean and fix #269169
9 (Portage version: 2.1.6.13/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.17 dev-lang/scala/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.17&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.17&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/scala/ChangeLog?r1=1.16&r2=1.17
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v
21 retrieving revision 1.16
22 retrieving revision 1.17
23 diff -u -r1.16 -r1.17
24 --- ChangeLog 1 May 2009 07:44:39 -0000 1.16
25 +++ ChangeLog 5 Jun 2009 08:45:17 -0000 1.17
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-lang/scala
28 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.16 2009/05/01 07:44:39 ali_bush Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.17 2009/06/05 08:45:17 ali_bush Exp $
31 +
32 +*scala-2.7.5 (05 Jun 2009)
33 +
34 + 05 Jun 2009; Alistair Bush <ali_bush@g.o> -scala-2.6.0.ebuild,
35 + -scala-2.6.1.ebuild, -scala-2.6.1-r1.ebuild, +scala-2.7.5.ebuild:
36 + Version bump, clean and fix #269169
37
38 *scala-2.7.4-r1 (01 May 2009)
39
40
41
42
43 1.1 dev-lang/scala/scala-2.7.5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/scala/scala-2.7.5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/scala/scala-2.7.5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: scala-2.7.5.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $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 $
53
54 JAVA_PKG_IUSE="doc examples source"
55 WANT_ANT_TASKS="ant-nodeps"
56 inherit eutils check-reqs java-pkg-2 java-ant-2 versionator
57
58 MY_P="${P}.final-sources"
59
60 # creating the binary:
61 # JAVA_PKG_FORCE_VM="$available-1.5" USE="doc examples source" ebuild scala-*.ebuild compile
62 # cd $WORDKIR
63 # fix dist/latest link.
64 # tar -cjf $DISTDIR/scala-$PN-gentoo-binary.tar.bz2 ${MY_P}/dists ${MY_P}/docs/TODO
65
66 DESCRIPTION="The Scala Programming Language"
67 HOMEPAGE="http://www.scala-lang.org/"
68 SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz )
69 binary? ( mirror://gentoo/${P}-gentoo-binary.tar.bz2 )"
70 LICENSE="BSD"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="binary emacs"
74 # one fails with 1.7, two with 1.4 (blackdown)
75 RESTRICT="test"
76
77 DEPEND=">=virtual/jdk-1.5
78 !binary? (
79 dev-java/ant-contrib
80 dev-java/jline
81 )"
82 RDEPEND=">=virtual/jre-1.5
83 dev-java/jline
84 !dev-java/scala-bin"
85
86 PDEPEND="emacs? ( app-emacs/scala-mode )"
87
88 S="${WORKDIR}/${MY_P}"
89
90 pkg_setup() {
91 java-pkg-2_pkg_setup
92
93 if ! use binary; then
94 debug-print "Checking for sufficient physical RAM"
95
96 ewarn "This package can fail to build with memory allocation errors in some cases."
97 ewarn "If you are unable to build from sources, please try USE=binary"
98 ewarn "for this package. See bug #181390 for more information."
99 ebeep 3
100 epause 5
101
102 if use amd64; then
103 CHECKREQS_MEMORY="1024"
104 else
105 CHECKREQS_MEMORY="512"
106 fi
107
108 check_reqs
109 fi
110 }
111
112 src_unpack() {
113 unpack ${A}
114 cd "${S}"
115
116 if ! use binary; then
117
118 epatch "${FILESDIR}/${PN}-2.7.3-build.xml.patch"
119
120 cd lib || die
121 # other jars are needed for bootstrap
122 rm -v jline.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die
123 java-pkg_jar-from --build-only ant-contrib
124 java-pkg_jar-from jline
125 fi
126 }
127
128 src_compile() {
129 if ! use binary; then
130 eant all.clean dist.done
131 else
132 einfo "Skipping compilation, USE=binary is set."
133 fi
134 }
135
136 src_test() {
137 eant test.suite || die "Some tests aren't passed"
138 }
139
140 scala_launcher() {
141 local SCALADIR="/usr/share/${PN}"
142 local bcp="${SCALADIR}/lib/scala-library.jar"
143 java-pkg_dolauncher "${1}" --main "${2}" \
144 --java_args "-Xmx256M -Xms32M -Dscala.home=${SCALADIR} -Denv.emacs=${EMACS}"
145 }
146
147 src_install() {
148 cd dists/latest || die
149
150 local SCALADIR="/usr/share/${PN}/"
151
152 #sources are .scala so no use for java-pkg_dosrc
153 if use source; then
154 dodir "${SCALADIR}/src"
155 insinto "${SCALADIR}/src"
156 doins src/*-src.jar
157 fi
158
159 java-pkg_dojar lib/*.jar
160 use binary && java-pkg_register-dependency jline
161
162 doman man/man1/*.1 || die
163
164 local docdir="doc/${PN}-devel-docs"
165 dodoc doc/README ../../docs/TODO || die
166 if use doc; then
167 java-pkg_dojavadoc "${docdir}/api"
168 dohtml -r "${docdir}/tools" || die
169 fi
170
171 use examples && java-pkg_doexamples "${docdir}/examples"
172
173 scala_launcher fsc scala.tools.nsc.CompileClient
174 scala_launcher scala scala.tools.nsc.MainGenericRunner
175 scala_launcher scalac scala.tools.nsc.Main
176 scala_launcher scaladoc scala.tools.nsc.ScalaDoc
177 }