Ticket #51083: qgit.diff
File qgit.diff, 4.2 KB (added by RJVB (René Bertin), 9 years ago) |
---|
-
devel/qgit/Portfile
old new 1 1 # -*- 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 12 6937 2014-10-17 21:55:23Z khindenburg@macports.org $2 # $Id: Portfile 120912 2014-06-11 13:10:52Z ciserlohn@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup qt4 1.0 5 PortGroup qt5 1.0 6 PortGroup cmake 1.0 7 cmake.out_of_source yes 8 9 fetch.type git 10 git.url git://repo.or.cz/qgit4/redivivus.git 11 git.branch 2d0c3b0a9138e8e14d7f2c147fa7267ff5e23282 6 12 7 13 name qgit 8 version 2. 5.2014091014 version 2.6 9 15 categories devel 10 license GPL-211 16 maintainers 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 17 description A QT graphical interface to git repositories 18 long_description A QT graphical interface to git repositories 20 19 20 homepage http://libre.tibirna.org/projects/qgit \ 21 http://repo.or.cz/qgit4/redivivus.git 22 #master_sites http://libre.tibirna.org/attachments/download/9/ 23 distname ${name}-${version} 21 24 platforms darwin 22 25 23 depends_lib-append port:git 26 #use_gz yes 27 worksrcdir ${name} 24 28 25 patchfiles patch_src_qgit.cpp.diff 29 depends_lib-append port:git 26 30 27 variant debug description "Build as both release and debug" {} 31 patchfiles patch_src_namespace_def.cpp.diff \ 32 patch_src_qgit.cpp.diff \ 33 patch-cxxflags.diff 34 platform darwin { 35 patchfiles-append \ 36 patch-build-app-bundle.diff 37 } 28 38 29 39 post-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 37 41 } 38 42 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}\" 43 configure.args-append \ 44 -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON 45 platform 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} 44 54 } 45 55 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 56 platform 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 } 58 67 } 59 68 60 livecheck.type none 69 #livecheck.url http://libre.tibirna.org/projects/qgit/files 70 #livecheck.regex (\\d+(\\.\\d+)+)