Ticket #56664: Portfile_diff_highlight.diff

File Portfile_diff_highlight.diff, 851 bytes (added by iEFdev, 6 years ago)
  • (a) a/Portfile.orig vs. (b) b/Portfile

    diff --git a/Portfile.orig b/Portfile
    index 44d286a..1b0f030 100644
    a b variant credential_osxkeychain description {Install git credential-osxkeychain u 
    219219    }
    220220}
    221221
     222variant diff-highlight description {Install the diff-highlight utility from contrib} {
     223
     224    post-build {
     225        system -W "${worksrcpath}/contrib/diff-highlight" "make"
     226    }
     227
     228    notes "
     229To add the functionality to config, run:
     230
     231    $ git config --global interactive.diffFilter diff-highlight
     232
     233"
     234
     235}
     236
    222237platform darwin 8 {
    223238    build.args-append   NO_APPLE_COMMON_CRYPTO=1
    224239}
    225240
    226 default_variants    +doc +pcre +credential_osxkeychain
     241default_variants    +doc +pcre +credential_osxkeychain +diff-highlight
    227242
    228243livecheck.type          regexm
    229244livecheck.regex         {<span class="version">.*?(\d+\.\d+\.\d+).*?</span>}