Magellan Linux

Contents of /trunk/core/junit/junit-4.8.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10530 - (show annotations) (download)
Tue Jan 24 15:48:02 2012 UTC (12 years, 4 months ago) by niro
File size: 902 byte(s)
-fixed src_prepare
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 junit${PVER}/junit.jar || die
49 minstalljar junit${PVER}/junit-dep.jar || die
50 minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt *.txt || die
51 }