From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/pulsar-bin/
Date: Mon, 22 May 2023 05:17:17 +0000 (UTC) [thread overview]
Message-ID: <1684662489.2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d.ceamac@gentoo> (raw)
commit: 2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d
Author: YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
AuthorDate: Sun May 21 09:41:43 2023 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun May 21 09:48:09 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a8c35bc
app-editors/pulsar-bin: new package, add 1.105.0
ebuild mostly modified from app-editors/atom-bin.
Signed-off-by: YiFei Zhu <zhuyifei1999 <AT> gmail.com>
app-editors/pulsar-bin/Manifest | 1 +
app-editors/pulsar-bin/metadata.xml | 11 +++
app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild | 91 ++++++++++++++++++++++++
3 files changed, 103 insertions(+)
diff --git a/app-editors/pulsar-bin/Manifest b/app-editors/pulsar-bin/Manifest
new file mode 100644
index 000000000..762558a4e
--- /dev/null
+++ b/app-editors/pulsar-bin/Manifest
@@ -0,0 +1 @@
+DIST pulsar-bin-1.105.0.tar.gz 228995179 BLAKE2B b4b185a161374590b68e2efbd5b2f37ec59278f71cc30ef519c3a67ae546ea9b73f2e2e50eabd8b07855e291704f4d994428f58dca24e144713e4996fe053b03 SHA512 f2ed05bebe81735c21ac80ff82ec051aebc9ec54e8f2ffce0e4e17f0fc6b221992ca5909271f04334211e494647cfef9f1555f0f439ee77c63488585f255f810
diff --git a/app-editors/pulsar-bin/metadata.xml b/app-editors/pulsar-bin/metadata.xml
new file mode 100644
index 000000000..8b9f94c21
--- /dev/null
+++ b/app-editors/pulsar-bin/metadata.xml
@@ -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>
diff --git a/app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild b/app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild
new file mode 100644
index 000000000..904a5f8a5
--- /dev/null
+++ b/app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild
@@ -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"
+}
next reply other threads:[~2023-05-22 5:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 5:17 Viorel Munteanu [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-08 11:18 [gentoo-commits] repo/proj/guru:master commit in: app-editors/pulsar-bin/ Lucio Sauer
2025-01-30 15:26 David Roman
2024-12-18 0:14 Julien Roy
2024-12-18 0:14 Julien Roy
2024-10-29 10:53 David Roman
2024-07-08 16:36 David Roman
2024-03-11 17:31 David Roman
2024-01-19 10:31 Arthur Zamarin
2023-12-23 7:32 Viorel Munteanu
2023-12-17 23:08 David Roman
2023-11-19 9:58 Viorel Munteanu
2023-10-21 11:08 David Roman
2023-09-21 10:09 David Roman
2023-08-21 12:43 Haelwenn Monnier
2023-07-17 11:40 Florian Schmaus
2023-07-16 6:18 Haelwenn Monnier
2023-06-17 7:03 Viorel Munteanu
2023-06-10 10:56 Florian Schmaus
2023-05-22 5:17 Viorel Munteanu
2023-05-22 5:17 Viorel Munteanu
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=1684662489.2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d.ceamac@gentoo \
--to=ceamac@gentoo.org \
--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