svn commit: r374054 - in head/lang/v8: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Dec 5 16:53:55 UTC 2014
Author: sunpoet
Date: Fri Dec 5 16:53:54 2014
New Revision: 374054
URL: https://svnweb.freebsd.org/changeset/ports/374054
QAT: https://qat.redports.org/buildarchive/r374054/
Log:
- Remove lang/python from BUILD_DEPENDS
- Use USES=shebangfix
- Use REINPLACE_CMD instead of patch files
- Move ONLY_FOR_ARCHS upward
Deleted:
head/lang/v8/files/
Modified:
head/lang/v8/Makefile
Modified: head/lang/v8/Makefile
==============================================================================
--- head/lang/v8/Makefile Fri Dec 5 16:51:46 2014 (r374053)
+++ head/lang/v8/Makefile Fri Dec 5 16:53:54 2014 (r374054)
@@ -11,20 +11,24 @@ COMMENT= Open source JavaScript engine b
LICENSE= BSD3CLAUSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python
-
CONFLICTS_INSTALL= v8-devel-[0-9]*
+ONLY_FOR_ARCHS= i386 amd64
+
PORTSCOUT= limit:^3.18.*
ALL_TARGET= native
MAKE_ARGS= library=shared
MAKE_ENV= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
USE_LDCONFIG= yes
-USES= alias compiler cpe execinfo gmake python:2 tar:xz
+USES= alias compiler cpe execinfo gmake python:2 shebangfix tar:xz
CPE_VENDOR= google
+SHEBANG_FILES= build/gyp/gyp
+python_OLD_CMD= ${SETENV} python
+python_CMD= ${PYTHON_CMD}
+
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
@@ -41,12 +45,12 @@ MAKE_ARGS+= strictaliasing=off
USE_GCC= any
.endif
-ONLY_FOR_ARCHS= i386 amd64
-
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
- ${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp
- @${REINPLACE_CMD} -e '1 s|${SETENV} python|&2|' ${WRKSRC}/build/gyp/gyp
+ @${REINPLACE_CMD} -e 's|test/cctest/cctest.gyp||' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e '/test\/cctest\/cctest.gyp/d' ${WRKSRC}/build/all.gyp
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp
+ @${REINPLACE_CMD} -e 's, | MAP_NORESERVE,,' ${WRKSRC}/src/platform-freebsd.cc
+ @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/tools/gyp/v8.gyp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8
More information about the svn-ports-all
mailing list