1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name apache-jmeter |
---|
6 | version 2.13 |
---|
7 | categories devel java |
---|
8 | license Apache-2 W3C |
---|
9 | maintainers openmaintainer gmail.com:sitnikov.vladimir |
---|
10 | supported_archs noarch |
---|
11 | |
---|
12 | description Java application to load test functional behavior and measure performance |
---|
13 | long_description The Apache JMeter™ application is open source software, \ |
---|
14 | a 100% pure Java application designed to load test \ |
---|
15 | functional behavior and measure performance. It was \ |
---|
16 | originally designed for testing Web Applications but \ |
---|
17 | has since expanded to other test functions. |
---|
18 | homepage http://jmeter.apache.org/ |
---|
19 | |
---|
20 | platforms darwin freebsd |
---|
21 | |
---|
22 | extract.suffix .tgz |
---|
23 | distname ${name}-${version} |
---|
24 | master_sites apache:jmeter/ |
---|
25 | master_sites.mirror_subdir binaries |
---|
26 | checksums rmd160 e5e037f797272165a29a0d6d21ca5ee0a8fc944e \ |
---|
27 | sha256 9fe33d3d6e381103d3ced2962cdef5c164a06fc58c55e247eadf5a5dbcd4d8fe \ |
---|
28 | sha512 518e5547e67ff32b81f38afd18a2710fbde425ce9f44719b753a40552dd5963d6a5d6dacffcbea63f8abeb85a77a0d80dc35c161a38f0dfe64e6fada42a4c0cd |
---|
29 | |
---|
30 | worksrcdir ${name}-${version} |
---|
31 | set workTarget "" |
---|
32 | |
---|
33 | use_bzip2 no |
---|
34 | use_configure no |
---|
35 | |
---|
36 | build.cmd true |
---|
37 | |
---|
38 | platform darwin { |
---|
39 | build.env JAVA_HOME=/Library/Java/Home |
---|
40 | } |
---|
41 | |
---|
42 | variant source description "build from source" { |
---|
43 | fetch.type svn |
---|
44 | svn.url http://svn.apache.org/repos/asf/jmeter/trunk/ |
---|
45 | svn.method checkout |
---|
46 | # distname ${name}-${version}-src |
---|
47 | # master_sites.mirror_subdir source |
---|
48 | # checksums md5 c474fa9d0c35a24037c23b6e476862c1 \ |
---|
49 | # sha1 fe01edd5acb221485d86e74411365cc139e1c87c \ |
---|
50 | # sha512 7dbbdcd31f5fd498cbbe7f125451899320e5e9c2396b80f1f90d18943f8ef066a75198edfdba0edf96b1e0b5b84cb049b5281403180a7a6924ebfb077930e307 |
---|
51 | set workTarget /${name} |
---|
52 | |
---|
53 | build.cmd ant |
---|
54 | # build.args -Dchmod.fail=false -Ddist.name=${name} |
---|
55 | build.target download_jars install |
---|
56 | } |
---|
57 | |
---|
58 | pre-destroot { |
---|
59 | delete \ |
---|
60 | ${worksrcpath}${workTarget}/bin/heapdump.cmd \ |
---|
61 | ${worksrcpath}${workTarget}/bin/jmeter-n-r.cmd \ |
---|
62 | ${worksrcpath}${workTarget}/bin/jmeter-n.cmd \ |
---|
63 | ${worksrcpath}${workTarget}/bin/jmeter-report.bat \ |
---|
64 | ${worksrcpath}${workTarget}/bin/jmeter-server.bat \ |
---|
65 | ${worksrcpath}${workTarget}/bin/jmeter-t.cmd \ |
---|
66 | ${worksrcpath}${workTarget}/bin/jmeter.bat \ |
---|
67 | ${worksrcpath}${workTarget}/bin/jmeterw.cmd \ |
---|
68 | ${worksrcpath}${workTarget}/bin/mirror-server.cmd \ |
---|
69 | ${worksrcpath}${workTarget}/bin/shutdown.cmd \ |
---|
70 | ${worksrcpath}${workTarget}/bin/stoptest.cmd |
---|
71 | } |
---|
72 | |
---|
73 | destroot { |
---|
74 | xinstall -m 755 -d ${destroot}${prefix}/share/java |
---|
75 | file copy ${worksrcpath}${workTarget} \ |
---|
76 | ${destroot}${prefix}/share/java/${name} |
---|
77 | |
---|
78 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
79 | foreach f {LICENSE |
---|
80 | NOTICE |
---|
81 | README} { |
---|
82 | file rename ${destroot}${prefix}/share/java/${name}/${f} \ |
---|
83 | ${destroot}${prefix}/share/doc/${name}/${f} |
---|
84 | } |
---|
85 | |
---|
86 | ln -s ../share/java/${name}/bin/jmeter ${destroot}${prefix}/bin/jmeter |
---|
87 | ln -s ../share/java/${name}/bin/jmeter-server ${destroot}${prefix}/bin/jmeter-server |
---|
88 | } |
---|
89 | |
---|
90 | universal_variant no |
---|
91 | |
---|
92 | livecheck.type regex |
---|
93 | livecheck.url http://www.apache.org/dist/jmeter/binaries/ |
---|
94 | livecheck.regex {apache-jmeter-(\d+(?:\.\d+)*).tgz} |
---|