1 |
ali_bush 11/04/29 10:35:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scala-2.8.1.ebuild |
5 |
Log: |
6 |
Version Bump. |
7 |
|
8 |
(Portage version: 2.1.9.46/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.22 dev-lang/scala/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.22&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.22&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?r1=1.21&r2=1.22 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v |
20 |
retrieving revision 1.21 |
21 |
retrieving revision 1.22 |
22 |
diff -u -r1.21 -r1.22 |
23 |
--- ChangeLog 2 May 2010 11:44:49 -0000 1.21 |
24 |
+++ ChangeLog 29 Apr 2011 10:35:26 -0000 1.22 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-lang/scala |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.21 2010/05/02 11:44:49 djc Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.22 2011/04/29 10:35:26 ali_bush Exp $ |
31 |
+ |
32 |
+*scala-2.8.1 (29 Apr 2011) |
33 |
+ |
34 |
+ 29 Apr 2011; Alistair Bush <ali_bush@g.o> +scala-2.8.1.ebuild: |
35 |
+ Version Bump. |
36 |
|
37 |
02 May 2010; Dirkjan Ochtman <djc@g.o> -scala-2.7.2.ebuild, |
38 |
-scala-2.7.3.ebuild, -scala-2.7.3-r1.ebuild, -scala-2.7.4.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/scala/scala-2.8.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.8.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.8.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: scala-2.8.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.8.1.ebuild,v 1.1 2011/04/29 10:35:26 ali_bush Exp $ |
52 |
|
53 |
EAPI="3" |
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 |
DESCRIPTION="The Scala Programming Language" |
61 |
HOMEPAGE="http://www.scala-lang.org/" |
62 |
SRC_URI="!binary? ( http://www.scala-lang.org/downloads/distrib/files/${MY_P}.tgz ) |
63 |
binary? ( http://dev.gentoo.org/~ali_bush/${P}-gentoo-binary.tar.bz2 )" |
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="binary emacs" |
68 |
# one fails with 1.7, two with 1.4 (blackdown) |
69 |
#RESTRICT="test" |
70 |
|
71 |
DEPEND=">=virtual/jdk-1.6 |
72 |
java-virtuals/jdk-with-com-sun |
73 |
!binary? ( |
74 |
dev-java/ant-contrib:0 |
75 |
dev-java/jline:0 |
76 |
)" |
77 |
RDEPEND=">=virtual/jre-1.6 |
78 |
dev-java/jline:0 |
79 |
!dev-java/scala-bin" |
80 |
|
81 |
PDEPEND="emacs? ( app-emacs/scala-mode )" |
82 |
|
83 |
S="${WORKDIR}/${MY_P}" |
84 |
|
85 |
pkg_setup() { |
86 |
java-pkg-2_pkg_setup |
87 |
|
88 |
if ! use binary; then |
89 |
debug-print "Checking for sufficient physical RAM" |
90 |
|
91 |
ewarn "This package can fail to build with memory allocation errors in some cases." |
92 |
ewarn "If you are unable to build from sources, please try USE=binary" |
93 |
ewarn "for this package. See bug #181390 for more information." |
94 |
ebeep 3 |
95 |
epause 5 |
96 |
|
97 |
if use amd64; then |
98 |
CHECKREQS_MEMORY="1024" |
99 |
else |
100 |
CHECKREQS_MEMORY="512" |
101 |
fi |
102 |
|
103 |
check_reqs |
104 |
fi |
105 |
} |
106 |
|
107 |
java_prepare() { |
108 |
if ! use binary; then |
109 |
pushd lib &> /dev/null |
110 |
# other jars are needed for bootstrap |
111 |
#rm -v jline.jar ant/ant-contrib.jar #cldcapi10.jar midpapi10.jar msil.jar *.dll || die |
112 |
rm -v ant/ant-contrib.jar || die |
113 |
java-pkg_jar-from --into ant --build-only ant-contrib |
114 |
popd &> /dev/null |
115 |
java-pkg_jar-from jline |
116 |
fi |
117 |
} |
118 |
|
119 |
src_compile() { |
120 |
if ! use binary; then |
121 |
# reported in bugzilla that multiple launches use less resources |
122 |
# https://bugs.gentoo.org/show_bug.cgi?id=282023 |
123 |
eant all.clean |
124 |
eant -Djavac.args="-encoding UTF-8" -Djava6.home=${JAVA_HOME} \ |
125 |
newlibs newforkjoin build-opt |
126 |
eant dist.done |
127 |
|
128 |
#TODO figure out why build doesn't work with jline. |
129 |
cp jline.jar dists/latest/lib/ || die |
130 |
cp jline.jar lib/ || die |
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 |
|
161 |
doman man/man1/*.1 || die |
162 |
|
163 |
#docs and examples are not contained in the binary tgz anymore |
164 |
if ! use binary; then |
165 |
local docdir="doc/${PN}-devel-docs" |
166 |
dodoc doc/README ../../docs/TODO || die |
167 |
if use doc; then |
168 |
java-pkg_dojavadoc "${docdir}/api" |
169 |
dohtml -r "${docdir}/tools" || die |
170 |
fi |
171 |
|
172 |
use examples && java-pkg_doexamples "${docdir}/examples" |
173 |
fi |
174 |
|
175 |
scala_launcher fsc scala.tools.nsc.CompileClient |
176 |
scala_launcher scala scala.tools.nsc.MainGenericRunner |
177 |
scala_launcher scalac scala.tools.nsc.Main |
178 |
scala_launcher scaladoc scala.tools.nsc.ScalaDoc |
179 |
scala_launcher scalap scala.tools.scalap.Main |
180 |
} |