freebsd-ports/www/selenium/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

42 lines
925 B
Makefile

PORTNAME= selenium
PORTVERSION= 4.8.3
CATEGORIES= www devel java
MASTER_SITES= https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/
DISTNAME= selenium-server-${PORTVERSION}
EXTRACT_SUFX= .jar
EXTRACT_ONLY=
MAINTAINER= daniel@blodan.se
COMMENT= Selenium Standalone Server, allows browser testing
WWW= https://www.seleniumhq.org
LICENSE= APACHE20
USES= cpe
CPE_VENDOR= jenkins
USE_JAVA= yes
JAVA_VERSION= 8+
JAVA_RUN= yes
USE_RC_SUBR= selenium
NO_ARCH= yes
NO_BUILD= yes
SUB_LIST+= JAVA_HOME=${JAVA_HOME} \
SELENIUM_VERSION=${PORTVERSION}
SELENIUM_HOME= ${PREFIX}/selenium
USERS= selenium
GROUPS= selenium
PLIST_FILES= \@dir\(${USERS},${GROUPS},\)\ selenium \
${DATADIR}/${DISTNAME}${EXTRACT_SUFX}
do-install:
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${SELENIUM_HOME}
${INSTALL_DATA} ${DISTDIR}${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>