1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/benchmarks/typometer/Makefile
Alexey Dokuchaev f7fb3f643d - Update `benchmarks/typometer' to version 1.0.1
- Fetch the distfile from the upstream GitHub instead of my mirror
- Project was relicensed under Apache License 2
- Fix shebang in the wrapper script and call ${JAVA} via ``exec'' so
  it replaces sh(1) process (makes it look nicer in the ps(1) output)
- Fix an apparent typo in the port description text
2018-07-03 14:52:56 +00:00

41 lines
1.0 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= typometer
PORTVERSION= 1.0.1
DISTVERSIONSUFFIX= -bin
CATEGORIES= benchmarks java
# Not USE_GITHUB because we want to grab the binary release (it's Java)
MASTER_SITES= https://github.com/pavelfatin/${PORTNAME}/releases/download/v${PORTVERSION}/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Text/code editor typing latency analyzer
LICENSE= APACHE20
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-${PORTVERSION}.jar
PORTDOCS= README.html
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
${STAGEDIR}${PREFIX}/bin
${PRINTF} "#!/bin/sh\n\n%s %s\n" "exec ${JAVA} -jar" \
"${PREFIX}/bin/${PORTNAME}-${PORTVERSION}.jar" \
> ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>