Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 10:06:41 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343316 - head/lang/v8-devel
Message-ID:  <201402081006.s18A6f7k017921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Feb  8 10:06:40 2014
New Revision: 343316
URL: http://svnweb.freebsd.org/changeset/ports/343316
QAT: https://qat.redports.org/buildarchive/r343316/

Log:
  - Add LICENSE
  - Fix build for users with python 3.x as default
  - Simplify shebang fix
  
  Submitted by:	sunpoet (myself)
  Approved by:	vanilla (maintainer)

Modified:
  head/lang/v8-devel/Makefile

Modified: head/lang/v8-devel/Makefile
==============================================================================
--- head/lang/v8-devel/Makefile	Sat Feb  8 10:05:06 2014	(r343315)
+++ head/lang/v8-devel/Makefile	Sat Feb  8 10:06:40 2014	(r343316)
@@ -11,6 +11,8 @@ PKGNAMESUFFIX=	-devel
 MAINTAINER=	vanilla@FreeBSD.org
 COMMENT=	Google\'s open source JavaScript engine
 
+LICENSE=	BSD3CLAUSE
+
 BUILD_DEPENDS=	python:${PORTSDIR}/lang/python
 LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
 		libicui18n.so:${PORTSDIR}/devel/icu
@@ -18,7 +20,6 @@ LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/
 CONFLICTS=	v8-3.19.*
 
 USES=		gmake shebangfix compiler
-SHEBANG_LANG=	sh
 SHEBANG_FILES=	${WRKSRC}/build/gyp/gyp
 USE_XZ=		yes
 USE_PYTHON=	2
@@ -26,8 +27,7 @@ USE_LDCONFIG=	yes
 ALL_TARGET=	native
 MAKE_ARGS=	library=shared use_system_icu=on
 MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
-sh_OLD_CMD=	/bin/bash
-sh_CMD=		${SH}
+bash_CMD=	${SH}
 
 .include <bsd.port.pre.mk>
 
@@ -45,6 +45,9 @@ USE_GCC=	any
 
 ONLY_FOR_ARCHS=	i386 amd64
 
+post-patch:
+	@${REINPLACE_CMD} -e '/^exec python / s| python | ${PYTHON_CMD} |' ${WRKSRC}/build/gyp/gyp
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8
 	${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${STAGEDIR}${PREFIX}/lib/libv8.so.1



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