Skip to content

Commit 563509f

Browse files
committed
iTerm2: fix for powerpc
1 parent d3d2337 commit 563509f

9 files changed

+369
-2461
lines changed

aqua/iTerm2/Portfile

Lines changed: 32 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,39 @@
11
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
22

3-
PortSystem 1.0
4-
PortGroup github 1.0
5-
PortGroup xcodeversion 1.0
6-
7-
8-
if {${os.major} > 17} {
9-
version 3.4.21
10-
revision 0
11-
checksums rmd160 00cc53ced493db0be593d730f518f56ba0ebe5a3 \
12-
sha256 175b03c9ab41b7c3a5c62967c442fa306639effb5641554c5f6ae739198e0be3 \
13-
size 28781228
14-
patchfiles patch-Makefile-XC10.diff \
15-
patch-remove-sparkle-3.4.diff \
16-
patch-nsur.diff \
17-
patch-xcode12.diff
18-
} elseif {${os.major} > 16} {
19-
version 3.3.12
20-
revision 2
21-
checksums rmd160 37d4204f97ac42431c5774a943ca0ab8f9a4c669 \
22-
sha256 6eeeb3215d6725aa789d39108a8ebedbe1aa9f6d058dd33056d72471ecd02e14 \
23-
size 20602868
24-
patchfiles patch-Makefile-XC10.diff \
25-
patch-remove-sparkle.diff \
26-
patch-nsur.diff
27-
} else {
28-
version 3.2.0
29-
revision 1
30-
checksums rmd160 07915ff5db0545c0c059f47e7f71761e023a26e1 \
31-
sha256 017aff348352369abcc994caaca0f6112e1f17c4d65041acdb9f19830b2b96bd \
32-
size 11969144
33-
patchfiles patch-Makefile.diff \
34-
patch-nsur.diff
35-
}
36-
37-
github.setup gnachman iTerm2 ${version} v
38-
categories aqua shells
39-
platforms darwin
40-
maintainers {mark @markemer} openmaintainer
41-
license GPL-2+
42-
supported_archs x86_64 arm64
43-
use_xcode yes
44-
45-
description Enhanced terminal emulator program, successor to iTerm
46-
long_description \
47-
iTerm2 is a replacement for Terminal and the successor to iTerm. Its focus is on \
48-
performance, internationalization, and supporting innovative features \
49-
that make your life better.
50-
51-
homepage https://iterm2.com/
52-
53-
livecheck.url https://raw.githubusercontent.com/gnachman/iterm2-website/master/source/appcasts/final_modern.xml
54-
livecheck.regex {sparkle:version="([\d\.]+)"}
3+
PortSystem 1.0
4+
PortGroup github 1.0
5+
PortGroup xcode 1.0
6+
7+
github.setup gnachman iTerm2 2.1.1 v
8+
categories aqua shells
9+
platforms {darwin > 8}
10+
supported_archs i386 ppc x86_64
11+
maintainers nomaintainer
12+
license GPL-2+
13+
description Enhanced terminal emulator program, successor to iTerm
14+
long_description \
15+
iTerm2 is a replacement for Terminal and the successor to iTerm. \
16+
Its focus is on performance, internationalization, and supporting \
17+
innovative features that make your life better.
18+
homepage https://iterm2.com
19+
checksums rmd160 55f801ce37da52432e23bd9805564360aabd1b7b \
20+
sha256 a803b11e5068cc9f0863084e001b86660451d8242334a50b85d060d791dbee0f \
21+
size 2551385
22+
github.tarball_from archive
23+
24+
patch.pre_args-replace -p0 -p1
25+
patchfiles 0001-Fixes-for-legacy-macOS-and-PowerPC.patch
26+
27+
xcode.project iTerm.xcodeproj
28+
xcode.target iTerm
5529

5630
post-patch {
57-
# patch the python script out since it does not set the correct version and may cause trouble
58-
reinplace "s|exec tools/updateVersion.py|exec /usr/bin/true|g" ${worksrcpath}/iTerm2.xcodeproj/project.pbxproj
59-
# macOS 13/Xcode 14 seems to be requiring code signing (macOS 12 with XC14 now requires the same)
60-
if {${os.major} >= 21} {
61-
reinplace "s|CODE_SIGN_IDENTITY = \".*\";|CODE_SIGN_IDENTITY = \"-\";|g" ${worksrcpath}/iTerm2.xcodeproj/project.pbxproj
62-
} else {
63-
reinplace "s|CODE_SIGN_IDENTITY = \".*\";|CODE_SIGN_IDENTITY = \"\";|g" ${worksrcpath}/iTerm2.xcodeproj/project.pbxproj
64-
}
65-
reinplace "s|enableUBSanitizer = \"YES\"||g" ${worksrcpath}/iTerm2.xcodeproj/xcshareddata/xcschemes/iTerm2.xcscheme
66-
# Fix version number; see iTerm2/tools/updateVersion.py for version keys
67-
foreach {key} {CFBundleGetInfoString CFBundleShortVersionString CFBundleVersion} {
68-
system "/usr/libexec/PlistBuddy -c \"Set :${key} ${version}\" ${worksrcpath}/plists/iTerm2.plist"
69-
}
31+
reinplace "s|^version *= *.*$|version = \"${version}\"|" ${worksrcpath}/updateVersion.py
32+
# disable Sparkle autoupdate
33+
reinplace "s|.*Sparkle.*||g" ${worksrcpath}/${xcode.project}/project.pbxproj
7034
}
7135

72-
compiler.cpath
73-
compiler.library_path
74-
75-
use_configure no
76-
77-
build.target prod
78-
79-
destroot.destdir APPS=${destroot}${applications_dir}
80-
81-
minimum_xcodeversions {16 9.0 17 10.0 18 11.0}
82-
83-
if {${os.platform} eq "darwin" && ${os.major} < 16} {
84-
known_fail yes
85-
pre-fetch {
86-
ui_error "${subport} @${version} requires macOS 10.12 or newer"
87-
return -code error "unsupported OS X version"
88-
}
36+
destroot {
37+
file copy ${build.dir}/build/Deployment/iTerm.app \
38+
${destroot}${applications_dir}/${name}.app
8939
}

0 commit comments

Comments
 (0)