From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/sublime-text/
Date: Wed, 22 Nov 2023 20:25:38 +0000 (UTC) [thread overview]
Message-ID: <1700684729.bca53fb7ffa62f4cabc1be66141969bd42145fe3.soap@gentoo> (raw)
commit: bca53fb7ffa62f4cabc1be66141969bd42145fe3
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 22 20:25:29 2023 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 20:25:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca53fb7
app-editors/sublime-text: add 4_p4166
Signed-off-by: David Seifert <soap <AT> gentoo.org>
app-editors/sublime-text/Manifest | 1 +
.../sublime-text/sublime-text-4_p4166.ebuild | 68 ++++++++++++++++++++++
2 files changed, 69 insertions(+)
diff --git a/app-editors/sublime-text/Manifest b/app-editors/sublime-text/Manifest
index 32bb5e06b410..e4935b913746 100644
--- a/app-editors/sublime-text/Manifest
+++ b/app-editors/sublime-text/Manifest
@@ -3,3 +3,4 @@ DIST sublime_text_3_build_3211_x64.tar.bz2 13677324 BLAKE2B e2ac54c1e8ab90c0fcef
DIST sublime_text_build_4126_x64.tar.xz 17313756 BLAKE2B 16a036e15b920f72b47a6425540efcbc5ac5c44d3f3c79fa0a106128857f6fa6775a244d6497c814448a3f42cfe1515546b372475b22b47364a759ad0412bfdc SHA512 1f7a1543e68e67bd507f2f4b65f53085c96796287521878011e183df26579cd593c333d53b5ee9bc5adb41dd5344c62875fea869d11962ba80a39dfb63a80652
DIST sublime_text_build_4143_x64.tar.xz 17480384 BLAKE2B 37617568f9ff0090a8f4f66c34f07d997c1f3405d31554ebb0d7c5791209713d236ee329714b452d69e474bda13f2ad7fb0c4b9abb2a5112ed36acffdee51371 SHA512 5aba1d587b2f61cc7aa6aa7b1eb37990a2385d51fac92945aa3e991616617c73f6fbe71af3a06a219323ff4656f78c2d27f582e60ea97171b88c0197899845f1
DIST sublime_text_build_4152_x64.tar.xz 16454288 BLAKE2B b6fa58c94cc24214abe5b3d85abdf850b8cd116001a739a9d1ddcb3fab70913882c7731dc4a856c32979695f77b1465e2e7ec0785255a1ced9b55637f2c30368 SHA512 447a3219841150e22c66b45c8a6d0415e1b309512764060f4310c7f685c93a5b4cba2dd7f202ced01f2a3d910c30784bbf5bbb85bae915296845005a69b0bdf4
+DIST sublime_text_build_4166_x64.tar.xz 16572860 BLAKE2B ede62590f2913edd644b02dfd9e14fd68ac0387bc75946c1206dd7709f985ce6b584ce8f74f05c3961d2ea43590a084e2947c9586c16ced40cccfd82a3847e5a SHA512 a4e5a957160cc47e6c5fc71f3162edea5d6fe03e6a7af33f52074a49dbbd2cd49460b35e0924d38d4083561291469bc0ff43e7aea81232dbc97be6847612c4e1
diff --git a/app-editors/sublime-text/sublime-text-4_p4166.ebuild b/app-editors/sublime-text/sublime-text-4_p4166.ebuild
new file mode 100644
index 000000000000..fdb6b4c6c4bb
--- /dev/null
+++ b/app-editors/sublime-text/sublime-text-4_p4166.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 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.'
+}
next reply other threads:[~2023-11-22 20:25 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 20:25 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-07 9:03 [gentoo-commits] repo/gentoo:master commit in: app-editors/sublime-text/ David Seifert
2024-05-11 16:22 David Seifert
2023-12-01 10:16 David Seifert
2023-08-04 11:41 David Seifert
2022-11-13 16:02 David Seifert
2022-11-13 16:02 David Seifert
2021-12-30 18:12 David Seifert
2021-10-28 13:39 David Seifert
2021-07-29 12:08 David Seifert
2021-07-16 23:11 David Seifert
2020-03-27 7:30 Ulrich Müller
2019-10-19 9:54 David Seifert
2019-10-19 9:54 David Seifert
2019-10-02 15:18 Rick Farina
2019-04-06 21:26 David Seifert
2019-03-28 6:44 Georgy Yakovlev
2019-03-27 17:17 Rick Farina
2018-05-22 11:50 Amy Liffey
2017-12-25 19:21 David Seifert
2017-09-16 10:58 David Seifert
2017-07-08 23:53 David Seifert
2017-07-08 19:50 David Seifert
2017-07-04 18:57 David Seifert
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=1700684729.bca53fb7ffa62f4cabc1be66141969bd42145fe3.soap@gentoo \
--to=soap@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