-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-editors/pulsar-bin: new package, add 1.105.0
ebuild mostly modified from app-editors/atom-bin. Signed-off-by: YiFei Zhu <[email protected]>
- Loading branch information
1 parent
ad79c06
commit 2a8c35b
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST pulsar-bin-1.105.0.tar.gz 228995179 BLAKE2B b4b185a161374590b68e2efbd5b2f37ec59278f71cc30ef519c3a67ae546ea9b73f2e2e50eabd8b07855e291704f4d994428f58dca24e144713e4996fe053b03 SHA512 f2ed05bebe81735c21ac80ff82ec051aebc9ec54e8f2ffce0e4e17f0fc6b221992ca5909271f04334211e494647cfef9f1555f0f439ee77c63488585f255f810 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>[email protected]</email> | ||
<name>YiFei Zhu</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">pulsar-edit/pulsar</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |