Ticket #56107: kchmviewer.diff

File kchmviewer.diff, 1.8 KB (added by RJVB (René Bertin), 7 years ago)
  • devel/kchmviewer/Portfile

    diff --git a/devel/kchmviewer/Portfile b/devel/kchmviewer/Portfile
    index a457dd9817..2bd2e78d69 100644
    a b  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem          1.0
    4 
    54# kchmviewer's KDE variant still requires KDE4 and will thus not be shipped for now.
    65# The pure Qt variant is obtained by using QMake instead of CMake.
    76PortGroup           qmake5 1.0
    87
    98name                kchmviewer
    109version             7.7
     10revision            1
    1111
    1212categories          devel
    1313description         A CHM (Winhelp) files viewer written for Qt.
    depends_lib-append port:libzip \ 
    3434                    port:chmlib
    3535
    3636# kchmviewer is transitioning to QtWebEngine, but that adaptation is not yet functional.
     37# (and WebKit is a much more appropriate choice anyway.)
    3738qt5.depends_component \
    3839                    qtwebkit
    3940
    post-patch { 
    6263configure.cppflags-append   -I${prefix}/lib/libzip/include
    6364default configure.dir       {${workpath}/build}
    6465configure.pre_args-append   ../${worksrcdir}/${name}.pro
    65 configure.args-append       -nocache -recursive
     66configure.args-append       -recursive
    6667default build.dir           {${workpath}/build}
    6768
     69post-extract {
     70    # the mainstream qmake5 PG assumes qt5.top_level exists but doesn't check.
     71    # it'll fail for ports like us intending to do an out-of-tree build.
     72    # Create the directory now (it's needed in the pre-configure).
     73    xinstall -m 755 -d ${qt5.top_level}
     74}
     75
     76# the mainstream qmake5 PG also doesn't respect configure.ldflags
     77default qt5.ldflags         {${configure.ldflags}}
     78
    6879platform darwin {
    6980    destroot {
    7081        xinstall -m 755 -d ${destroot}${qt_apps_dir}