blob: d0fadd0336901ca0c8841ec5b27c6f5ed033a4b2 (
plain) (
blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
PORTNAME= ninja
PORTVERSION= 1.11.1
DISTVERSIONPREFIX= v
PORTEPOCH= 2
CATEGORIES= devel
MAINTAINER= kde@FreeBSD.org
COMMENT= Small build system closest in spirit to Make
WWW= https://ninja-build.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= ninja-build
CONFLICTS= irc/ninja
USES= python
PORTSCOUT= limit:^1\.
PLIST_FILES= bin/ninja
PORTDOCS= README.md manual.asciidoc
OPTIONS_DEFINE= DOCS BASH ZSH
OPTIONS_DEFAULT= BASH ZSH
BASH_PLIST_FILES= share/bash-completion/completions/ninja
ZSH_PLIST_FILES= share/zsh/site-functions/_ninja
post-patch:
@${REINPLACE_CMD} "s/'-g', //" ${WRKSRC}/configure.py
do-build:
@(cd ${WRKSRC} && \
CXX="${CXX}" CFLAGS="${CXXFLAGS}" ${PYTHON_CMD} configure.py --bootstrap)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && \
${INSTALL_DATA} README.md doc/manual.asciidoc \
${STAGEDIR}${DOCSDIR})
do-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/
${INSTALL_DATA} ${WRKSRC}/misc/bash-completion \
${STAGEDIR}${PREFIX}/share/bash-completion/completions/ninja
do-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/zsh-completion \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_ninja
do-test: build
cd ${WRKSRC} && ./ninja ninja_test && ./ninja_test
.include <bsd.port.mk>
|