app-editors/sublime-text: add 4_p4189

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2024-12-28 11:39:19 +01:00
parent d835f361f8
commit 5203e448ca
2 changed files with 69 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST sublime_text_build_4169_x64.tar.xz 16572760 BLAKE2B 1760e6a763b58e24c7360bb0068704b820b0ba91169c1e80b9b46ca728eaedd04bd2bca75d602b24034fff895c093131d30209c48c3e7b1c56941da7cf1d3296 SHA512 6764363f8f92f65532d64ba014023e28b18f40dc62a1b114239b59360257d445494f9a2f57580174b5f4994c8fa06cd8f562c9419cfda92324c9ebf25d15e576
DIST sublime_text_build_4180_x64.tar.xz 15767020 BLAKE2B 44850b6fffd959361f80f43508b7c9767a5f87a52c9d124cd68dd6eb975c362ca56815c6264f96ca02d836f6184038972539462c6dd8f314430042420dae5b99 SHA512 a115a352311a964268a1460710c562a7843b52c14c452745edb8706ac726e97b867931659b1a3286d44cb19b880f42f00af5bffe88aaa7916181a690e8324e1a
DIST sublime_text_build_4189_x64.tar.xz 16156292 BLAKE2B e8d4f6d2b8c9e9a2dddafbe83501ce83e4a0b9ff0b4fb7f8e3aef812b963ee2f588c3191af74e0dddc8f62f9f321e13df915a5d499e34ca9847f80b2469cb540 SHA512 7413f9655367ef57285f8e79b42947e1cb1c316baed6e89c6e3cea9c76d4c8f819684ce383e4c97ba8d369608dbe264445e6e21ebb42961fd282298db90d2b49

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper xdg
# get the major version from PV
MY_PV=$(ver_cut 3)
MY_PN=${PN/-/_}
DESCRIPTION="Sophisticated text editor for code, markup and prose"
HOMEPAGE="https://www.sublimetext.com"
SRC_URI="
amd64? ( https://download.sublimetext.com/sublime_text_build_${MY_PV}_x64.tar.xz )"
S="${WORKDIR}/${MY_PN}"
LICENSE="Sublime"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dbus"
RESTRICT="bindist mirror strip"
RDEPEND="
dev-libs/glib:2
sys-libs/glibc
x11-libs/gtk+:3
x11-libs/libX11
dbus? ( sys-apps/dbus )"
PATCHES=(
"${FILESDIR}"/${PN}-4_p4107-remove-deprecated-key-onlyshowin-from-launcher.patch
"${FILESDIR}"/${PN}-4_p4107-set-explicit-startupwmclass-in-launcher.patch
)
QA_PREBUILT="*"
# Sublime bundles the kitchen sink, which includes python and other assorted
# modules. Do not try to unbundle these because you are guaranteed to fail.
src_install() {
insinto /opt/${MY_PN}
doins -r Packages Lib Icon # /Icon is used at runtime by the application
doins changelog.txt libcrypto.so.1.1 libssl.so.1.1 libsqlite3.so sublime_text.desktop
# sublime_merge looks for /opt/sublime_text/sublime_text
exeinto /opt/${MY_PN}
doexe crash_handler plugin_host-3.3 plugin_host-3.8 sublime_text
# sublime-text sets its WM_CLASS based on its argv[0]. A wrapper script is
# used instead of a symlink to preserve a consistent WM_CLASS regardless of
# how the application is launched. This causes the WM_CLASS to be
# "sublime_text" which matches the .desktop entry.
make_wrapper subl "/opt/${MY_PN}/sublime_text --fwdargv0 \"\$0\""
domenu sublime_text.desktop
local size
for size in 16 32 48 128 256; do
doicon --size ${size} Icon/${size}x${size}/${PN}.png
done
}
pkg_postinst() {
xdg_pkg_postinst
elog 'Sublime Text 4'"'"'s window class changes from WM_CLASS="subl" to'
elog 'WM_CLASS="sublime_text" matching other distributions.'
}