freebsd-ports/devel/rubygem-execjs/Makefile
Sunpoet Po-Chuan Hsieh a6152ef147 Add NODE10 option
2018-11-18 20:38:03 +00:00

36 lines
892 B
Makefile

# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= execjs
PORTVERSION= 2.7.0
CATEGORIES= devel rubygems
MASTER_SITES= RG
MAINTAINER= ruby@FreeBSD.org
COMMENT= ExecJS lets you run JavaScript code from Ruby
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
USES= gem
USE_RUBY= yes
NO_ARCH= yes
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND= NODE NODE6 NODE8 NODE10
OPTIONS_DEFAULT=NODE
NODE_DESC= Use Node.js 11.x (www/node) as backend
NODE6_DESC= Use Node.js 6.x (www/node6) as backend
NODE8_DESC= Use Node.js 8.x (www/node8) as backend
NODE10_DESC= Use Node.js 10.x (www/node10) as backend
NODE_RUN_DEPENDS= node>=0:www/node
NODE6_RUN_DEPENDS= node6>=0:www/node6
NODE8_RUN_DEPENDS= node8>=0:www/node8
NODE10_RUN_DEPENDS= node10>=0:www/node10
post-patch:
@${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#' ${WRKSRC}/lib/execjs/runtimes.rb
.include <bsd.port.mk>