Magellan Linux

Contents of /branches/R11-unstable/extras/junit/junit-4.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25340 - (show annotations) (download)
Tue Nov 25 03:28:57 2014 UTC (9 years, 5 months ago) by niro
File size: 831 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="junit"
4 PVER="4.12"
5 PBUILD="r2"
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 # binary to build junit from src afterwards
16 SRCFILE="${PNAME}-${PVER}.jar"
17 SRCDIR="${BUILDDIR}/$-${PNAME}-${PVER}"
18
19 sminclude java
20
21 SRC_URI=(
22 http://search.maven.org/remotecontent?filepath=${PNAME}/${PNAME}/${PVER}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2EXCLUDE="beta"
27 UP2SEPERATOR="r"
28 UP2DATE="updatecmd https://github.com/junit-team/${PNAME}/releases | highesttarball zip"
29
30 src_prepare()
31 {
32 install -d ${SRCDIR}
33
34 # minstalljar adds pver automatically - so we rename the jars
35 cp ${SOURCEDIR}/${PNAME}/${SRCFILE} ${SRCDIR}/junit.jar || die
36 }
37
38 src_install()
39 {
40 cd ${SRCDIR}
41 minstalljar junit.jar || die
42 }