Contents of /trunk/extras/junit/junit-4.11-r1.smage2
Parent Directory | Revision Log
Revision 17416 -
(show annotations)
(download)
Tue Jun 11 12:46:52 2013 UTC (11 years ago) by niro
File size: 1243 byte(s)
Tue Jun 11 12:46:52 2013 UTC (11 years ago) by niro
File size: 1243 byte(s)
-added missing hamcrest depend
1 | # $Id$ |
2 | |
3 | PNAME="junit" |
4 | PVER="4.11" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-java" |
8 | |
9 | DESCRIPTION="JUnit is a simple framework to write repeatable tests." |
10 | HOMEPAGE="http://junit.org/" |
11 | |
12 | DEPEND=">= virtual/java |
13 | >= dev-java/hamcrest-1.3" |
14 | |
15 | SDEPEND=">= virtual/java-jdk |
16 | >= dev-java/apache-ant-1.8.2 |
17 | >= app-arch/unzip-5" |
18 | |
19 | # commit id |
20 | COID="c62e2df" |
21 | # unusual but it is so |
22 | SRCFILE="r${PVER}" |
23 | SRCDIR="${BUILDDIR}/junit-team-${PNAME}-${COID}" |
24 | |
25 | sminclude java |
26 | |
27 | SRC_URI=( |
28 | http://github.com/junit-team/junit/tarball/r${PVER} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | ) |
31 | |
32 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
33 | |
34 | src_prepare() |
35 | { |
36 | # munpack needs a suffix |
37 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | ant jars || die |
44 | |
45 | # fix missing Manifest |
46 | jar ufm junit-dep-${PVER}-SNAPSHOT.jar ${SRCDIR}/Manifest.txt || die |
47 | } |
48 | |
49 | src_check() |
50 | { |
51 | cd ${SRCDIR} |
52 | ant test || die |
53 | } |
54 | |
55 | src_install() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | # minstalljar adds pver automatically - so we rename the jars |
60 | cp junit${PVER}/junit-${PVER}-SNAPSHOT.jar junit.jar || die |
61 | cp junit${PVER}/junit-dep-${PVER}-SNAPSHOT.jar junit-dep.jar || die |
62 | |
63 | minstalljar junit.jar || die |
64 | minstalljar junit-dep.jar || die |
65 | minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt *.txt || die |
66 | } |