From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1729069-garchives=archives.gentoo.org@lists.gentoo.org> Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 718221584F2 for <garchives@archives.gentoo.org>; Tue, 18 Mar 2025 09:26:04 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 58FB83432B9 for <garchives@archives.gentoo.org>; Tue, 18 Mar 2025 09:26:04 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A325D1103C7; Tue, 18 Mar 2025 09:26:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 9CBE61103C7 for <gentoo-commits@lists.gentoo.org>; Tue, 18 Mar 2025 09:26:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51892343248 for <gentoo-commits@lists.gentoo.org>; Tue, 18 Mar 2025 09:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78A5B23BB for <gentoo-commits@lists.gentoo.org>; Tue, 18 Mar 2025 09:25:58 +0000 (UTC) From: "David Roman" <davidroman96@gmail.com> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" <davidroman96@gmail.com> Message-ID: <1742149975.53fecf70e7e3da255831a1a0519f8cb1418b2fc2.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-vcs/jj/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-vcs/jj/jj-9999.ebuild dev-vcs/jj/metadata.xml X-VCS-Directories: dev-vcs/jj/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 53fecf70e7e3da255831a1a0519f8cb1418b2fc2 X-VCS-Branch: master Date: Tue, 18 Mar 2025 09:25:58 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9a0181de-b1f0-404f-a95f-18929e8ab676 X-Archives-Hash: 099d017f4b5d825404fdeda65a5905fd commit: 53fecf70e7e3da255831a1a0519f8cb1418b2fc2 Author: demize <demize <AT> unstable <DOT> systems> AuthorDate: Sun Mar 16 18:29:04 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Sun Mar 16 18:32:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=53fecf70 dev-vcs/jj: add USE flags to live ebuild This adds a git2 USE flag (enabled by default) to match the git2 feature flag added by upstream. This also adds a gix-max-performance USE flag to match an existing featre flag. Upstream recommends this be enabled by packagers, but I've left it disabled by default here, as it comes with both a dependency on cmake (for an unfortunately-vendored zlib-ng) and potential incompatibilties (since it uses assembly versions of SHA1 code in gitoxide). Signed-off-by: demize <demize <AT> unstable.systems> dev-vcs/jj/jj-9999.ebuild | 29 ++++++++++++++++++++++++----- dev-vcs/jj/metadata.xml | 6 ++++++ 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/dev-vcs/jj/jj-9999.ebuild b/dev-vcs/jj/jj-9999.ebuild index 8fda65f02..6af483cb5 100644 --- a/dev-vcs/jj/jj-9999.ebuild +++ b/dev-vcs/jj/jj-9999.ebuild @@ -17,13 +17,22 @@ LICENSE+=" Apache-2.0 BSD MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 " SLOT="0" +IUSE=" + +git2 + gix-max-performance +" -BDEPEND="virtual/pkgconfig" +BDEPEND=" + virtual/pkgconfig + gix-max-performance? ( dev-build/cmake ) +" DEPEND=" - >=dev-libs/libgit2-1.9.0:0/1.9 - dev-libs/openssl:= - net-libs/libssh2:= - sys-libs/zlib + git2? ( + >=dev-libs/libgit2-1.9.0:0/1.9 + sys-libs/zlib + dev-libs/openssl:= + net-libs/libssh2:= + ) " RDEPEND=" ${DEPEND} @@ -45,6 +54,16 @@ src_unpack() { cargo_live_src_unpack } +src_configure() { + local myfeatures=( + $(usev git2) + $(usev gix-max-performance) + watchman + git + ) + cargo_src_configure --no-default-features +} + src_install() { cargo_src_install --path cli } diff --git a/dev-vcs/jj/metadata.xml b/dev-vcs/jj/metadata.xml index 86d304325..11f21661e 100644 --- a/dev-vcs/jj/metadata.xml +++ b/dev-vcs/jj/metadata.xml @@ -8,4 +8,10 @@ <upstream> <remote-id type="github">jj-vcs/jj</remote-id> </upstream> + <use> + <flag name="git2">Enables transitory support for <pkg>dev-libs/libgit2</pkg>.</flag> + <flag name="gix-max-performance"> + Enables the "max-performance" feature when building gitoxide, allowing gitoxide to achieve better performance at the cost of wider compatibility. + </flag> + </use> </pkgmetadata>