Skip to content
Snippets Groups Projects
Commit 6d2a9d6e authored by Alexey Dokuchaev's avatar Alexey Dokuchaev
Browse files

devel/edi: add an option to build the port against libclang

This enables code autocompletion and inline error reporting.
Allow to override LLVM_DEFAULT: contemporary LLVM versions
are quite demanding on machine resources and take long time
to build.  Those who build their own packages can mitigate
this by setting LLVM_VERSION to some lower, saner value e.g.
11, then enabling the option would be less costly.
parent 3968779d
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,19 @@ WWW= https://phab.enlightenment.org/w/projects/edi/
LIB_DEPENDS= libelementary.so:devel/efl
USES= desktop-file-utils gettext meson pkgconfig tar:xz
MESON_ARGS= -Dlibclang=false
USE_LDCONFIG= yes
PORTDOCS= AUTHORS NEWS TODO
OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS LIBCLANG
LIBCLANG_DESC= Autocomplete and inline error reporting via libclang
LIBCLANG_LIB_DEPENDS= libclang.so:devel/llvm${LLVM_VERSION}
LIBCLANG_MESON_ON= -Dlibclang-libdir=${LOCALBASE}/llvm${LLVM_VERSION}/lib \
-Dlibclang-headerdir=${LOCALBASE}/llvm${LLVM_VERSION}/include
LIBCLANG_MESON_OFF= -Dlibclang=false
LLVM_VERSION?= ${LLVM_DEFAULT}
post-patch:
@${REINPLACE_CMD} -e '/input : join_paths/d' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment