Contents of /branches/R11-unstable/extras/hamcrest/hamcrest-1.3-r1.smage2
Parent Directory | Revision Log
Revision 25301 -
(show annotations)
(download)
Tue Nov 25 03:24:42 2014 UTC (9 years, 10 months ago) by niro
File size: 1371 byte(s)
Tue Nov 25 03:24:42 2014 UTC (9 years, 10 months ago) by niro
File size: 1371 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="hamcrest" |
4 | PVER="1.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-java" |
8 | |
9 | DESCRIPTION="Library of matchers for building test expressions." |
10 | HOMEPAGE="https://code.google.com/p/${PNAME}" |
11 | |
12 | DEPEND=">= virtual/java" |
13 | |
14 | SDEPEND=">= virtual/java-jdk |
15 | >= dev-java/apache-ant-1.8.2 |
16 | >= app-arch/unzip-5" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.zip" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude java |
22 | msetfeature "!check" |
23 | |
24 | SRC_URI=( |
25 | https://hamcrest.googlecode.com/files/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | ) |
28 | |
29 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | local myopts |
40 | |
41 | # requires 1.5 source definitions |
42 | myopts+=" -Dant.build.javac.source=1.5" |
43 | |
44 | # suppress SNAPSHOT version suffix |
45 | myopts+=" -Dversion=${PVER}" |
46 | |
47 | ant ${myopts} clean core generator library bigjar || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | local jar |
55 | for jar in core library generator integration all |
56 | do |
57 | # minstalljar adds pver automatically - so we rename the jars |
58 | cp build/hamcrest-${jar}-${PVER}.jar build/hamcrest-${jar}.jar || die |
59 | minstalljar build/hamcrest-${jar}.jar || die |
60 | # invidual install into subdir is required by some packages |
61 | minstalldir ${JAVA_CLASSPATH_DIR}/${PNAME} || die |
62 | mlink ../hamcrest-${jar}-${PVER}.jar ${JAVA_CLASSPATH_DIR}/${PNAME}/${jar}.jar || die |
63 | done |
64 | |
65 | minstalldocs README.txt LICENSE.txt CHANGES.txt || die |
66 | } |