1 |
gienah 14/10/04 12:14:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scala-2.11.2.ebuild |
5 |
Log: |
6 |
Bump scala to 2.11.2, fixes Bug 517984 - dev-lang/scala-2.11.2 version bump, thanks to Joel for reporting. |
7 |
|
8 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 618E971F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.38 dev-lang/scala/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.38&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.38&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?r1=1.37&r2=1.38 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v |
20 |
retrieving revision 1.37 |
21 |
retrieving revision 1.38 |
22 |
diff -u -r1.37 -r1.38 |
23 |
--- ChangeLog 8 Jul 2014 15:17:10 -0000 1.37 |
24 |
+++ ChangeLog 4 Oct 2014 12:14:50 -0000 1.38 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-lang/scala |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.37 2014/07/08 15:17:10 gienah Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.38 2014/10/04 12:14:50 gienah Exp $ |
30 |
+ |
31 |
+*scala-2.11.2 (04 Oct 2014) |
32 |
+ |
33 |
+ 04 Oct 2014; Mark Wright <gienah@g.o> +files/scala-2.11.2-no-git.patch, |
34 |
+ +scala-2.11.2.ebuild: |
35 |
+ Bump scala to 2.11.2, fixes Bug 517984 - dev-lang/scala-2.11.2 version bump, |
36 |
+ thanks to Joel for reporting. |
37 |
|
38 |
*scala-2.11.1 (08 Jul 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-lang/scala/scala-2.11.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.11.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.11.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: scala-2.11.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 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.11.2.ebuild,v 1.1 2014/10/04 12:14:50 gienah Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
JAVA_PKG_IUSE="doc source" |
57 |
JAVA_ANT_DISABLE_ANT_CORE_DEP="yes" |
58 |
EANT_TEST_TARGET="test.suite" |
59 |
|
60 |
inherit eutils check-reqs java-pkg-2 java-ant-2 versionator |
61 |
|
62 |
MY_P="${PN}-sources-${PV}" |
63 |
|
64 |
# creating the binary: |
65 |
# JAVA_PKG_FORCE_VM="$available-1.8" USE="doc source" ebuild scala-*.ebuild compile |
66 |
# cd $WORDKIR |
67 |
# tar -cjf scala-2.11.2-gentoo-binary.tar.bz2 scala-2.11.2/build/pack/bin \ |
68 |
# scala-2.11.2/build/pack/lib/ scala-2.11.2/build/pack/man \ |
69 |
# scala-2.11.2/src/actors/ scala-2.11.2/src/forkjoin/ \ |
70 |
# scala-2.11.2/src/library scala-2.11.2/src/library-aux/ \ |
71 |
# scala-2.11.2/src/reflect/ scala-2.11.2/docs/TODO \ |
72 |
# scala-2.11.2/doc/README scala-2.11.2/build/scaladoc/compiler |
73 |
|
74 |
# In the pullJarFiles function in tools/binary-repo-lib.sh it executes find commands |
75 |
# to search for .desired.sha1 files, which contain sha1 hashes that are appended |
76 |
# to ${BURI} along with the subdirectory and filename to form the list of jar files |
77 |
# listed in SRC_URI. The output of this find command can be hacked into the desired format: |
78 |
# find . -name \*.desired.sha1 -exec sed -e 's@\([0-9a-f]*\).*@\1@' {} \; -print |
79 |
# After editing it into the desired format: sort -t / -k 3 file |
80 |
|
81 |
BURI="http://repo.typesafe.com/typesafe/scala-sha-bootstrap/org/scala-lang/bootstrap" |
82 |
|
83 |
declare -a JURI=( \ |
84 |
"${BURI}/943cd5c8802b2a3a64a010efb86ec19bac142e40/lib/ant/ant-contrib.jar -> ${P}-ant-contrib.jar" \ |
85 |
"${BURI}/3fc1e35ca8c991fc3488548f7a276bd9053c179d/lib/ant/ant-dotnet-1.0.jar -> ${P}-ant-dotnet-1.0.jar" \ |
86 |
"${BURI}/7b456ca6b93900f96e58cc8371f03d90a9c1c8d1/lib/ant/ant.jar -> ${P}-ant.jar" \ |
87 |
"${BURI}/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar -> ${P}-maven-ant-tasks-2.1.1.jar" \ |
88 |
"${BURI}/2c61d6e9a912b3253194d5d6d3e1db7e2545ac4b/lib/ant/vizant.jar -> ${P}-vizant.jar" \ |
89 |
"${BURI}/ddd7d5398733c4fbbb8355c049e258d47af636cf/lib/forkjoin.jar -> ${P}-forkjoin.jar" \ |
90 |
"${BURI}/0392ecdeb306263c471ce51fa368223388b82b61/test/benchmarks/lib/jsr166_and_extra.jar -> ${P}-jsr166_and_extra.jar" \ |
91 |
"${BURI}/e737b123d31eede5594ceda07caafed1673ec472/test/files/codelib/code.jar -> ${P}-code.jar" \ |
92 |
"${BURI}/02fe2ed93766323a13f22c7a7e2ecdcd84259b6c/test/files/lib/annotations.jar -> ${P}-annotations.jar" \ |
93 |
"${BURI}/981392dbd1f727b152cd1c908c5fce60ad9d07f7/test/files/lib/enums.jar -> ${P}-enums.jar" \ |
94 |
"${BURI}/b1ec8a095cec4902b3609d74d274c04365c59c04/test/files/lib/genericNest.jar -> ${P}-genericNest.jar" \ |
95 |
"${BURI}/346d3dff4088839d6b4d163efa2892124039d216/test/files/lib/jsoup-1.3.1.jar -> ${P}-jsoup-1.3.1.jar" \ |
96 |
"${BURI}/3794ec22d9b27f2b179bd34e9b46db771b934ec3/test/files/lib/macro210.jar -> ${P}-macro210.jar" \ |
97 |
"${BURI}/be8454d5e7751b063ade201c225dcedefd252775/test/files/lib/methvsfield.jar -> ${P}-methvsfield.jar" \ |
98 |
"${BURI}/cd33e0a0ea249eb42363a2f8ba531186345ff68c/test/files/lib/nest.jar -> ${P}-nest.jar" \ |
99 |
"${BURI}/1b11ac773055c1e942c6b5eb4aabdf02292a7194/test/files/speclib/instrumented.jar -> ${P}-instrumented.jar" \ |
100 |
"${BURI}/a1883f4304d5aa65e1f6ee6aad5900c62dd81079/tools/push.jar -> ${P}-push.jar" \ |
101 |
) |
102 |
|
103 |
DESCRIPTION="The Scala Programming Language" |
104 |
HOMEPAGE="http://www.scala-lang.org/" |
105 |
SRC_URI="!binary? |
106 |
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz |
107 |
${JURI[@]} |
108 |
) |
109 |
binary? ( http://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.bz2 )" |
110 |
|
111 |
LICENSE="BSD" |
112 |
SLOT="0/${PV}" |
113 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
114 |
|
115 |
IUSE="binary emacs" |
116 |
|
117 |
COMMON_DEP="dev-java/ant-core:0 |
118 |
dev-java/bndlib:0 |
119 |
dev-java/hawtjni-runtime:0 |
120 |
dev-java/junit:4" |
121 |
|
122 |
DEPEND="${COMMON_DEP} |
123 |
java-virtuals/jdk-with-com-sun:0 |
124 |
!binary? ( |
125 |
>=virtual/jdk-1.6.0 |
126 |
<virtual/jdk-1.9.0 |
127 |
dev-java/ant-core:0 |
128 |
dev-java/ant-contrib:0 |
129 |
dev-java/ant-nodeps:0 |
130 |
media-gfx/graphviz |
131 |
) |
132 |
binary? ( |
133 |
>=virtual/jdk-1.7.0 |
134 |
<virtual/jdk-1.9.0 |
135 |
) |
136 |
app-arch/xz-utils:0" |
137 |
|
138 |
RDEPEND="${COMMON_DEP} |
139 |
>=virtual/jre-1.6 |
140 |
!dev-java/scala-bin:0" |
141 |
|
142 |
PDEPEND="emacs? ( app-emacs/scala-mode:0 )" |
143 |
|
144 |
S="${WORKDIR}/${P}" |
145 |
|
146 |
CHECKREQS_MEMORY="1532M" |
147 |
|
148 |
pkg_setup() { |
149 |
java-pkg-2_pkg_setup |
150 |
|
151 |
if ! use binary; then |
152 |
debug-print "Checking for sufficient physical RAM" |
153 |
|
154 |
ewarn "This package can fail to build with memory allocation errors in some cases." |
155 |
ewarn "If you are unable to build from sources, please try USE=binary" |
156 |
ewarn "for this package. See bug #181390 for more information." |
157 |
|
158 |
check-reqs_pkg_setup |
159 |
fi |
160 |
} |
161 |
|
162 |
src_unpack() { |
163 |
# Unpack tar files only. |
164 |
for f in ${A} ; do |
165 |
[[ ${f} == *".tar."* ]] && unpack ${f} |
166 |
done |
167 |
} |
168 |
|
169 |
java_prepare() { |
170 |
java-pkg_getjars ant-core,bndlib,hawtjni-runtime,junit-4 |
171 |
|
172 |
if ! use binary; then |
173 |
local a |
174 |
for a in "${JURI[@]}" |
175 |
do |
176 |
echo "${a}" |
177 |
local g="${a/* -> /}" |
178 |
echo "${g}" |
179 |
local j="${a/ -> */}" |
180 |
echo "${j}" |
181 |
cp -p "${DISTDIR}/${g}" "${S}/${j#${BURI}/*/}" || die |
182 |
done |
183 |
# gentoo patch (by gienah) to stop it calling git log in the build |
184 |
epatch "${FILESDIR}/${P}-no-git.patch" |
185 |
# Note: to bump scala, some things to try are: |
186 |
# 1. update all the sha1s in JURI |
187 |
# 2. try emerge scala. Check if it downloads more stuff in src_compile to ${WORDIR}/.m2 |
188 |
# 3. If it does download more stuff to ${WORDIR}/.m2, then there was some stuff to handle that in |
189 |
# the scala-2.10.3 ebuild. |
190 |
fi |
191 |
} |
192 |
|
193 |
src_compile() { |
194 |
if ! use binary; then |
195 |
#unset ANT_OPTS as this is set in the build.xml |
196 |
#sets -X type variables which might come back to bite me |
197 |
unset ANT_OPTS |
198 |
|
199 |
# reported in bugzilla that multiple launches use less resources |
200 |
# https://bugs.gentoo.org/show_bug.cgi?id=282023 |
201 |
eant all.clean |
202 |
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \ |
203 |
fastdist-opt |
204 |
if use doc; then |
205 |
# The separate build for doc is to workaround this problem that occurs |
206 |
# with one "fastdist docscomp" build (still fails with MaxPermSize=384M) |
207 |
# java.lang.OutOfMemoryError: PermGen space |
208 |
eant -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \ |
209 |
docscomp |
210 |
fi |
211 |
else |
212 |
einfo "Skipping compilation, USE=binary is set." |
213 |
fi |
214 |
} |
215 |
|
216 |
src_test() { |
217 |
java-pkg-2_src_test |
218 |
} |
219 |
|
220 |
src_install() { |
221 |
pushd build/pack || die |
222 |
local SCALADIR="/usr/share/${PN}/" |
223 |
exeinto "${SCALADIR}/bin" |
224 |
doexe $(find bin/ -type f ! -iname '*.bat') |
225 |
dodir "${SCALADIR}/lib" |
226 |
insinto "${SCALADIR}/lib" |
227 |
local maj_min=$(get_version_component_range 2) |
228 |
pushd lib || die |
229 |
for j in *.jar; do |
230 |
local i="${j%${maj_min}*}" |
231 |
newins "${j}" "${i}" |
232 |
java-pkg_regjar "${ED}${SCALADIR}/lib/${i}" |
233 |
done |
234 |
popd |
235 |
|
236 |
dodir /usr/bin |
237 |
for b in $(find bin/ -type f ! -iname '*.bat'); do |
238 |
local _name=$(basename "${b}") |
239 |
dosym "${SCALADIR}/bin/${_name}" "/usr/bin/${_name}" |
240 |
done |
241 |
|
242 |
doman man/man1/*.1 |
243 |
popd |
244 |
|
245 |
#sources are .scala so no use for java-pkg_dosrc |
246 |
pushd src || die |
247 |
if use source; then |
248 |
dodir "${SCALADIR}/src" |
249 |
insinto "${SCALADIR}/src" |
250 |
doins -r actors forkjoin library library-aux reflect |
251 |
fi |
252 |
popd |
253 |
|
254 |
local docdir="build/scaladoc/compiler" |
255 |
dodoc docs/TODO doc/README |
256 |
if use doc; then |
257 |
dohtml -r "${docdir}" |
258 |
fi |
259 |
} |