Annotation of /branches/R11-stable/extras/junit/junit-4.11-r1.smage2
Parent Directory
|
Revision Log
Revision 17417 -
(hide annotations)
(download)
Tue Jun 11 21:14:39 2013 UTC (11 years ago) by niro
Original Path: trunk/extras/junit/junit-4.11-r1.smage2
File size: 1313 byte(s)
Tue Jun 11 21:14:39 2013 UTC (11 years ago) by niro
Original Path: trunk/extras/junit/junit-4.11-r1.smage2
File size: 1313 byte(s)
-create missing Manifest
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 | niro | 17417 | echo 'Class-Path: hamcrest-core.jar' > ${SRCDIR}/Manifest.txt || die |
47 | niro | 17416 | jar ufm junit-dep-${PVER}-SNAPSHOT.jar ${SRCDIR}/Manifest.txt || die |
48 | niro | 17409 | } |
49 | |||
50 | niro | 17416 | src_check() |
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | ant test || die | ||
54 | } | ||
55 | |||
56 | niro | 17409 | src_install() |
57 | { | ||
58 | cd ${SRCDIR} | ||
59 | |||
60 | # minstalljar adds pver automatically - so we rename the jars | ||
61 | niro | 17416 | cp junit${PVER}/junit-${PVER}-SNAPSHOT.jar junit.jar || die |
62 | cp junit${PVER}/junit-dep-${PVER}-SNAPSHOT.jar junit-dep.jar || die | ||
63 | niro | 17409 | |
64 | minstalljar junit.jar || die | ||
65 | minstalljar junit-dep.jar || die | ||
66 | minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt *.txt || die | ||
67 | } |