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