app-edtors/zed-0.145.1 (bin) added.

This commit is contained in:
Micha Glave
2024-07-31 14:50:28 +02:00
parent 650b8e3358
commit 53893dc688
4 changed files with 52 additions and 72 deletions

1
app-editors/zed/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST zed-0.145.1-amd64.tar.gz 57048432 BLAKE2B 2831db6e753164f8e6479ab7dc43a6d800a6427279d6a282adaab182df8388d39ffd8132ad364ae773ae30065c1f537df4751075de11639521fed729ea87b4fe SHA512 7963b2a8c5fcb4c664b39d1fc9574f81800b83142435954372c9b0fcf268e61d9c52570c925fccadaf70236e5d29ad1488bb49713dd95866fdab92b4049253f4

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop pax-utils
MY_PN="${PN/-bin}"
MY_P=${MY_PN}-${PV}
DESCRIPTION="A high-performance, multiplayer code editor"
HOMEPAGE="https://zed.dev"
SRC_URI="
amd64? ( https://github.com/zed-industries/zed/releases/download/v${PV}/zed-linux-x86_64.tar.gz -> ${MY_P}-amd64.tar.gz )
"
RESTRICT="mirror strip bindist"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
>=media-libs/libpng-1.2.46
>=x11-libs/gtk+-2.24.8-r1:2
x11-libs/cairo
"
RDEPEND="
${DEPEND}
"
DOCS=( )
QA_PRESTRIPPED="opt/${MY_PN}/code"
QA_PREBUILT="opt/${MY_PN}/code"
pkg_setup(){
use amd64 && S="${WORKDIR}/zed.app"
}
src_install(){
pax-mark m code
mkdir -p "${D}/opt/${MY_PN}"
cp -r . "${D}/opt/${MY_PN}/"
dosym "/opt/${MY_PN}/bin/zed" "/usr/bin/zedit"
make_desktop_entry "${MY_PN}" "Zed Editor" "${MY_PN}" "Utility;TextEditor;Development;IDE"
newicon "${S}/share/icons/hicolor/512x512/apps/zed.png" ${MY_PN}.png
einstalldocs
}