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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Aug 5 07:59:55 2014 UTC (4 years, 4 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Make description more repoman-happy

(Portage version: 2.2.11-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-benchmarks/jmeter/jmeter-2.0.1-r5.ebuild,v 1.1 2014/07/12 11:08:48 ercpe Exp $
4
5 EAPI=5
6
7 JAVA_PKG_IUSE="doc source examples"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases"
12 HOMEPAGE="http://jmeter.apache.org/"
13 SRC_URI="mirror://apache/jakarta/jmeter/source/jakarta-${P}_src.tgz"
14
15 LICENSE="Apache-2.0"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18
19 IUSE="beanshell"
20
21 COMMON_DEP="
22 beanshell? ( dev-java/bsh )
23 >=dev-java/bsf-2.3
24 =dev-java/junit-3.8*
25 java-virtuals/javamail"
26 DEPEND=">=virtual/jdk-1.4
27 doc? ( >=dev-java/velocity-1.4 )
28 dev-java/ant-nodeps
29 sys-apps/sed
30 ${COMMON_DEP}"
31 RDEPEND=">=virtual/jre-1.4
32 ${COMMON_DEP}"
33
34 S=${WORKDIR}/jakarta-${P}
35
36 java_prepare() {
37 sed -i -e 's/%//g' bin/jmeter || die "Unable to sed."
38 cd "${S}/lib" || die
39 # FIXME replace all bundled jars bug #63309
40 # then rm -f *.jar
41 use beanshell && java-pkg_jar-from bsh
42 java-pkg_jar-from bsf-2.3
43 java-pkg_jar-from junit
44 java-pkg_jar-from --virtual javamail
45 java-pkg_filter-compiler jikes
46
47 find "${S}"/src -name "*.java" | xargs sed -i -e 's:\benum\b:enumx:g' || die # fix for bug #514662
48 }
49
50 src_compile() {
51 local tasks="ant-nodeps"
52 use doc && tasks="${tasks} velocity"
53 ANT_TASKS="${tasks}" eant package $(use_doc docs-all) || die "compile problem"
54 }
55
56 src_install() {
57 DIROPTIONS="--mode=0775"
58 dodir /opt/${PN}
59 local dest="${D}/opt/${PN}/"
60 cp -pPR bin/ lib/ "${dest}" || die
61 if use doc; then
62 cp -pPR printable_docs "${dest}" || die "Failed to install docs"
63 fi
64 dodoc README
65
66 echo "PATH=\"/opt/${PN}/bin\"" > "${T}/90${PN}" || die
67 doenvd "${T}/90${PN}" || die "failed to install env.d file"
68
69 use doc && dohtml -r docs/*
70 use source && java-pkg_dosrc src/*
71 use examples && java-pkg_doexamples xdocs/demos/*
72 }

  ViewVC Help
Powered by ViewVC 1.1.20