blob: 5b5f3ea53e403c26b8fee67730bcb277bc0b8890 (
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
|
# $FreeBSD$
PORTNAME= gn
DISTVERSIONPREFIX= v
DISTVERSION= 1600
CATEGORIES= devel
MAINTAINER= o.hushchenkov@gmail.com
COMMENT= Gn meta build framework - standalone version
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
CONFLICTS_INSTALL= chromium-gn
USES= alias compiler:c++14-lang ninja python:build shebangfix
USE_GITHUB= yes
GH_ACCOUNT= cglogic # mirror
SHEBANG_FILES= ${CONFIGURE_SCRIPT}
HAS_CONFIGURE= yes
CONFIGURE_OUTSOURCE= yes
CONFIGURE_SCRIPT= build/gen.py
CONFIGURE_WRKSRC= ${WRKSRC}/out # --out-path breaks "make test"
CONFIGURE_ENV= GN_VERSION=${PORTVERSION}
CONFIGURE_ARGS= --platform freebsd ${WITH_DEBUG:D--debug}
ALL_TARGET= # empty
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} 's/"python"/"${PYTHON_CMD:T}"/' \
${WRKSRC}/tools/gn/exec_process_unittest.cc
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
do-test:
${TEST_WRKSRC}/gn_unittests
.include <bsd.port.mk>
|