Ticket #44526: xxdiff.diff

File xxdiff.diff, 2.7 KB (added by RJVB (René Bertin), 10 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 103303 2013-02-21 06:52:40Z jmr@macports.org $
    22
    33PortSystem          1.0
     4PortGroup           qmake 1.0
    45
    56name                xxdiff
    6 version             3.2
     7version             4.0
     8revision            1
    79categories          devel
    810license             GPL-2+
    911platforms           darwin
     
    1517
    1618homepage            http://furius.ca/xxdiff/
    1719master_sites        sourceforge
    18 checksums           md5 301ff399a1e4be8b68c38c3e27c0b1ad \
    19                     sha1 ab2848fd9279f55b5db270f319ad4791154ecf82 \
    20                     rmd160 12e7527f39713b925f05b687c2ad8b60459bb670
     20checksums           rmd160 678346b245b977999911f73e9dda8e3fe4404cc7 \
     21                    sha256 91501544e82bc89983d07eeb086419645fbfa78fc906b50ff7ab6cdf39431330
     22
    2123use_bzip2           yes
    2224
    2325depends_lib         port:bison \
    24                     port:flex \
    25                     port:qt3
     26                    port:flex
    2627
    27 use_configure       no
     28configure {
     29    # Build xxdiff with qmake.
     30    system -W ${worksrcpath}/src "make -f Makefile.bootstrap QMAKE=${prefix}/bin/qmake"
     31}
    2832
    2933build {
    3034    # Build xxdiff with qmake.
    31     system "cd ${worksrcpath}/src; make -f Makefile.bootstrap makefile QTDIR=${prefix}"
    32     system "cd ${worksrcpath}/src; make QTDIR=${prefix}"
     35    system -W ${worksrcpath}/src "make"
    3336}
    3437
    3538destroot {
    3639    # Destroot xxdiff.
    37     xinstall ${worksrcpath}/bin/xxdiff   ${destroot}${prefix}/bin
     40    xinstall -d ${destroot}${applications_dir}/Qt4
     41    copy "${worksrcpath}/bin/xxdiff.app"   ${destroot}${applications_dir}/Qt4/
    3842    xinstall ${worksrcpath}/src/xxdiff.1 ${destroot}${prefix}/share/man/man1
     43}
     44
     45patchfiles-append   add-accelerators.patch \
     46                    update-resParser.y.patch
     47
     48variant doc description {Install documentation} {}
     49if { [variant_isset doc] } {
    3950    # Destroot xxdiff documentation.
    40     xinstall -d ${destroot}${prefix}/share/doc
    41     file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    42     file delete ${destroot}${prefix}/share/doc/${name}/Makefile
    43     file delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.txt
    44     file delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.html
     51    post-destroot {
     52        xinstall -d ${destroot}${prefix}/share/doc
     53        copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
     54        delete ${destroot}${prefix}/share/doc/${name}/Makefile
     55        delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.txt
     56        delete ${destroot}${prefix}/share/doc/${name}/xxdiff-scripts.html
     57    }
    4558}