Advertisement
nighthoodie

MacPorts iTerm2 replacement Portfile to enable successful Snow Leopard build

May 14th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.07 KB | None | 0 0
  1. #################################################################################
  2. # Note: iTerm2 Portfile has been edited to allow build on 10.6
  3. # cd $(port dir iterm2)
  4. # sudo cp -p Portfile Portfile.orig
  5. # sudo port edit --editor vi iTerm2
  6. # change line: "if {${os.platform} eq "darwin" && ${os.major} < 11} {"
  7. #     to read: "if {${os.platform} eq "darwin" && ${os.major} < 10} {"
  8. # or backup and replace original Portfile & copy this edited Portfile to
  9. # /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/aqua/iTerm2/Portfile
  10. #
  11. #################################################################################
  12. #
  13. # -*- 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
  14. # $Id: Portfile 112262 2013-10-16 05:32:39Z ryandesign@macports.org $
  15.  
  16. PortSystem  1.0
  17. PortGroup   github 1.0
  18. PortGroup   xcode 1.0
  19.  
  20. github.setup gnachman iTerm2 1.0.0.20130811 v
  21. categories  aqua shells
  22. maintainers emer.net:emer
  23. license         GPL-2+
  24. description Enhanced terminal emulator program, successor to iTerm
  25. long_description    \
  26.     iTerm2 is a replacement for Terminal and the successor to iTerm. Its focus is on \
  27.     performance, internationalization, and supporting innovative features \
  28.     that make your life better.
  29.  
  30. homepage        http://www.iterm2.com/
  31.  
  32. checksums       rmd160  166bce10474465288f06f20e61482d303d56cea3 \
  33.                 sha256  682cafc2f88675bf9a2ef5d988fabe84ae936aece958d1bc23c4664840fc3033
  34.  
  35. xcode.project   iTerm.xcodeproj
  36. xcode.target    iTerm
  37.  
  38. post-patch {
  39.     reinplace "s|^version *= *.*$|version = \"${version}\"|" ${worksrcpath}/updateVersion.py
  40.     # disable Sparkle autoupdate
  41.     reinplace "s|.*Sparkle.*||g" ${worksrcpath}/${xcode.project}/project.pbxproj
  42. }
  43.  
  44. destroot {
  45.     file copy ${build.dir}/build/Deployment/iTerm.app \
  46.         ${destroot}${applications_dir}/${name}.app
  47. }
  48.  
  49. if {${os.platform} eq "darwin" && ${os.major} < 10} {
  50.     pre-fetch {
  51.         ui_error "${name} requires OS X 10.7 or newer (edited portfile to allow 10.6)"
  52.         return -code error "unsupported OS X version"
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement