blob: 4a5a9ac38e0da4b050a03c729f84ebb6b89ad5f8 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Created by: Richard Gallamore <ultima@freebsd.org>
# $FreeBSD$
PORTNAME= YouCompleteMe
DISTVERSION= g20191130
CATEGORIES= devel
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ultima@FreeBSD.org
COMMENT= Code-completion engine for Vim
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.txt
RUN_DEPENDS= vim:editors/vim \
${LOCALBASE}/lib/libboost_thread.so:devel/boost-libs \
${LOCALBASE}/lib/${PY_BOOST} \
${PYTHON_PKGNAMEPREFIX}bottle>0:www/py-bottle@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}frozendict>0:devel/py-frozendict@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jedi>0:devel/py-jedi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}parso>0:textproc/py-parso@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-futures>0:www/py-requests-futures@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}waitress>0:www/py-waitress@${PY_FLAVOR} \
${PY_FUTURES}
USES= cmake python
USE_PYTHON= flavors
USE_GITHUB= yes
GH_ACCOUNT= ycm-core
GH_TAGNAME= 1386c6b
GH_TUPLE= ycm-core:ycmd:a374320:ycm/third_party/ycmd \
ycm-core:regex:cc538bb:ycmd5/third_party/ycmd/third_party/cregex
LLVM_VER= 90
CMAKE_SOURCE_PATH= ${WRKSRC}/third_party/ycmd/cpp
PLIST_SUB= VIMFILESDIR=share/vim/vimfiles \
YCMDDIR=share/vim/vimfiles/third_party/ycmd \
PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
SUB_FILES= pkg-message pkg-install pkg-deinstall
SUB_LIST= VIMFILESDIR="${VIMFILESDIR}" \
FIND="${FIND}"
OPTIONS_DEFINE= C REGEX
OPTIONS_DEFAULT= C REGEX
OPTIONS_SUB= yes
C_DESC= C-family Semantic Completion Support
C_CMAKE_ON= -DPATH_TO_LLVM_ROOT=${LOCALBASE}/llvm${LLVM_VER}
C_LIB_DEPENDS= libclang.so:devel/llvm${LLVM_VER}
VIMFILESDIR= ${PREFIX}/share/vim/vimfiles
CMAKE_ARGS_PY3= -DUSE_PYTHON2:BOOL=OFF
CMAKE_ARGS= ${CMAKE_ARGS_PY${PYTHON_MAJOR_VER}}
post-patch-REGEX-on:
${PRINTF} "add_subdirectory(../third_party/cregex ${WRKDIR}/.build-regex)" \
>>${WRKSRC}/third_party/ycmd/cpp/CMakeLists.txt
do-install:
${MKDIR} ${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/third_party
(cd ${WRKSRC} && ${COPYTREE_SHARE} "autoload doc plugin python" \
"${STAGEDIR}${VIMFILESDIR}")
(cd ${WRKSRC}/third_party/ycmd && ${COPYTREE_SHARE} \
"ycmd CORE_VERSION cpp" \
"${STAGEDIR}${VIMFILESDIR}/third_party/ycmd")
(cd ${WRKSRC}/third_party/ycmd/third_party && ${COPYTREE_SHARE} \
"clang cregex tern_runtime" \
"${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/third_party")
${RM} -rf ${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/cpp/ycm/tests \
${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/ycmd/tests
${INSTALL_LIB} ${WRKSRC}/third_party/ycmd/ycm_core.so \
${STAGEDIR}${VIMFILESDIR}/third_party/ycmd
do-install-REGEX-on:
(cd ${WRKSRC}/third_party/ycmd/third_party && ${COPYTREE_SHARE} \
"cregex" "${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/third_party")
${INSTALL_LIB} ${WRKSRC}/third_party/ycmd/third_party/cregex/regex_${PYTHON_MAJOR_VER}/_regex.so \
${STAGEDIR}${VIMFILESDIR}/third_party/ycmd/third_party/cregex/regex_${PYTHON_MAJOR_VER}
.include <bsd.port.mk>
|