/[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.3 - (hide annotations) (download)
Mon Dec 19 13:06:31 2011 UTC (7 years, 4 months ago) by sera
Branch: MAIN
Changes since 1.2: +3 -3 lines
Fix homepage wrt #202445.

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 sera 1.3 # Copyright 1999-2011 Gentoo Foundation
2 ali_bush 1.1 # Distributed under the terms of the GNU General Public License v2
3 sera 1.3 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/jmeter/jmeter-2.0.1-r4.ebuild,v 1.2 2008/10/24 20:36:23 maekke Exp $
4 ali_bush 1.1
5     inherit java-pkg-2 java-ant-2
6    
7     DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases."
8 sera 1.3 HOMEPAGE="http://jmeter.apache.org/"
9 ali_bush 1.1 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 maekke 1.2 KEYWORDS="amd64 x86"
25 ali_bush 1.1 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