Ticket #37602: textmate.patch

File textmate.patch, 2.3 KB (added by ci42, 12 years ago)
  • Portfile

     
    3535patchfiles              patch-configure-versionnumber.diff \
    3636                        patch-create_default_bundles_tbz-verbose.diff \
    3737                        patch-configure-mdt.diff \
    38                         patch-bin-gen_credits.rb-use-mp-ruby.diff \
    39                         patch-bin-gen_html-use-mp-ruby.diff
    4038
    4139post-patch {
    4240    reinplace "s/@REVISION@/${github.version}/" ${worksrcpath}/configure
    4341    reinplace "s/__MACOSX_DEPLOYMENT_TARGET__/${macosx_deployment_target}/" ${worksrcpath}/configure
    44     reinplace "s#@PREFIX@#${prefix}#" ${worksrcpath}/bin/gen_credits.rb ${worksrcpath}/bin/gen_html
     42    reinplace "s|/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby|${prefix}/bin/ruby|" \
     43        ${worksrcpath}/bin/gen_credits.rb ${worksrcpath}/bin/gen_html \
     44        ${worksrcpath}/bin/gen_build ${worksrcpath}/bin/process_plist
    4545    fs-traverse file ${worksrcpath} {
    4646        if {[file tail ${file}] == "target"} {
    4747            reinplace "/TEST_SOURCES =/d" ${file}
  • files/patch-bin-gen_credits.rb-use-mp-ruby.diff

     
    1 --- bin/gen_credits.rb.orig     2012-12-09 21:31:56.000000000 +0100
    2 +++ bin/gen_credits.rb  2012-12-09 21:32:22.000000000 +0100
    3 @@ -1,4 +1,4 @@
    4 -#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
    5 +#!@PREFIX@/bin/ruby -wKU
    6  # == Synopsis
    7  #
    8  # Module to assist in building the Contributors page using git commit history.
  • files/patch-bin-gen_html-use-mp-ruby.diff

     
    1 --- bin/gen_html.orig   2012-12-09 21:52:18.000000000 +0100
    2 +++ bin/gen_html        2012-12-09 21:52:32.000000000 +0100
    3 @@ -1,4 +1,4 @@
    4 -#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
    5 +#!@PREFIX@/bin/ruby -wKU
    6  # == Synopsis
    7  #
    8  # gen_html: generates HTML file from markdown and optional template(s)