From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C805615817D for ; Mon, 10 Jun 2024 18:35:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E31CE2AA1; Mon, 10 Jun 2024 18:35:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 6D15EE2AA1 for ; Mon, 10 Jun 2024 18:35:07 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93D80335DEB for ; Mon, 10 Jun 2024 18:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A28E1C56 for ; Mon, 10 Jun 2024 18:35:05 +0000 (UTC) From: "Steffen Winter" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Steffen Winter" Message-ID: <1718043935.c89b19b77677008771b524be9be4d6ee967d4203.stffn.mobil@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-vcs/jj/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-vcs/jj/jj-9999.ebuild X-VCS-Directories: dev-vcs/jj/ X-VCS-Committer: stffn.mobil X-VCS-Committer-Name: Steffen Winter X-VCS-Revision: c89b19b77677008771b524be9be4d6ee967d4203 X-VCS-Branch: dev Date: Mon, 10 Jun 2024 18:35:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7bda952c-7457-4739-a972-27b3eb34e812 X-Archives-Hash: 41ebc6afe588412957d1093aa2c460f9 commit: c89b19b77677008771b524be9be4d6ee967d4203 Author: Steffen Winter proton me> AuthorDate: Mon Jun 10 18:10:48 2024 +0000 Commit: Steffen Winter freenet de> CommitDate: Mon Jun 10 18:25:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c89b19b7 dev-vcs/jj: add 9999 Signed-off-by: Steffen Winter proton.me> dev-vcs/jj/jj-9999.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/dev-vcs/jj/jj-9999.ebuild b/dev-vcs/jj/jj-9999.ebuild new file mode 100644 index 000000000..4895d0b65 --- /dev/null +++ b/dev-vcs/jj/jj-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cargo + +DESCRIPTION="Jujutsu - an experimental version control system" +HOMEPAGE="https://github.com/martinvonz/jj" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/martinvonz/jj.git" +else + SRC_URI=" + https://github.com/martinvonz/jj/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} + " + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD MIT MPL-2.0 Unicode-DFS-2016" +SLOT="0" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + >=app-arch/zstd-1.5.5:= + >=dev-libs/libgit2-1.7.2:= + dev-libs/openssl + net-libs/libssh2:= + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +pkg_setup() { + export LIBGIT2_NO_VENDOR=1 + export LIBSSH2_SYS_USE_PKG_CONFIG=1 + export OPENSSL_NO_VENDOR=1 + export PKG_CONFIG_ALLOW_CROSS=1 + export ZSTD_SYS_USE_PKG_CONFIG=1 +} + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_install() { + cargo_src_install --path cli +}