From nobody Sat Feb 11 12:17:10 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PDV3C0CQjz3q3rd; Sat, 11 Feb 2023 12:17:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDV3B6n29z3KSg; Sat, 11 Feb 2023 12:17:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676117831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/m91jZDJ1LYHoWToopDtCztH8ZRSd8Y/V6vO6C2dIoU=; b=MGKR2w9RfD73WVSMLOO/k3aixk4WW0WKnkFb2F7k0b6+851iuKWmKl0shQ1k7CfAGlWZ+L b1kePP9PonQfLPe/jR7RFc+npwI1+m5BFQ0p+w6OiJUWMwQlOfoEBC6h4KNzV6XUUGZuJY hbf07xAopa5Iwc1kL0cjMiGNb1lzLpXAmiEDJADUlbF7NXdqQxz7Vs16ae1H9V0zIGxhzQ /oJbwSB1OPDokIjl2iV2ywszBK9A8HYtZSOzMlPt9hyhVU4zNrbz8HI62DtDo2VdaVe8W1 S/VsVnxeQPW1B7Q57MRfdK77uUYLcdNMXoHcfHGunONHSBeqxSzc6cdGucLwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676117831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/m91jZDJ1LYHoWToopDtCztH8ZRSd8Y/V6vO6C2dIoU=; b=xNvGaNc9XBdt5Vda2xFss3h1rBQhFIAGlZbZGerKQyIVLwZGVn/bsq/ruxuoyMzi1rKPx3 6CYeT02AxILH+IvRSvX0Na8fOCB3gK5ErTOz8A2NRVgHN3WCDGmFp7gnoUVSKiT/TNGv76 psPT+lEOoTJZ4gfiFZl41bGkQdqddm7+uabsrd95yhG6Y/VYH2I+FvS194MBhi+l7cRv55 V4CQemWo3UJ8VGOoP+iwDLxWqvFlZqdzB5hxeINwtLmICwRAMA0MMTZkcXsXkNGHpP5aZ2 NumMimH9tc1v5snnp1fN3FhBu/m7NhrwYWcsO9CC2PTB78ENMvOBWY7F8j9/UA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676117831; a=rsa-sha256; cv=none; b=bb27OFtuEiO8mzvCdeVM4KYGZrlvy/QVCRKVddCpnpw8r6oLVfVe62uNB3B1AfEn6pGXIT xgjkqLNyje84ea4B+qai5w/qmgNZJhbTFQ381AhoFdmlBn89xErFf57jwRIDq3qZeGLhAG avZlYRiYrhkGb6TsTr/H0hPGQZnWGPFIrYb1/jrJnEbkYa0/DVfUWYl/+hY9VtndRRlht+ 1KnCmWy6tC/DwYf0noV2aeAxWy3i1DU3k4gPjI9RR32+bhLh3OvpjIuZYQX+jvBe6W9A9N oExkMp8416ksCpqA5lC0Dxzgg/sAVlMgbHk5ZEUoEDb2KivBpf7lHa2S+Hrzyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PDV3B5nXFzxcc; Sat, 11 Feb 2023 12:17:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31BCHAD1089241; Sat, 11 Feb 2023 12:17:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31BCHAJB089240; Sat, 11 Feb 2023 12:17:10 GMT (envelope-from git) Date: Sat, 11 Feb 2023 12:17:10 GMT Message-Id: <202302111217.31BCHAJB089240@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6d2a9d6effb75a1af999218db49949829c654ebc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=6d2a9d6effb75a1af999218db49949829c654ebc commit 6d2a9d6effb75a1af999218db49949829c654ebc Author: Alexey Dokuchaev AuthorDate: 2023-02-11 12:16:04 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-02-11 12:16:04 +0000 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. --- devel/edi/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devel/edi/Makefile b/devel/edi/Makefile index 53b2f1e4c004..b4451139fa6b 100644 --- a/devel/edi/Makefile +++ b/devel/edi/Makefile @@ -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' \