Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17410 - (hide annotations) (download)
Tue Jun 11 10:57:06 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/extras/junit/junit-4.11-r1.smage2
File size: 1055 byte(s)
-fixed SRCFILE and SRC_URI
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     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="c2e4d91"
19     # unusual but it is so
20     SRCFILE="r${PVER}"
21 niro 17410 SRCDIR="${BUILDDIR}/junit-team-${PNAME}-${COID}"
22 niro 17409
23     sminclude java
24    
25     SRC_URI=(
26 niro 17410 http://github.com/junit-team/junit/tarball/r${PVER}
27 niro 17409 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     }