Ticket #51083: qgit.diff

File qgit.diff, 4.2 KB (added by RJVB (René Bertin), 9 years ago)
  • devel/qgit/Portfile

    old new  
    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
    2 # $Id: Portfile 126937 2014-10-17 21:55:23Z khindenburg@macports.org $
     2# $Id: Portfile 120912 2014-06-11 13:10:52Z ciserlohn@macports.org $
    33
    44PortSystem          1.0
    5 PortGroup           qt4 1.0
     5PortGroup           qt5 1.0
     6PortGroup           cmake 1.0
     7cmake.out_of_source yes
     8
     9fetch.type          git
     10git.url             git://repo.or.cz/qgit4/redivivus.git
     11git.branch          2d0c3b0a9138e8e14d7f2c147fa7267ff5e23282
    612
    713name                qgit
    8 version             2.5.20140910
     14version             2.6
    915categories          devel
    10 license             GPL-2
    1116maintainers         free.fr:ocroquette openmaintainer
    12 description         A Qt graphical interface to git repositories
    13 long_description    ${description}
    14 
    15 homepage            http://libre.tibirna.org/projects/qgit
    16 
    17 fetch.type          git
    18 git.url             git://repo.or.cz/qgit4/redivivus.git
    19 git.branch          c83cb5819443adf0e3b60d1ac3a63d9cbb22e124
     17description         A QT graphical interface to git repositories
     18long_description    A QT graphical interface to git repositories
    2019
     20homepage            http://libre.tibirna.org/projects/qgit \
     21                    http://repo.or.cz/qgit4/redivivus.git
     22#master_sites        http://libre.tibirna.org/attachments/download/9/
     23distname            ${name}-${version}
    2124platforms           darwin
    2225
    23 depends_lib-append  port:git
     26#use_gz             yes
     27worksrcdir          ${name}
    2428
    25 patchfiles          patch_src_qgit.cpp.diff
     29depends_lib-append  port:git
    2630
    27 variant debug description "Build as both release and debug" {}
     31patchfiles          patch_src_namespace_def.cpp.diff \
     32                    patch_src_qgit.cpp.diff \
     33                                patch-cxxflags.diff
     34platform darwin {
     35        patchfiles-append \
     36                                patch-build-app-bundle.diff
     37}
    2838
    2939post-patch {
    30     # when not doing debug ...
    31     if {![variant_isset debug]} {
    32         # ... build just the release version
    33         reinplace "s@debug_and_release@release@" ${worksrcpath}/qgit.pro
    34         reinplace "s@debug_and_release@release@" ${worksrcpath}/src/src.pro
    35     }
    36     # nothing to do if +debug is specified; this is the default.
     40    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/CMakeLists.txt
    3741}
    3842
    39 # --disable-dependency-tracking is not recognized.
    40 configure.universal_args-delete --disable-dependency-tracking
    41 
    42 pre-configure {
    43     configure.args-append CONFIG+=\"${qt_arch_types}\"
     43configure.args-append \
     44                                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
     45platform linux {
     46    ui_msg ${configure.pre_args}
     47    ui_msg ${configure.args}
     48    configure.args-delete \
     49                            -DCMAKE_INSTALL_RPATH="${prefix}/lib"
     50    configure.args-append \
     51                            -DCMAKE_PREFIX_PATH=${prefix} \
     52                            -DCMAKE_INSTALL_RPATH="${qt_libs_dir}\;${prefix}/lib"
     53    ui_msg ${configure.args}
    4454}
    4555
    46 configure.cmd       ${qt_qmake_cmd}
    47 configure.pre_args
    48 configure.post_args
    49 
    50 destroot {
    51     xinstall -m 755 -d ${destroot}${qt_apps_dir}
    52     copy ${worksrcpath}/bin/qgit.app ${destroot}${qt_apps_dir}
    53 
    54     # Also link to ${prefix}/bin for easier access from the command line
    55     # Especially useful since qgit is supposed to be started from
    56     # the GIT repository location.
    57     ln -s ${qt_apps_dir}/qgit.app/Contents/MacOS/qgit ${destroot}${prefix}/bin
     56platform darwin {
     57    destroot {
     58        xinstall -m 755 -d ${destroot}${qt_apps_dir}
     59        copy ${build.dir}/qgit.app ${destroot}${qt_apps_dir}
     60
     61        # Also link to ${prefix}/bin for easier access from the command line
     62        # Especially useful since qgit is supposed to be started from
     63        # the GIT repository location.
     64        system "echo \"#!/bin/sh\nexport KDE_SESSION_VERSION=5\nexec \\\"${qt_apps_dir}/qgit.app/Contents/MacOS/qgit\\\" \\\"\\\$\@\\\"\" > ${destroot}${prefix}/bin/qgit"
     65        system "chmod 755 ${destroot}${prefix}/bin/qgit"
     66    }
    5867}
    5968
    60 livecheck.type   none
     69#livecheck.url    http://libre.tibirna.org/projects/qgit/files
     70#livecheck.regex  (\\d+(\\.\\d+)+)