From nobody Sat Feb 11 12:37:58 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 4PDVWH22t4z3q5qH; Sat, 11 Feb 2023 12:38:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDVWH1G0Gz3MBN; Sat, 11 Feb 2023 12:38:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676119083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tFdI16SGhw1EhJduVgfCtw23kimk486ti/TxwLJFp/I=; b=M7N6hPPlAcfjiEuJotxDXBO9IOvNKbBhPXClJ+h5xSSH/udg5fSpZ8dtU4YDVXhuJqWC+F kJFiKNuQKylseKkfgxPN3V/IuO1v88DGOCS1d4pzPLisa2FiiwO3zhLqSz6Y7B2P/I+qvj 98sU+Vn/cGv5VUbihNiaxGNNYdKzHnjihITbvn81MDbi5vv48IbMX+26e+nNuOv5BcTm56 iNEHrN5NdFghrqHa1p5+86uMFr4cxgFlQPOVKaHrKQM94dr5aiQOURKVfGPTJx4Qt8mNhw ICV9TMi/Q7pzRB/xA7sQx2XCUZTBckGd+NBEtoA80MlSrapWVFhV2nU0bOXSiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676119083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tFdI16SGhw1EhJduVgfCtw23kimk486ti/TxwLJFp/I=; b=tIkgan/cK+sd2j8NOYcZSfKwNeoYQcwWYmQe+f8VTzRcCXYZIisRlI6a0sZzTvBIzSKpng y3BNO0KeRCFysPtPMQIMJMTln1vnOpkGcC8yO7rSXpbwv79Sq1HSKMl69orEFoP/qAQI2Y yc2l+L9P7/kM9m68PmanVYSFuswCYbCd+zKWwqOjUgqhzeBshHQpKcpIxAy0UP2v7Yt+RF xDDwB3YxRzYtT36zNQqP5qRb1QK3dDtplnU6DBGr3eBAMFdfOCiBTdOTGortaAnYEA+APa vrFg4az0DnM6LW8trdKlMQPS7f7k4RFute+5pE7zSrk89hbpWisBH1sJWLNLoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676119083; a=rsa-sha256; cv=none; b=HqOS4KrT13gnd/Qdydz4t1XzcBEnvWXR7Fy+SGrIEa8MuiBeEaBTG7GSPmy56eYc3MdfQ1 N6bRODOXHM9mhQpW8UXD7vqN1KjN25/WWaQ3qtAuBVe5Rphk5l/cv/9bcBVufoID293tDl iDKNvg6dzyUrDxCcBVkTvNkexa8Dah68EaPEFih6325/L7Pf4iWxftsYPsc9rcw/qfahK3 ScudPozQlz/zBMrFfwBDr16SUv8CXriRhKQ55jCbvhGQN6Aka36phVOqlapoKgLwSPmmwD cR5fh/2fFpFBL/hK8MwwWXnIYDWzZaL2fWV7M1JIs8Und+6uGdv54SuwqeGFcA== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 06AC611E25; Sat, 11 Feb 2023 12:38:02 +0000 (UTC) From: Jan Beich To: Alexey Dokuchaev Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 6d2a9d6effb7 - main - devel/edi: add an option to build the port against libclang In-Reply-To: <202302111217.31BCHAJB089240@gitrepo.freebsd.org> (Alexey Dokuchaev's message of "Sat, 11 Feb 2023 12:17:10 GMT") References: <202302111217.31BCHAJB089240@gitrepo.freebsd.org> Date: Sat, 11 Feb 2023 13:37:58 +0100 Message-ID: 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 X-ThisMailContainsUnwantedMimeParts: N Alexey Dokuchaev writes: > +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} Can be simplified via USES=llvm e.g., diff --git a/devel/edi/Makefile b/devel/edi/Makefile index b4451139fa6b..1f360a21fee0 100644 --- a/devel/edi/Makefile +++ b/devel/edi/Makefile @@ -18,12 +18,10 @@ PORTDOCS= AUTHORS NEWS TODO 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} +LIBCLANG_USES= llvm:lib +LIBCLANG_MESON_TRUE= libclang +LIBCLANG_MESON_ON= -Dlibclang-libdir="${LLVM_PREFIX}/lib" \ + -Dlibclang-headerdir="${LLVM_PREFIX}/include" post-patch: @${REINPLACE_CMD} -e '/input : join_paths/d' \