Magellan Linux

Annotation of /branches/R11-stable/extras/junit/junit-4.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17416 - (hide annotations) (download)
Tue Jun 11 12:46:52 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/extras/junit/junit-4.11-r1.smage2
File size: 1243 byte(s)
-added missing hamcrest depend
1 niro 17409 # $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 niro 17416 DEPEND=">= virtual/java
13     >= dev-java/hamcrest-1.3"
14    
15 niro 17409 SDEPEND=">= virtual/java-jdk
16     >= dev-java/apache-ant-1.8.2
17     >= app-arch/unzip-5"
18    
19     # commit id
20 niro 17411 COID="c62e2df"
21 niro 17409 # unusual but it is so
22     SRCFILE="r${PVER}"
23 niro 17410 SRCDIR="${BUILDDIR}/junit-team-${PNAME}-${COID}"
24 niro 17409
25     sminclude java
26    
27     SRC_URI=(
28 niro 17410 http://github.com/junit-team/junit/tarball/r${PVER}
29 niro 17409 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 niro 17416
45     # fix missing Manifest
46     jar ufm junit-dep-${PVER}-SNAPSHOT.jar ${SRCDIR}/Manifest.txt || die
47 niro 17409 }
48    
49 niro 17416 src_check()
50     {
51     cd ${SRCDIR}
52     ant test || die
53     }
54    
55 niro 17409 src_install()
56     {
57     cd ${SRCDIR}
58    
59     # minstalljar adds pver automatically - so we rename the jars
60 niro 17416 cp junit${PVER}/junit-${PVER}-SNAPSHOT.jar junit.jar || die
61     cp junit${PVER}/junit-dep-${PVER}-SNAPSHOT.jar junit-dep.jar || die
62 niro 17409
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     }