blob: a28f32dedd6c674a8b691a51e0a03cb8fdac91a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
PORTNAME= hermes
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.2.20210322
CATEGORIES= lang
PKGNAMESUFFIX= -javascript-engine
MAINTAINER= yuri@FreeBSD.org
COMMENT= JavaScript engine
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libicui18n.so:devel/icu
TEST_DEPENDS= googletest>0:devel/googletest \
zip:archivers/zip
USES= cmake compiler:c++11-lang python:build readline
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= facebook
GH_TAGNAME= 1ed8051
CMAKE_OFF= HERMES_ENABLE_TEST_SUITE
BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD}
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1201518
BROKEN= needs pthread_getname_np from OSVERSION 1201518 or above
.endif
do-test: # some tests are known to fail: https://github.com/facebook/hermes/issues/347
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHERMES_ENABLE_TEST_SUITE:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check-hermes
.include <bsd.port.mk>
|