Ticket #14603: Portfile2.diff

File Portfile2.diff, 3.9 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    22
    33PortSystem 1.0
    44name                    doxygen
    5 version                 1.5.4
    6 revision                2
     5version                 1.5.5
    76categories              textproc devel
    87maintainers             css@macports.org
    98description             Documentation system for several programming languages
     
    2726master_sites            ftp://ftp.stack.nl/pub/users/dimitri/
    2827distfiles               ${distname}.src${extract.suffix}
    2928
    30 checksums               md5 10ffe8d445dc1bf7dd69292b266906ff \
    31                         sha1 1a815f7de6b412f7852d57dec9eb50f7c4b03268 \
    32                         rmd160 263e2287da4fbe91a429dc53fe3569b150c76fdf
     29checksums               md5 95813ecd95b371d13d63844ddb9b5c46 \
     30                        sha1 16b555f5d191cc0f854ae9856c49e4823a51c595 \
     31                        rmd160 212ef3eca6a43c33189b11d3ab400f5b2069b019
    3332
    3433depends_lib             path:${prefix}/bin/pdflatex:texlive \
    3534                        bin:gs:ghostscript lib:libpng:libpng \
    3635                        bin:dot:graphviz bin:ginstall:coreutils port:libiconv
    3736
    38 # setup to work smoothly with Qt3
    3937post-patch {
     38        # Change QTDIR include direcotory: include -> include/qt3
    4039        reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \
    4140                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf"
    42         reinplace "s|@@PREFIX@@|${prefix}|g" \
    43                 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard
    44         reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \
    45                 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard
     41       
     42        # Prepend -L${prefix}/lib to TMAKE_LIBS
     43        reinplace -E "s|^(TMAKE_LIBS\[ \t\]*=)(\[ \t\]*)(.*)$|\\1\\2-L${prefix}/lib \\3|g" \
     44                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf"
     45       
     46        # Append ${prefix}/include to TMAKE_INCDIR
     47        reinplace -E "s|^TMAKE_INCDIR(\[ \t\]*=.*)$|INCLUDEPATH\\1 ${prefix}/include|g" \
     48                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf"
     49       
     50        # _OS_MAC_ is only defined in the doygen subset of Qt (not in qt3)
     51        reinplace "s|_OS_MAC_|Q_OS_DARWIN|g" \
     52                "${worksrcpath}/addon/doxywizard/portable.cpp"
    4653}
    4754
    48 # Using libiconv should negate the need for this patch.
    49 #patchfiles             patch-portable.cpp
     55# This patch has no effect on Leopard
     56patchfiles              qfiledefs_p.patch
    5057
    5158configure.pre_args      --prefix ${prefix}
    52 configure.args          --docdir ${prefix}/share/doc
     59configure.args          --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot
    5360configure.env           QTDIR=${prefix}
    5461
    5562build.env               QTDIR=${prefix}
     
    6575        configure.args-append   --with-doxywizard
    6676}
    6777
    68 platform darwin {
    69         # Specify the platform explicitly to avoid a universal build.
    70         configure.args-append   --platform macosx-c++
    71         if {[variant_isset wizard]} {
    72                 post-destroot {
    73                         set dpappdir    ${destroot}/Applications/MacPorts
    74                         xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS
    75                         file rename ${destroot}${prefix}/bin/doxywizard \
    76                                 ${dpappdir}/doxywizard.app/Contents/MacOS/
    77                         xinstall -m 644 ${filespath}/Info.plist \
    78                                 ${dpappdir}/doxywizard.app/Contents/
    79                 }
     78# This variant fails on Leopard (LSOpenFromURLSpec() failed with error -10810)
     79variant wizardapp requires wizard {
     80        post-destroot {
     81                set appdir      /Applications/MacPorts
     82                set dpappdir    ${destroot}${appdir}
     83                xinstall -m 755 -d ${dpappdir}/Doxywizard.app/Contents/MacOS
     84                file rename ${destroot}${prefix}/bin/doxywizard \
     85                        ${dpappdir}/Doxywizard.app/Contents/MacOS/
     86                system "ln -s ${appdir}/Doxywizard.app/Contents/MacOS/doxywizard ${destroot}${prefix}/bin"
     87                xinstall -m 644 ${filespath}/Info.plist \
     88                        ${dpappdir}/Doxywizard.app/Contents/
    8089        }
    8190}
    8291
    83 platform darwin 9 {
    84         # Account for an iconv difference on Leopard.
    85         patchfiles-append       patch-portable.cpp
     92platform darwin {
    8693        # Specify the platform explicitly to avoid a universal build.
    8794        configure.args-append   --platform macosx-c++
    88         if {[variant_isset wizard]} {
    89                 post-destroot {
    90                         set dpappdir    ${destroot}/Applications/MacPorts
    91                         xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS
    92                         file rename ${destroot}${prefix}/bin/doxywizard \
    93                                 ${dpappdir}/doxywizard.app/Contents/MacOS/
    94                         xinstall -m 644 ${filespath}/Info.plist \
    95                                 ${dpappdir}/doxywizard.app/Contents/
    96                 }
    97         }
    9895}