1 |
gienah 13/08/30 13:55:11 |
2 |
|
3 |
Modified: scala-2.10.2.ebuild ChangeLog |
4 |
Log: |
5 |
Fix: bug 482192 - thanks to Christian Strahl, Mike Limansky and Sumit Khanna for reporting; bug 482260 - thanks to Christoph Lange for reporting; bug 482286 |
6 |
|
7 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 618E971F) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 dev-lang/scala/scala-2.10.2.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: scala-2.10.2.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- scala-2.10.2.ebuild 22 Aug 2013 10:05:56 -0000 1.1 |
23 |
+++ scala-2.10.2.ebuild 30 Aug 2013 13:55:11 -0000 1.2 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2013 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild,v 1.1 2013/08/22 10:05:56 gienah Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/scala-2.10.2.ebuild,v 1.2 2013/08/30 13:55:11 gienah Exp $ |
29 |
|
30 |
EAPI="5" |
31 |
JAVA_PKG_IUSE="doc examples source" |
32 |
@@ -53,6 +53,7 @@ |
33 |
SRC_URI="!binary? |
34 |
( https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz |
35 |
${JURI[@]} |
36 |
+ http://dev.gentoo.org/~gienah/snapshots/${P}-maven-deps.tar.gz |
37 |
)" |
38 |
# binary? ( http://dev.gentoo.org/~ali_bush/distfiles/${P}-gentoo-binary.tar.bz2 )" |
39 |
LICENSE="BSD" |
40 |
@@ -61,7 +62,9 @@ |
41 |
IUSE="binary emacs" |
42 |
|
43 |
COMMON_DEP="dev-java/ant-core |
44 |
- dev-java/hawtjni-runtime" |
45 |
+ dev-java/bndlib |
46 |
+ dev-java/hawtjni-runtime |
47 |
+ dev-java/junit:4" |
48 |
DEPEND="${COMMON_DEP} |
49 |
>=virtual/jdk-1.6.0 |
50 |
<virtual/jdk-1.8.0 |
51 |
@@ -78,7 +81,7 @@ |
52 |
|
53 |
S="${WORKDIR}/${P}" |
54 |
|
55 |
-LIBRARY_PKGS="ant-core,hawtjni-runtime" |
56 |
+LIBRARY_PKGS="ant-core,bndlib,hawtjni-runtime,junit-4" |
57 |
|
58 |
CHECKREQS_MEMORY="1532M" |
59 |
|
60 |
@@ -100,12 +103,18 @@ |
61 |
unpack ${A} |
62 |
else |
63 |
unpack "${P}.tar.gz" |
64 |
+ unpack "${P}-maven-deps.tar.gz" |
65 |
fi |
66 |
} |
67 |
|
68 |
java_prepare() { |
69 |
java-pkg_getjars ${LIBRARY_PKGS} |
70 |
if ! use binary; then |
71 |
+ local j |
72 |
+ for j in "${JURI[@]}" |
73 |
+ do |
74 |
+ cp -p "${DISTDIR}/${j##*/}" "${S}/${j#${BURI}/*/}" || die |
75 |
+ done |
76 |
# gentoo patch (by gienah) to stop it calling git log in the build |
77 |
epatch "${FILESDIR}/${PN}-2.10.2-no-git.patch" |
78 |
if has_version ">=virtual/jdk-1.7.0"; then |
79 |
@@ -114,11 +123,61 @@ |
80 |
fi |
81 |
# https://issues.scala-lang.org/browse/SI-7455 |
82 |
epatch "${FILESDIR}/${PN}-2.10.2-jdk-1.7-swing-SI-7455.patch" |
83 |
- local j |
84 |
- for j in "${JURI[@]}" |
85 |
+ # Note: to bump scala, some things to try are: |
86 |
+ # 1. update all the sha1s in JURI |
87 |
+ # 2. comment out applying the maven-deps patch and all the stuff here up to and including the sed of build.xml |
88 |
+ # 3. try emerge scala, it will likely download more stuff in src_compile to ${WORDIR}/.m2 |
89 |
+ # 4. tar up the stuff in ${WORDIR}/.m2 and change the ${P}-maven-deps.tar.gz in SRC_URI to point to it. |
90 |
+ # 5. uncomment the maven-deps patch apply and all the stuff up to and including the sed of build.xml |
91 |
+ # 6. the hash in ${P}-no-git.patch should be updated by searching for hash matching the scala release |
92 |
+ # tag, so that the source code hyper-links in the scala documentation will point to the correct version of |
93 |
+ # the source code. |
94 |
+ # Bug 482192 |
95 |
+ epatch "${FILESDIR}/${PN}-2.10.2-maven-deps.patch" |
96 |
+ # we have $(java-config -p bndlib) in portage, but not bnd. |
97 |
+ local bnd_classpath="" |
98 |
+ for i in $(find "${WORKDIR}/.m2/repository/biz/aQute/bnd" -type f -name *.jar -print) |
99 |
do |
100 |
- cp -p "${DISTDIR}/${j##*/}" "${S}/${j#${BURI}/*/}" || die |
101 |
+ if [ -z "${bnd_classpath}" ] |
102 |
+ then |
103 |
+ bnd_classpath="${i}" |
104 |
+ else |
105 |
+ bnd_classpath="${bnd_classpath}:${i}" |
106 |
+ fi |
107 |
done |
108 |
+ bnd_classpath="${bnd_classpath}:$(java-config -p bndlib)" |
109 |
+ |
110 |
+ # pax runner appears to only be used in the tests |
111 |
+ local paxrunner_classpath="" |
112 |
+ for i in $(find "${WORKDIR}/.m2/repository/org/ops4j/" -type f -name *.jar -print) |
113 |
+ do |
114 |
+ if [ -z "${paxrunner_classpath}" ] |
115 |
+ then |
116 |
+ paxrunner_classpath="${i}" |
117 |
+ else |
118 |
+ paxrunner_classpath="${paxrunner_classpath}:${i}" |
119 |
+ fi |
120 |
+ done |
121 |
+ paxrunner_classpath="${paxrunner_classpath}:$(java-config -p junit-4)" |
122 |
+ |
123 |
+ # DiffUtils does not appear to be in portage. It is placed in ${partest.extras.classpath} and |
124 |
+ # copied to ${build-pack.dir}/lib in ${PN}-2.10.2-maven-deps.patch. |
125 |
+ local diffutils_classpath="" |
126 |
+ for i in $(find "${WORKDIR}/.m2/repository/com/googlecode/java-diff-utils" -type f -name *.jar -print) |
127 |
+ do |
128 |
+ if [ -z "${diffutils_classpath}" ] |
129 |
+ then |
130 |
+ diffutils_classpath="${i}" |
131 |
+ else |
132 |
+ diffutils_classpath="${diffutils_classpath}:${i}" |
133 |
+ fi |
134 |
+ done |
135 |
+ |
136 |
+ sed -e "s@BNDLIB_CLASSPATH@${bnd_classpath}@" \ |
137 |
+ -e "s@PAX_RUNNER_CLASSPATH@${paxrunner_classpath}@" \ |
138 |
+ -e "s@DIFFUTILS_CLASSPATH@${diffutils_classpath}@" \ |
139 |
+ -i "${S}/build.xml" \ |
140 |
+ || die "could not sed classpaths in build.xml" |
141 |
fi |
142 |
} |
143 |
|
144 |
@@ -128,14 +187,11 @@ |
145 |
#sets -X type variables which might come back to bite me |
146 |
unset ANT_OPTS |
147 |
|
148 |
- # Thanks to Coy Barnes: https://bugs.gentoo.org/show_bug.cgi?id=450298#c13 |
149 |
- export JAVA_OPTS="$JAVA_OPTS -Duser.home=${T}" |
150 |
- |
151 |
# reported in bugzilla that multiple launches use less resources |
152 |
# https://bugs.gentoo.org/show_bug.cgi?id=282023 |
153 |
eant all.clean |
154 |
eant -Djavac.args="-encoding UTF-8" -Djava6.home=${JAVA_HOME} \ |
155 |
- build-opt |
156 |
+ -Duser.home="${WORKDIR}" build-opt |
157 |
eant dist.done |
158 |
else |
159 |
einfo "Skipping compilation, USE=binary is set." |
160 |
@@ -182,6 +238,4 @@ |
161 |
local _name=$(basename "${b}") |
162 |
dosym "/usr/share/${PN}/bin/${_name}" "/usr/bin/${_name}" |
163 |
done |
164 |
- dosym "/usr/share/${JAVA_PKG_NAME}/lib" "/usr/share/${PN}/lib" |
165 |
- dosym "/usr/share/${JAVA_PKG_NAME}/package.env" "/usr/share/${PN}/package.env" |
166 |
} |
167 |
|
168 |
|
169 |
|
170 |
1.33 dev-lang/scala/ChangeLog |
171 |
|
172 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.33&view=markup |
173 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?rev=1.33&content-type=text/plain |
174 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/scala/ChangeLog?r1=1.32&r2=1.33 |
175 |
|
176 |
Index: ChangeLog |
177 |
=================================================================== |
178 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v |
179 |
retrieving revision 1.32 |
180 |
retrieving revision 1.33 |
181 |
diff -u -r1.32 -r1.33 |
182 |
--- ChangeLog 22 Aug 2013 10:05:56 -0000 1.32 |
183 |
+++ ChangeLog 30 Aug 2013 13:55:11 -0000 1.33 |
184 |
@@ -1,6 +1,12 @@ |
185 |
# ChangeLog for dev-lang/scala |
186 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
187 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.32 2013/08/22 10:05:56 gienah Exp $ |
188 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/scala/ChangeLog,v 1.33 2013/08/30 13:55:11 gienah Exp $ |
189 |
+ |
190 |
+ 30 Aug 2013; Mark Wright <gienah@g.o> |
191 |
+ +files/scala-2.10.2-maven-deps.patch, scala-2.10.2.ebuild: |
192 |
+ Fix: bug 482192 - thanks to Christian Strahl, Mike Limansky and Sumit Khanna |
193 |
+ for reporting; bug 482260 - thanks to Christoph Lange for reporting; bug |
194 |
+ 482286 |
195 |
|
196 |
*scala-2.10.2 (22 Aug 2013) |