From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/lapce/
Date: Thu, 9 Nov 2023 03:11:32 +0000 (UTC) [thread overview]
Message-ID: <1699300002.41b59b9c05180d9b2d58ee184b7d141aaaab6caa.lanodan@gentoo> (raw)
commit: 41b59b9c05180d9b2d58ee184b7d141aaaab6caa
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Mon Nov 6 19:46:42 2023 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
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
+}
next reply other threads:[~2023-11-09 3:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 3:11 Haelwenn Monnier [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-08-30 13:16 David Roman
2024-04-25 21:49 Julien Roy
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=1699300002.41b59b9c05180d9b2d58ee184b7d141aaaab6caa.lanodan@gentoo \
--to=contact@hacktivis.me \
--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