View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
DESCRIPTION="Pure Java application to load test functional behavior and measure performance"
HOMEPAGE="https://jmeter.apache.org/"
SRC_URI="http://apache.hippo.nl/jmeter/binaries/apache-jmeter-${PV}.tgz -> ${P}.tar.gz"
S="${WORKDIR}/apache-jmeter-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
RESTRICT="bindist strip mirror"
RDEPEND=">=virtual/jre-1.8"
INSTALLDIR="/opt/JMeter"
DOCS="README.md LICENSE NOTICE licenses"
src_install() {
insinto ${INSTALLDIR}
doins -r bin lib
exeinto "${INSTALLDIR}/bin"
doexe bin/*.sh
doexe bin/jmeter
doexe bin/mirror-server
if use doc; then
HTML_DOCS="printable_docs"
fi
if ! use examples; then
rm -r "${D}${INSTALLDIR}/bin/examples"
fi
einstalldocs
}
pkg_postinst() {
if [[ ! ${REPLACING_VERSIONS} ]]; then
einfo "Application executable installed in ${INSTALLDIR}/bin/jmeter"
fi
}