46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'apache-jmeter'
|
|
pkgname=apache-jmeter
|
|
version=5.3
|
|
revision=1
|
|
hostmakedepends="openjdk8 gradle"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Application to load test functional behavior and measure performance"
|
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://jmeter.apache.org/"
|
|
distfiles="http://apache.osuosl.org/jmeter/source/apache-jmeter-${version}_src.tgz"
|
|
checksum=727d7c0cf2b72c0c3983c603a6700df7b797dbcbf19dcd7fa2aa457627324ff0
|
|
|
|
case "$XBPS_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*|arm*|mips*) broken="too slow" ;;
|
|
esac
|
|
|
|
do_build() {
|
|
# Tests fail -- they are too dependent on networking environment
|
|
gradle -PchecksumIgnore -x test createDist
|
|
}
|
|
|
|
do_install() {
|
|
rm -rf build.gradle.kts buildSrc gradle* LICENSE licenses NOTICE \
|
|
settings.gradle.kts *.md
|
|
|
|
vmkdir usr/share/doc/apache-jmeter
|
|
vcopy xdocs/* usr/share/doc/apache-jmeter
|
|
rm -rf xdocs
|
|
|
|
vmkdir usr/libexec/apache-jmeter
|
|
vcopy * usr/libexec/apache-jmeter
|
|
|
|
vmkdir usr/bin
|
|
ln -s /usr/libexec/apache-jmeter/bin/jmeter ${DESTDIR}/usr/bin/jmeter
|
|
}
|
|
|
|
apache-jmeter-doc_package() {
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|