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 1BAAE15852A for ; Fri, 30 Aug 2024 13:16:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F99DE2A08; Fri, 30 Aug 2024 13:16:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 C4104E2A03 for ; Fri, 30 Aug 2024 13:16:16 +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 E8330343078 for ; Fri, 30 Aug 2024 13:16:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 296411F2F for ; Fri, 30 Aug 2024 13:16:13 +0000 (UTC) From: "David Roman" 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" Message-ID: <1724942664.8ca40a1fc31329aebe93e8839cc4c7051830865c.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/lapce/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/lapce/Manifest app-editors/lapce/lapce-0.4.2.ebuild X-VCS-Directories: app-editors/lapce/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 8ca40a1fc31329aebe93e8839cc4c7051830865c X-VCS-Branch: master Date: Fri, 30 Aug 2024 13:16:13 +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: 29593c70-414f-4d32-ab0e-f55a2754b7b4 X-Archives-Hash: eeb44dd08d935abfb75a832e8aad4dfa commit: 8ca40a1fc31329aebe93e8839cc4c7051830865c Author: Takuya Wakazono gmail com> AuthorDate: Thu Aug 29 13:48:12 2024 +0000 Commit: David Roman gmail 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 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 +}