freebsd-ports/benchmarks/typometer/Makefile
Muhammad Moinur Rahman 4cda17ab14 */*: Refactor java/openjdk7 removal
- java/openjdk7* has been removed from the tree since 2022-09-03 however
  the relevant codebases in bsd.java.mk has not been removed and the
  consumers has also not been updated to use the next jdk version. This
  commit updates all relevant consumers to use JAVA_VERSION=8 instead of
  JAVA_VERSION=1.7
- Since the introduction of jdk version 18 it looks like similar with
  jdk version 8(java version string 1.8). This is prone to error as it
  looks similar and is only seperated by a '.'. Remove using
  JAVA_VERSION with dotted fomat of java version string and update all
  consumers to utilize version 8 instead of 1.8.

Approved by:	portmgr (blanket)
2023-04-04 13:10:53 -05:00

38 lines
1 KiB
Makefile

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
WWW= https://pavelfatin.com/typometer/
LICENSE= APACHE20
USES= zip
USE_JAVA= yes
JAVA_VERSION= 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>