app-editors/edit: new package, add 1.2.0

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-06-25 20:38:47 +02:00
parent 2843ff6e18
commit 55519d017d
3 changed files with 75 additions and 0 deletions

View File

@@ -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
}