-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
textmate2: Update to 2.0.23, fix livecheck
- Loading branch information
1 parent
7b7fe41
commit 74bc888
Showing
9 changed files
with
87 additions
and
237 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
27 changes: 0 additions & 27 deletions
27
editors/textmate2/files/0001-Add-missing-link-dependency-to-Preferences.patch
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
add FLAGS "-I@@PREFIX@@/include" | ||
add LN_FLAGS "-L@@PREFIX@@/lib" | ||
|
||
# Do not set --options runtime, because the MacPorts-compiled version won't start in the hardened runtime | ||
set CS_FLAGS "--force" |
60 changes: 60 additions & 0 deletions
60
...2/files/patch-Applications__TextMate__src__RMateServer.mm-non-objc-ptr-cast-with-arc.diff
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,60 @@ | ||
From 9aab9de004c18dbd9adf056f449e194631fae84c Mon Sep 17 00:00:00 2001 | ||
From: Jason Gavris <jgavris@butterflynetinc.com> | ||
Date: Sun, 26 Dec 2021 09:05:42 -0500 | ||
Subject: [PATCH] Fix cast of non Objective-C pointer in shared_ptr | ||
|
||
Upstream-Status: Submitted [https://github.com/textmate/textmate/pull/1457] | ||
|
||
--- | ||
Applications/TextMate/src/RMateServer.mm | 15 ++++++++------- | ||
1 file changed, 8 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/Applications/TextMate/src/RMateServer.mm b/Applications/TextMate/src/RMateServer.mm | ||
index f839026e2..095b49f9f 100644 | ||
--- ./Applications/TextMate/src/RMateServer.mm | ||
+++ ./Applications/TextMate/src/RMateServer.mm | ||
@@ -334,16 +334,17 @@ bool write_data () const | ||
{ | ||
reactivate_callback_t () : _shared_count(std::make_shared<size_t>(0)) | ||
{ | ||
- _terminal = std::make_shared<NSRunningApplication*>([NSWorkspace.sharedWorkspace frontmostApplication]); | ||
+ _terminal = [[NSWorkspace sharedWorkspace] frontmostApplication]; | ||
|
||
- auto terminal = _terminal; | ||
- if([*terminal isEqual:NSRunningApplication.currentApplication]) | ||
+ __block auto terminal = _terminal; | ||
+ | ||
+ if([terminal isEqual:NSRunningApplication.currentApplication]) | ||
{ | ||
// If we call ‘mate -w’ in quick succession there is a chance that we have not yet re-activated the terminal app when we are asked to open a new document. For this reason, we monitor the NSApplicationDidResignActiveNotification for 200 ms to see if the “real” frontmost application becomes active. | ||
|
||
__weak __block id token = [NSNotificationCenter.defaultCenter addObserverForName:NSApplicationDidResignActiveNotification object:NSApp queue:nil usingBlock:^(NSNotification*){ | ||
[NSNotificationCenter.defaultCenter removeObserver:token]; | ||
- *terminal = [NSWorkspace.sharedWorkspace frontmostApplication]; | ||
+ terminal = [NSWorkspace.sharedWorkspace frontmostApplication]; | ||
}]; | ||
|
||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 5), dispatch_get_main_queue(), ^{ | ||
@@ -355,19 +356,19 @@ bool write_data () const | ||
void watch_document (OakDocument* document) | ||
{ | ||
auto counter = _shared_count; | ||
- auto terminal = _terminal; | ||
+ __block auto terminal = _terminal; | ||
|
||
++*counter; | ||
__weak __block id token = [NSNotificationCenter.defaultCenter addObserverForName:OakDocumentWillCloseNotification object:document queue:nil usingBlock:^(NSNotification*){ | ||
if(--*counter == 0) | ||
- [*terminal activateWithOptions:NSApplicationActivateIgnoringOtherApps]; | ||
+ [terminal activateWithOptions:NSApplicationActivateIgnoringOtherApps]; | ||
[NSNotificationCenter.defaultCenter removeObserver:token]; | ||
}]; | ||
} | ||
|
||
private: | ||
std::shared_ptr<size_t> _shared_count; | ||
- std::shared_ptr<NSRunningApplication*> _terminal; | ||
+ NSRunningApplication* _terminal; | ||
}; | ||
} | ||
|
15 changes: 0 additions & 15 deletions
15
editors/textmate2/files/patch-Applications_commit_target.diff
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
editors/textmate2/files/patch-Frameworks_plist_src_ascii.rl-work-around-ragel7-bugs.diff
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
editors/textmate2/files/patch-bin__gen_build-avoid-endless-configure-loop.diff
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
editors/textmate2/files/patch-configure-versionnumber.diff
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
editors/textmate2/files/patch-workaround-missing-capnp-dependency.diff
This file was deleted.
Oops, something went wrong.