Ticket #45170: patch-gtk-doc-highlighting.diff

File patch-gtk-doc-highlighting.diff, 1.4 KB (added by dbevans (David B. Evans), 10 years ago)

Proposed patch to disable syntax highlighting on older platforms

  • Portfile

     
    55
    66name            gtk-doc
    77version         1.21
     8revision        1
    89categories      gnome devel
    910license         GPL-2+
    1011installs_libs   no
     
    3940                port:fop \
    4041                port:docbook-xml \
    4142                port:docbook-xsl \
    42                 port:itstool \
    43                 port:source-highlight
     43                port:itstool
    4444
    4545configure.perl  ${prefix}/bin/perl5.16
    4646configure.env-append XSLTPROC=${prefix}/bin/xsltproc
    4747configure.args  --with-xml-catalog=${prefix}/etc/xml/catalog \
    48                 --with-highlight=source-highlight
     48                --with-highlight=no
    4949
    5050# TODO Enable test support.
    5151
     52variant highlighting description {Enable syntax highlighting using GNU source-highlight} {
     53    depends_lib-append  port:source-highlight
     54    configure.args-replace --with-highlight=no --with-highlight=source-highlight
     55}
     56
     57platform darwin {
     58# source-highlight depends on boost which currently does not build on 10.5(?) and earlier (#44918, #45170).
     59    if {${os.major} > 9} {
     60        default_variants +highlighting
     61    }
     62}
     63
    5264variant python25 conflicts python26 python27 description {Use python 2.5} {
    5365    depends_lib-append      port:python25
    5466    depends_run-append      port:py25-libxml2