public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/lapce/
Date: Fri, 30 Aug 2024 13:16:13 +0000 (UTC)	[thread overview]
Message-ID: <1724942664.8ca40a1fc31329aebe93e8839cc4c7051830865c.davidroman@gentoo> (raw)

commit:     8ca40a1fc31329aebe93e8839cc4c7051830865c
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Thu Aug 29 13:48:12 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Aug 29 14:44:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ca40a1f

app-editors/lapce: add 0.4.2

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 app-editors/lapce/Manifest           |  2 ++
 app-editors/lapce/lapce-0.4.2.ebuild | 65 ++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/app-editors/lapce/Manifest b/app-editors/lapce/Manifest
index 0acb3dffe..d0c4cfcee 100644
--- a/app-editors/lapce/Manifest
+++ b/app-editors/lapce/Manifest
@@ -1,2 +1,4 @@
 DIST lapce-0.4.0-vendor.tar.gz 140918612 BLAKE2B dfbbd29f473180f98bd9f419559f0012b12515faf4ce41f0ecba2e47427574c101cc39b575848a5b811fa0499c455e661261e9a7f8b9937197671cd0e39582b0 SHA512 e47f29313a47c0ab5f045103359865050ae25b809593509e9efe5e3e4e1f72708524452e89925dbd6139b88a3d7b5be592b69e344c13bb1e3e0c8e9d8d550a2b
 DIST lapce-0.4.0.tar.gz 2072771 BLAKE2B 92e86fcf42c44f412651d837cfe3b185f68d7ee82d69e8e42e576253a9f7b81a245418c4c9cfc5f10ef90b1f54c03b046595ae31d2aa981164a47f68e23dabb4 SHA512 27b8a492cda8dfd5111b9eff12ac02781051f30319e6c83b81af5a31df8a44dd57beb2dd1af2414a95b0cc726de4701ea5876f3b79455dc08b0f4baa84b89bdd
+DIST lapce-0.4.2-vendor.tar.gz 140107892 BLAKE2B c0a47c8833e26afc6c3fbd60afe7f490633b066db81dc9e7deba567fa0f154d5f7515ce79b924dded01951a2157bad9feed753455bf750e4c68b092654e2b18c SHA512 91863dd8e51c2eccf8d60ed7158973a6d2734f4913accfb693129399184c273ae8831ab97ac70b4fe79fe20247da572ffbb711b565991f8c075c96889beb7017
+DIST lapce-0.4.2.tar.gz 2653073 BLAKE2B 93bdb36312829c795a9d610924c81278535092fe2969b5ff7ebc594e95b422351353ba2ecc5ec498c3969a6424d9a4523c0c88b50065c50b07881eced0337125 SHA512 3e539b39a718dd3406d17dde572935af98acd0331d1b379c658dc39fc8cade6db2cbfa4ff20c0f801cdb3943a595c5bc4ec4f2baa86e31e3840d1bb7b8612233

diff --git a/app-editors/lapce/lapce-0.4.2.ebuild b/app-editors/lapce/lapce-0.4.2.ebuild
new file mode 100644
index 000000000..91bc051db
--- /dev/null
+++ b/app-editors/lapce/lapce-0.4.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022-2024 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:=
+	dev-libs/libgit2:=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	dev-build/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.toml" -e '/source.crates-io/d'  || die
+	sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d'  || die
+	sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d'  || die
+	cat "${WORKDIR}/vendor/vendor-config.toml" >> "${ECARGO_HOME}/config.toml" || die
+}
+
+src_compile() {
+	export RELEASE_TAG_NAME=v"${PV}"
+	cargo_src_compile
+}
+
+src_install() {
+	dobin "$(cargo_target_dir)"/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
+}


             reply	other threads:[~2024-08-30 13:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30 13:16 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-30 13:16 [gentoo-commits] repo/proj/guru:master commit in: app-editors/lapce/ David Roman
2024-08-30 13:16 David Roman
2024-08-30 13:16 David Roman
2024-04-25 21:49 Julien Roy
2023-11-09  3:11 Haelwenn Monnier
2023-11-06 14:18 David Roman
2023-11-06 14:18 David Roman
2023-06-04  6:20 Viorel Munteanu
2023-06-04  6:20 Viorel Munteanu
2023-05-27 17:22 Viorel Munteanu
2023-03-16  8:41 Florian Schmaus
2023-03-16  8:41 Florian Schmaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1724942664.8ca40a1fc31329aebe93e8839cc4c7051830865c.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox