/[gentoo-x86]/app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild
Gentoo

Contents of /app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Mar 5 10:30:56 2008 UTC (11 years, 1 month ago) by ali_bush
Branch: MAIN
Fixed invalid vm parameters in start script. see Bug #211953.
(Portage version: 2.1.4.4)

1 ali_bush 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     inherit java-pkg-2 java-ant-2
6    
7     DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases."
8     HOMEPAGE="http://jakarta.apache.org/jmeter"
9     SRC_URI="mirror://apache/jakarta/jmeter/source/jakarta-${P}_src.tgz"
10     COMMON_DEP="
11     beanshell? ( dev-java/bsh )
12     >=dev-java/bsf-2.3
13     =dev-java/junit-3.8*
14     java-virtuals/javamail"
15     DEPEND=">=virtual/jdk-1.4
16     doc? ( >=dev-java/velocity-1.4 )
17     dev-java/ant-nodeps
18     sys-apps/sed
19     ${COMMON_DEP}"
20     RDEPEND=">=virtual/jre-1.4
21     ${COMMON_DEP}"
22     LICENSE="Apache-2.0"
23     SLOT="0"
24     KEYWORDS="~amd64 ~x86"
25     IUSE="beanshell doc"
26    
27     S=${WORKDIR}/jakarta-${P}
28    
29     src_unpack() {
30     unpack ${A}
31    
32     cd "${S}"
33     sed -i -e 's/%//g' bin/jmeter || die "Unable to sed."
34     cd "${S}/lib"
35     # FIXME replace all bundled jars bug #63309
36     # then rm -f *.jar
37     use beanshell && java-pkg_jar-from bsh
38     java-pkg_jar-from bsf-2.3
39     java-pkg_jar-from junit
40     java-pkg_jar-from --virtual javamail
41     java-pkg_filter-compiler jikes
42     }
43    
44     src_compile() {
45     local tasks="ant-nodeps"
46     use doc && tasks="${tasks} velocity"
47     ANT_TASKS="${tasks}" eant package $(use_doc docs-all) || die "compile problem"
48     }
49    
50     src_install() {
51     DIROPTIONS="--mode=0775"
52     dodir /opt/${PN}
53     local dest="${D}/opt/${PN}/"
54     cp -pPR bin/ lib/ printable_docs/ "${dest}"
55     if use doc; then
56     cp -pPR printable_docs "${dest}" || die "Failed to install docs"
57     fi
58     dodoc README || die
59     use doc && dohtml -r docs/*
60     }

  ViewVC Help
Powered by ViewVC 1.1.20