From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1568479-garchives=archives.gentoo.org@lists.gentoo.org>
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 1E3F2158089
	for <garchives@archives.gentoo.org>; Mon,  6 Nov 2023 19:48:23 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 54EE32BC013;
	Mon,  6 Nov 2023 19:48:22 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 2C1E12BC013
	for <gentoo-commits@lists.gentoo.org>; Mon,  6 Nov 2023 19:48:22 +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 04EA3335C8E
	for <gentoo-commits@lists.gentoo.org>; Mon,  6 Nov 2023 19:48:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 16BAF1324
	for <gentoo-commits@lists.gentoo.org>; Mon,  6 Nov 2023 19:48:19 +0000 (UTC)
From: "Pascal Jäger" <pascal.jaeger@leimstift.de>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Pascal Jäger" <pascal.jaeger@leimstift.de>
Message-ID: <1699300002.41b59b9c05180d9b2d58ee184b7d141aaaab6caa.pascal.jaeger@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-editors/lapce/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: app-editors/lapce/lapce-0.3.0-r1.ebuild
X-VCS-Directories: app-editors/lapce/
X-VCS-Committer: pascal.jaeger
X-VCS-Committer-Name: Pascal Jäger
X-VCS-Revision: 41b59b9c05180d9b2d58ee184b7d141aaaab6caa
X-VCS-Branch: dev
Date: Mon,  6 Nov 2023 19:48:19 +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: 1af4e8be-d3df-4752-83e9-eeb5d94bb18a
X-Archives-Hash: 915fde14be196020cfdd1c731e034ea8

commit:     41b59b9c05180d9b2d58ee184b7d141aaaab6caa
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Mon Nov  6 19:46:42 2023 +0000
Commit:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
CommitDate: Mon Nov  6 19:46:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=41b59b9c

app-editors/lapce: fix build of nightly when on stable version

Closes: https://bugs.gentoo.org/909102

Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>

 app-editors/lapce/lapce-0.3.0-r1.ebuild | 65 +++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/app-editors/lapce/lapce-0.3.0-r1.ebuild b/app-editors/lapce/lapce-0.3.0-r1.ebuild
new file mode 100644
index 0000000000..423cbd376c
--- /dev/null
+++ b/app-editors/lapce/lapce-0.3.0-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+CRATES=" "
+
+inherit cargo desktop xdg-utils
+
+DESCRIPTION="Lightning-fast and Powerful Code Editor written in Rust "
+HOMEPAGE="https://lapce.dev/"
+SRC_URI="
+	https://github.com/lapce/lapce/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	https://github.com/lapce/lapce/releases/download/v${PV}/vendor.tar.gz -> ${P}-vendor.tar.gz
+"
+
+LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD BSD-2 Boost-1.0 CC0-1.0 CeCILL-2.1 GPL-2 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+	x11-libs/gtk+:3
+	media-libs/fontconfig
+	sys-libs/zlib
+	x11-libs/libxcb:=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	dev-util/cmake
+	sys-devel/gcc
+	virtual/pkgconfig
+	>=virtual/rust-1.64
+"
+
+# rust does not use *FLAGS from make.conf, silence portage warning
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+src_unpack() {
+	default
+	cargo_gen_config
+	ln -s "${WORKDIR}/vendor/" "${WORKDIR}/lapce-${PV}/vendor" || die
+	sed -i "${ECARGO_HOME}/config" -e '/source.crates-io/d'  || die
+	sed -i "${ECARGO_HOME}/config" -e '/replace-with = "gentoo"/d'  || die
+	sed -i "${ECARGO_HOME}/config" -e '/local-registry = "\/nonexistent"/d'  || die
+	cat "${WORKDIR}/vendor/vendor-config.toml" >> "${ECARGO_HOME}/config" || die
+}
+
+src_compile() {
+	export RELEASE_TAG_NAME=v0.3.0
+	cargo_src_compile
+}
+
+src_install() {
+	dobin target/release/lapce
+	dobin target/release/lapce-proxy
+	domenu extra/linux/dev.lapce.lapce.desktop
+	newicon extra/images/logo.png dev.lapce.lapce.png
+}
+
+pkg_postinst() {
+	xdg_desktop_database_update
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+}