Ticket #28426: Portfile.diff

File Portfile.diff, 1.8 KB (added by l2g@…, 13 years ago)

Add a patch for Tcl support in Doxygen (the other patch attached to this ticket can be ignored)

  • dports/textproc/doxygen/Portfile

    old new  
    44
    55name                    doxygen
    66version                 1.7.3
    7 revision                1
     7revision                2
    88categories              textproc devel
    99maintainers             css
    1010description             Documentation system for several programming languages
     
    2929                        ftp://ftp.stack.nl/pub/users/dimitri/
    3030distfiles               ${distname}.src${extract.suffix}
    3131
    32 checksums           md5     6cc5ad566dbec5cf843dc600b1162808 \
     32checksums           doxygen-1.7.3.src.tar.gz \
    3333                    sha1    06e1d84b50beecdfe0f91393b83c29e8a3db1011 \
    3434                    rmd160  52f0826451535754c77b7984e580f02f1c7d50f3
    3535
     
    112112        }
    113113}
    114114
     115# This is a patch written by René Zaumseil that adds Tcl support to Doxygen.
     116variant tcl description {Add EXPERIMENTAL support for Tcl (http://wiki.tcl.tk/27011)} {
     117    patch_sites         sourceforge:kbskit/doxygen\+tcl
     118    patchfiles-append   doxygen\+tcl.patch
     119    checksums-append    doxygen\+tcl.patch \
     120                        sha1    c9276520bb386f63756def5c064c4756975e06a7 \
     121                        rmd160  d3ff1de4a6b75d33655ae44dbe11a60c04224419 \
     122}
     123
    115124platform darwin {
    116125        # Specify the platform explicitly to avoid a universal build.
    117126        global tmake_conf arch_flags
     
    124133                set arch_flags ${configure.universal_cflags}
    125134        }
    126135}
     136
     137pre-patch {
     138    if {[variant_isset tcl]} {
     139        reinplace "s|^--- 746doxygen-svn/|--- |" ${distpath}/doxygen\+tcl.patch
     140        reinplace "s|^+++ doxygen-svn/|+++ |"    ${distpath}/doxygen\+tcl.patch
     141    }
     142}