From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A3FE15806E for ; Sun, 21 May 2023 09:53:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55E76E0823; Sun, 21 May 2023 09:53:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31D9EE0823 for ; Sun, 21 May 2023 09:53:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 41206340D45 for ; Sun, 21 May 2023 09:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D2C2A4A for ; Sun, 21 May 2023 09:53:22 +0000 (UTC) From: "YiFei Zhu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "YiFei Zhu" Message-ID: <1684662489.2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d.zhuyifei1999@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-editors/pulsar-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/pulsar-bin/Manifest app-editors/pulsar-bin/metadata.xml app-editors/pulsar-bin/pulsar-bin-1.105.0.ebuild X-VCS-Directories: app-editors/pulsar-bin/ X-VCS-Committer: zhuyifei1999 X-VCS-Committer-Name: YiFei Zhu X-VCS-Revision: 2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d X-VCS-Branch: dev Date: Sun, 21 May 2023 09:53:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 82f0dfab-e84b-4a1c-9668-fd0742e08792 X-Archives-Hash: 433cb889c5e6b9790e0c13faa8ce69bf commit: 2a8c35bcd8f74a3572b1e5fb868e268acd6b8d3d Author: YiFei Zhu gmail com> AuthorDate: Sun May 21 09:41:43 2023 +0000 Commit: YiFei Zhu gmail com> 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 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 @@ + + + + + zhuyifei1999@gmail.com + YiFei Zhu + + + pulsar-edit/pulsar + + 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" +}