Contents of /trunk/todo/junit/junit-4.4-r2.smage2
Parent Directory | Revision Log
Revision 2392 -
(show annotations)
(download)
Thu Jul 9 19:50:14 2009 UTC (15 years, 2 months ago) by niro
File size: 1408 byte(s)
Thu Jul 9 19:50:14 2009 UTC (15 years, 2 months ago) by niro
File size: 1408 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/junit/junit-4.4-r2.smage2,v 1.1 2008/04/24 12:53:02 niro Exp $ |
2 | |
3 | PNAME="junit" |
4 | PVER="4.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-java" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="JUnit is a simple framework to write repeatable tests." |
11 | HOMEPAGE="http://junit.sourceforge.net/" |
12 | |
13 | DEPEND=">= virtual/java" |
14 | SDEPEND=">= virtual/java-jdk |
15 | >= app-arch/unzip-5" |
16 | |
17 | SRCFILE="${PNAME}${PVER}.zip" |
18 | SRCDIR="${BUILDDIR}/${PNAME}${PVER}" |
19 | |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | sourceforge://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # unpack src.jar |
33 | install -d src || die |
34 | unzip -d src junit-${PVER}-src.jar || die |
35 | |
36 | # cleanup prebuild jars and other unneeded stuff |
37 | rm -rf javadoc *.jar || die |
38 | find . -name \*.class | xargs rm || die |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | # compile clases |
46 | install -d classes || die |
47 | javac -d classes -cp temp.hamcrest.source $(find src -name \*.java) || die |
48 | |
49 | # create jar |
50 | jar -cf junit.jar -C classes . || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | # needed directories |
58 | minstalldir /etc/env.d || die |
59 | minstalldir /usr/share/${PNAME}-${PVER}/lib || die |
60 | |
61 | minstallfile junit.jar /usr/share/${PNAME}-${PVER}/lib || die |
62 | |
63 | # classpath env |
64 | echo "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/junit.jar" \ |
65 | > ${BINDIR}/etc/env.d/22java-app-${PNAME} || die |
66 | |
67 | minstalldocs README.html cpl-v10.html doc/ReleaseNotes${PVER}.txt || die |
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |