public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: app-editors/edit/
@ 2025-06-25 23:16 Haelwenn Monnier
  0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2025-06-25 23:16 UTC (permalink / raw
  To: gentoo-commits

commit:     55519d017dd101565cbbecbd6b9849bd6e98affa
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Jun 25 18:38:47 2025 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed Jun 25 18:39:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55519d01

app-editors/edit: new package, add 1.2.0

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 app-editors/edit/Manifest          |  2 ++
 app-editors/edit/edit-1.2.0.ebuild | 61 ++++++++++++++++++++++++++++++++++++++
 app-editors/edit/metadata.xml      | 12 ++++++++
 3 files changed, 75 insertions(+)

diff --git a/app-editors/edit/Manifest b/app-editors/edit/Manifest
new file mode 100644
index 0000000000..d3fc2aa68a
--- /dev/null
+++ b/app-editors/edit/Manifest
@@ -0,0 +1,2 @@
+DIST edit-1.2.0-crates.tar.xz 8405144 BLAKE2B 8c9ecb1b05eb04cd36c3e33f6d34ce0ea3445c2b2813ce9081e622e26f29e9c2fd9d8390b8516e00dfe1f037300722de4498ded25a88633175896c0eb55ed43f SHA512 d9e7314f2c4a24494da12f1d0ed7526710269311b6c2d768a495873e475ff8f0ce81740e83bf8810e00306bdd7dcb78eb63f799f70ad4ce1e5b94180a208c218
+DIST edit-1.2.0.tar.gz 457585 BLAKE2B 7babfe066155d98d88945d0c2952ecaeb9074a3ca9fa2c4925b0a26591f63be268558cdaea8637d5e67fdf03975a7fbf3726a77b23b4b632a7b8b751acaadbfa SHA512 72d32f0b46c32195e9198a02be650ad607b3c4ebc36f62d73e38e36f2660b4ed3c51bd2a51a0326c639a45133e7b627a3002946e4047e04c8c5ef5169d6aca02

diff --git a/app-editors/edit/edit-1.2.0.ebuild b/app-editors/edit/edit-1.2.0.ebuild
new file mode 100644
index 0000000000..907e442c17
--- /dev/null
+++ b/app-editors/edit/edit-1.2.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.14.0
+
+EAPI=8
+
+CRATES=""
+
+RUST_MIN_VER="1.87.0"
+
+inherit cargo desktop xdg-utils
+
+DESCRIPTION="Microsoft edit"
+HOMEPAGE="https://github.com/microsoft/edit"
+SRC_URI="
+	https://github.com/microsoft/edit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+	https://github.com/freijon/edit/releases/download/v${PV}/${P}-crates.tar.xz
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 MIT Unicode-3.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+	dev-libs/icu
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_configure() {
+		# high magic to allow system-libs
+		export PKG_CONFIG_ALLOW_CROSS=1
+
+		export RUSTC_BOOTSTRAP=1
+
+		cargo_src_configure
+}
+
+src_install() {
+		cargo_src_install
+
+		doicon -s scalable "assets/${PN}.svg"
+		domenu "assets/com.microsoft.${PN}.desktop"
+}
+
+pkg_postinst() {
+		xdg_desktop_database_update
+		xdg_icon_cache_update
+}
+
+pkg_postrm() {
+		xdg_desktop_database_update
+		xdg_icon_cache_update
+}

diff --git a/app-editors/edit/metadata.xml b/app-editors/edit/metadata.xml
new file mode 100644
index 0000000000..28bf14d2fa
--- /dev/null
+++ b/app-editors/edit/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<name>Jonas Frei</name>
+		<email>freijon@pm.me</email>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">microsoft/edit</remote-id>
+		<bugs-to>https://github.com/microsoft/edit/issues</bugs-to>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-06-25 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 23:16 [gentoo-commits] repo/proj/guru:master commit in: app-editors/edit/ Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox