mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
app-editors/pulsar-bin: new package, add 1.105.0
ebuild mostly modified from app-editors/atom-bin. Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
This commit is contained in:
1
app-editors/pulsar-bin/Manifest
Normal file
1
app-editors/pulsar-bin/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pulsar-bin-1.105.0.tar.gz 228995179 BLAKE2B b4b185a161374590b68e2efbd5b2f37ec59278f71cc30ef519c3a67ae546ea9b73f2e2e50eabd8b07855e291704f4d994428f58dca24e144713e4996fe053b03 SHA512 f2ed05bebe81735c21ac80ff82ec051aebc9ec54e8f2ffce0e4e17f0fc6b221992ca5909271f04334211e494647cfef9f1555f0f439ee77c63488585f255f810
|
||||
11
app-editors/pulsar-bin/metadata.xml
Normal file
11
app-editors/pulsar-bin/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zhuyifei1999@gmail.com</email>
|
||||
<name>YiFei Zhu</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">pulsar-edit/pulsar</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
91
app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild
Normal file
91
app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild
Normal file
@@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop xdg
|
||||
|
||||
DESCRIPTION="A Community-led Hyper-Hackable Text Editor"
|
||||
HOMEPAGE="https://pulsar-edit.dev/"
|
||||
SRC_URI="https://github.com/pulsar-edit/pulsar/releases/download/v${PV}/Linux.pulsar-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
# Need different downloads for other architectures; untested
|
||||
KEYWORDS="-* ~amd64"
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/pulsar-${PV}"
|
||||
|
||||
RDEPEND="
|
||||
app-accessibility/at-spi2-atk
|
||||
app-accessibility/at-spi2-core
|
||||
app-crypt/libsecret
|
||||
dev-libs/atk
|
||||
dev-libs/nss
|
||||
dev-libs/openssl
|
||||
dev-libs/openssl-compat
|
||||
dev-vcs/git
|
||||
media-libs/alsa-lib
|
||||
net-print/cups
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+
|
||||
x11-libs/libnotify
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXi
|
||||
x11-libs/libxkbfile
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango
|
||||
"
|
||||
|
||||
QA_PREBUILT="/opt/Pulsar/*"
|
||||
QA_PRESTRIPPED="/opt/Pulsar/resources/*" # Files are already stripped
|
||||
|
||||
src_prepare(){
|
||||
default
|
||||
|
||||
# We do not install licenses
|
||||
rm resources/LICENSE.md || die "Failed to remove LICENSE"
|
||||
}
|
||||
|
||||
src_install(){
|
||||
insinto /opt/Pulsar
|
||||
doins -r "${S}"/*
|
||||
dosym ../../opt/Pulsar/resources/pulsar.sh "${EPREFIX}"/usr/bin/pulsar
|
||||
fperms +x /opt/Pulsar/resources/pulsar.sh
|
||||
fperms +x /opt/Pulsar/pulsar
|
||||
|
||||
# I will use only npm provided with package itself
|
||||
# as nodejs is not required to make it working (and it is really big).
|
||||
fperms +x /opt/Pulsar/resources/app/ppm/bin/{apm,node,npm}
|
||||
|
||||
# Bug 798459
|
||||
fperms +x /opt/Pulsar/resources/app.asar.unpacked/node_modules/{vscode-ripgrep/bin/rg,dugite/git/bin/git}
|
||||
|
||||
doicon resources/pulsar.png
|
||||
make_desktop_entry "/opt/pulsar-bin/pulsar %U" "Pulsar" "pulsar" \
|
||||
"GNOME;GTK;Utility;TextEditor;Development;" \
|
||||
"GenericName=Text Editor\nMimeType=text/plain;\nStartupNotify=true\nStartupWMClass=pulsar"
|
||||
|
||||
einstalldocs
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
xdg_desktop_database_update
|
||||
|
||||
elog "To migrate configurations & saved state from Atom Editor, execute:"
|
||||
elog " cp -a \$HOME/.atom \$HOME/.pulsar"
|
||||
elog " cp -a \$HOME/.config/Atom \$HOME/.config/Pulsar"
|
||||
}
|
||||
Reference in New Issue
Block a user