Magellan Linux

Contents of /branches/R11-stable/extras/junit/junit-4.8.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15184 - (show annotations) (download)
Wed Jan 2 10:55:09 2013 UTC (11 years, 4 months ago) by niro
File size: 1052 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="junit"
4 PVER="4.8.2"
5 PBUILD="r4"
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 SDEPEND=">= virtual/java-jdk
14 >= dev-java/apache-ant-1.8.2
15 >= app-arch/unzip-5"
16
17 # commit id
18 COID="a30e87b"
19 # unusual but it is so
20 SRCFILE="r${PVER}"
21 SRCDIR="${BUILDDIR}/KentBeck-${PNAME}-${COID}"
22
23 sminclude java
24
25 SRC_URI=(
26 http://github.com/KentBeck/junit/tarball/r${PVER}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 UP2DATE="updatecmd_sourceforge ${PNAME}"
31
32 src_prepare()
33 {
34 # munpack needs a suffix
35 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41 ant jars || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47
48 # minstalljar adds pver automatically - so we rename the jars
49 cp junit${PVER}/junit-${PVER}.jar junit.jar || die
50 cp junit${PVER}/junit-dep-${PVER}.jar junit-dep.jar || die
51
52 minstalljar junit.jar || die
53 minstalljar junit-dep.jar || die
54 minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt *.txt || die
55 }