Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 17:13:24 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421568 - head/devel/rubygem-execjs
Message-ID:  <201609081713.u88HDOsb036553@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Sep  8 17:13:24 2016
New Revision: 421568
URL: https://svnweb.freebsd.org/changeset/ports/421568

Log:
  - Allow to choose node backend version
  - While here, add LICENSE_FILE
  
  PR:		206632
  Submitted by:	j.david.lists@gmail.com
  Approved by:	maintainer timeout (ruby, 7 months)

Modified:
  head/devel/rubygem-execjs/Makefile

Modified: head/devel/rubygem-execjs/Makefile
==============================================================================
--- head/devel/rubygem-execjs/Makefile	Thu Sep  8 17:04:12 2016	(r421567)
+++ head/devel/rubygem-execjs/Makefile	Thu Sep  8 17:13:24 2016	(r421568)
@@ -10,14 +10,23 @@ MAINTAINER=	ruby@FreeBSD.org
 COMMENT=	ExecJS lets you run JavaScript code from Ruby
 
 LICENSE=	MIT
-
-RUN_DEPENDS=	node:www/node
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
 
 NO_ARCH=	yes
 
 USE_RUBY=	yes
 USES=		gem
 
+OPTIONS_SINGLE=	BACKEND
+OPTIONS_SINGLE_BACKEND=	NODE NODE4
+OPTIONS_DEFAULT=	NODE
+
+NODE_DESC=	Use www/node as backend
+NODE4_DESC=	Use www/node4 as backend
+
+NODE_RUN_DEPENDS=	node>=0:www/node
+NODE4_RUN_DEPENDS=	node4>=0:www/node4
+
 post-patch:
 	@${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#' \
 		${WRKSRC}/lib/${PORTNAME}/runtimes.rb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609081713.u88HDOsb036553>