<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/74d94006a0ea3138c60dd809338b1aa0d9cf8812">https://github.com/macports/macports-ports/commit/74d94006a0ea3138c60dd809338b1aa0d9cf8812</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 74d94006a0e TeXShop: restore version for old systems
</span>74d94006a0e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 74d94006a0ea3138c60dd809338b1aa0d9cf8812
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Tue Jan 2 08:45:52 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> TeXShop: restore version for old systems
</span>---
aqua/TeXShop/Portfile | 44 ++++++++++++++++++++++++++++--
aqua/TeXShop/files/lilypond.engine | 4 +++
aqua/TeXShop/files/patch-TSDocument.m.diff | 29 ++++++++++++++++++++
3 files changed, 75 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/TeXShop/Portfile b/aqua/TeXShop/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c901af6f3bf..6269522764f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/TeXShop/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/TeXShop/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,7 +79,43 @@ platform darwin {
</span> livecheck.type none
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 20} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Version for legacy systems.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 2.47
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 cd02b93bafa72de885338d32e98c61de39e11aa6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cd8f9fd827d9b080423da0f1d9664bdbfdfebb4525bbb7542ee54c44e2f9ce19 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 75049777
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname texshopsource[strsed ${version} {/\.//}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir texshopsource-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sparkle "Sparkle.framework/Versions/A/Sparkle"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ogrekit "OgreKit.framework/Versions/A/OgreKit"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # thin the bundled frameworks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $sparkle -output $sparkle"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $ogrekit -output $ogrekit"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} == 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Tiger chokes on the x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "cd ${worksrcpath} && lipo -remove x86_64 $sparkle -output $sparkle"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|defaultConfigurationName = Debug|defaultConfigurationName = Release|" ${worksrcpath}/${name}.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|GCC_VERSION_i386 = 4\.0|GCC_VERSION_i386 = [lindex [split ${configure.objc} -] 1]|g" ${worksrcpath}/3rdparty/OgreKit/OgreKit.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|GCC_VERSION_ppc = 3\.3|GCC_VERSION_ppc = [lindex [split ${configure.objc} -] 1]|g" ${worksrcpath}/3rdparty/OgreKit/OgreKit.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|GCC_VERSION = 4\.0|GCC_VERSION = [lindex [split ${configure.objc} -] 1]|" ${worksrcpath}/TeXShop.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|GCC_VERSION = 4\.0|GCC_VERSION = [lindex [split ${configure.objc} -] 1]|" ${worksrcpath}/3rdparty/TeX-mdimporter/TeX.xcodeproj/project.pbxproj
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-TSDocument.m.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.blacklist clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "If you intend to use the Lilypond engine, please copy ${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine to ~/Library/${name}/Engines/Lilypond.engine"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} < 20} {
</span> version 4.44
revision 0
checksums rmd160 bcbccbd35ecbf9f09d38e43a7bc5392f1e0f419c \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -103,7 +139,6 @@ platform darwin {
</span> livecheck.type none
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- platforms {darwin >= 15}
</span> }
build.target ${name}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -118,6 +153,11 @@ xcode.destroot.settings INSTALL_MODE_FLAG=755 {*}${xcode.build.settings}
</span>
post-destroot {
file delete -force ${destroot}${applications_dir}/TeX.mdimporter
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${filespath}/lilypond.engine ${destroot}${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace s|@@PREFIX@@|${prefix}|g ${destroot}${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
livecheck.type regex
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/TeXShop/files/lilypond.engine b/aqua/TeXShop/files/lilypond.engine
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5a1403b1578
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/TeXShop/files/lilypond.engine
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/tcsh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set path=($path @@PREFIX@@)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lilypond "$1"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/TeXShop/files/patch-TSDocument.m.diff b/aqua/TeXShop/files/patch-TSDocument.m.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..441ed433dd1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/TeXShop/files/patch-TSDocument.m.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Sources/TSDocument.m.orig 2012-05-28 15:18:07.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Sources/TSDocument.m 2012-08-27 14:55:07.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1209,7 +1209,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ([theChecker setLanguage:spellcheckString]) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ spellLanguageChanged = YES;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ([theChecker respondsToSelector:@selector(setAutomaticallyIdentifiesLanguages:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- automaticLanguage = [theChecker setAutomaticallyIdentifiesLanguages:NO];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ automaticLanguage = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [theChecker setAutomaticallyIdentifiesLanguages:NO];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (spellLanguage != nil)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [spellLanguage release];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ spellLanguage = [spellcheckString retain];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1426,12 +1427,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (spellLanguage != nil) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [theChecker setLanguage:spellLanguage];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ([theChecker respondsToSelector:@selector(setAutomaticallyIdentifiesLanguages:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- automaticLanguage = [theChecker setAutomaticallyIdentifiesLanguages:NO];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ automaticLanguage = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [theChecker setAutomaticallyIdentifiesLanguages:NO];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [theChecker setLanguage:defaultLanguage];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ([theChecker respondsToSelector:@selector(setAutomaticallyIdentifiesLanguages:)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- automaticLanguage = [theChecker setAutomaticallyIdentifiesLanguages:automaticLanguage];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ automaticLanguage = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [theChecker setAutomaticallyIdentifiesLanguages:automaticLanguage];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>