Ticket #4433: Portfile.diff

File Portfile.diff, 881 bytes (added by yuhei@…, 19 years ago)

Patch: Avoid installing extra files if ProjectBuild not found

  • Portfile

    old new  
    33PortGroup               ruby 1.0
    44revision                1
    55
    6 ruby.setup              {cocoa rubycocoa} 0.4.1 install.rb \
    7                                 {ReadMe.ascii.html doc sample}
     6ruby.setup              {cocoa rubycocoa} 0.4.1 install.rb {ReadMe.ascii.html}
    87maintainers             yuhei@pop21.odn.ne.jp
    98description             Ruby bindings for writing cocoa programs
    109long_description        RubyCocoa is a Ruby library for using Cocoa Objects \
     
    2524  checksums   md5 ce498e990a4ac9de289c839aaa0c0b57
    2625}
    2726
     27post-patch {
     28  if {[catch {set pbxbuild [binaryInPath pbxbuild]}]} {
     29    # Avoid installing extra files for ProjectBuilder
     30    reinplace "s%pbextras_dir, xcodeextras_dir%xcodeextras_dir%" \
     31      ${worksrcpath}/pre-install.rb
     32  }
     33}
     34
    2835configure.args          --install-prefix=${destroot}${prefix} \
    2936                                        --install-root=${destroot}
    3037