diff --git a/app-editors/pulsar-bin/Manifest b/app-editors/pulsar-bin/Manifest index 5d0597a1cf..7078e68a30 100644 --- a/app-editors/pulsar-bin/Manifest +++ b/app-editors/pulsar-bin/Manifest @@ -2,3 +2,5 @@ DIST pulsar-bin-1.124.0-amd64.tar.gz 228937874 BLAKE2B 8d234e0369c4dc4db49a66a96 DIST pulsar-bin-1.124.0-arm64.tar.gz 223764919 BLAKE2B 9ba2388912002342c376022d609a70042f41e0a97210f4a6fbcab1e54db1247096914bc9925aaccb1490c3fa850e75e029cfb811cd33cf988aa6eed0afc2d95c SHA512 02e4b066d01020d424e12b7f9795a35d4e0ca861333fc018b8d69b0e9d288aebe70a1536f9a652f375731b54df636d20945838d36877089cac8a8890c4aa11c7 DIST pulsar-bin-1.125.0-amd64.tar.gz 228941722 BLAKE2B 9ed9b8ae4ffa0e560a67bcea326e900594b51536371ca061051e8a3663378fdce5875ee7b59d49c4f3047e636eb0ea12fd73c8810422020e6bf324bda989fb27 SHA512 c65a38791a6666ef1e72c54c32dc4dffd6a54bf7ebd7b7c966ce23c202b06a17383f7c10e7b2be9597c318796cc5704ff83a62ca2a31dccd7e0fe49bbbf6f732 DIST pulsar-bin-1.125.0-arm64.tar.gz 223767574 BLAKE2B f6128e2a95764c2c8888131ab620f317bc8c5419e58456779bfbc99cef73196c5e77842eb72d221b68fe723dc63ce6b5d80a2a9d56310bc78ae6bdf0e59329b9 SHA512 b957d05fd7a708725eff8d98bc8c701890bf566d2b5fd32a74aafdd6c49386ed8e9d4f56baa75f65895d612444167b1c1425914dae8ba07b3b24a2d4060684ce +DIST pulsar-bin-1.126.0-amd64.tar.gz 224422360 BLAKE2B 57824599e80433b38f25ec105a36f63e5b5959467e7e5ba349f889f6fbabc31eb667e855a7cd032460aa9887d0e8f1df5c26968398a9f8cfaad61e9943367aa7 SHA512 558854389d5101be8b8ae53811a6eae4156e182009f95398b5ca081843914807d7f7bcb1dceb7d74d8191d486433ec4c08fa8dfcc33b0f2a5cdd8d93e4599c72 +DIST pulsar-bin-1.126.0-arm64.tar.gz 219253378 BLAKE2B c24d60ffac4c6e5e6063de60c89c6cd655850f3d5f92f92292db72daa97a4997b1978873480fc6f6e41c0032afd13e49d332c42a20416f427d38d56aca75d181 SHA512 42a4e20d67164b8048a006b92dabe4d7a7b2b3b9eab9df0694e3e1b68ac2990212ec858384a6da60f6a872b6a6af8673699a1cdd4c776829076d0969b470b142 diff --git a/app-editors/pulsar-bin/pulsar-bin-1.126.0.ebuild b/app-editors/pulsar-bin/pulsar-bin-1.126.0.ebuild new file mode 100644 index 0000000000..140cf5157b --- /dev/null +++ b/app-editors/pulsar-bin/pulsar-bin-1.126.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2025 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/" + +ur=https://github.com/pulsar-edit/pulsar/releases/download +SRC_URI=" + amd64? ( ${ur}/v${PV}/Linux.pulsar-${PV}.tar.gz -> ${P}-amd64.tar.gz ) + arm64? ( ${ur}/v${PV}/ARM.Linux.pulsar-${PV}-arm64.tar.gz -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}/pulsar-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" + +# binary package; no tests available +RESTRICT="test" + +RDEPEND=" + app-accessibility/at-spi2-core + dev-libs/nspr + app-crypt/libsecret + dev-libs/expat + dev-libs/glib + dev-libs/nss + dev-libs/openssl-compat + dev-vcs/git + media-libs/alsa-lib + media-libs/mesa + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/zlib + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3[X] + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libxshmfence + x11-libs/libXrandr + x11-libs/pango +" + +QA_PREBUILT="opt/Pulsar/*" +QA_PRESTRIPPED="opt/Pulsar/resources/*" # Files are already stripped + +src_unpack(){ + default + + if use arm64; then + mv "pulsar-${PV}-arm64" "pulsar-${PV}" || die + fi +} + +src_prepare(){ + default + + # We do not install licenses + rm resources/LICENSE.md || die "Failed to remove LICENSE" +} + +src_install(){ + dodir /opt/Pulsar + mv "${S}"/* "${ED}"/opt/Pulsar + + dosym -r /opt/Pulsar/resources/pulsar.sh /usr/bin/pulsar + + # Bug #906939 + if use amd64; then + rm "${ED}"/opt/Pulsar/resources/app.asar.unpacked/node_modules/tree-sitter-bash/build/node_gyp_bins/python3 || die + rmdir "${ED}"/opt/Pulsar/resources/app.asar.unpacked/node_modules/tree-sitter-bash/build/node_gyp_bins || die + fi + + doicon "${ED}"/opt/Pulsar/resources/pulsar.png + make_desktop_entry "/usr/bin/pulsar %F" "Pulsar" "pulsar" \ + "GNOME;GTK;Utility;TextEditor;Development;" \ + "GenericName=Text Editor\nStartupNotify=true\nStartupWMClass=pulsar\n" \ + "MimeType=application/javascript;application/json;application/x-httpd-eruby;" \ + "application/x-httpd-php;application/x-httpd-php3;application/x-httpd-php4;" \ + "application/x-httpd-php5;application/x-ruby;application/x-bash;application/x-csh;" \ + "application/x-sh;application/x-zsh;application/x-shellscript;application/x-sql;" \ + "application/x-tcl;application/xhtml+xml;application/xml;application/xml-dtd;" \ + "application/xslt+xml;text/coffeescript;text/css;text/html;text/plain;text/xml;" \ + "text/xml-dtd;text/x-bash;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-c;text/x-chdr;" \ + "text/x-csh;text/x-csrc;text/x-dsrc;text/x-diff;text/x-go;text/x-java;text/x-java-source;" \ + "text/x-makefile;text/x-markdown;text/x-objc;text/x-perl;text/x-php;text/x-python;" \ + "text/x-ruby;text/x-sh;text/x-zsh;text/yaml;inode/directory" + + 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" +}