source: trunk/dports/devel/qgit/Portfile

Last change on this file was 126937, checked in by khindenburg@…, 3 years ago

qgit: change to git url that is still being developed - update to 2.5+ - add license - install into Qt app dir #45232

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
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 126937 2014-10-17 21:55:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                qgit
8version             2.5.20140910
9categories          devel
10license             GPL-2
11maintainers         free.fr:ocroquette openmaintainer
12description         A Qt graphical interface to git repositories
13long_description    ${description}
14
15homepage            http://libre.tibirna.org/projects/qgit
16
17fetch.type          git
18git.url             git://repo.or.cz/qgit4/redivivus.git
19git.branch          c83cb5819443adf0e3b60d1ac3a63d9cbb22e124
20
21platforms           darwin
22
23depends_lib-append  port:git
24
25patchfiles          patch_src_qgit.cpp.diff
26
27variant debug description "Build as both release and debug" {}
28
29post-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.
37}
38
39# --disable-dependency-tracking is not recognized.
40configure.universal_args-delete --disable-dependency-tracking
41
42pre-configure {
43    configure.args-append CONFIG+=\"${qt_arch_types}\"
44}
45
46configure.cmd       ${qt_qmake_cmd}
47configure.pre_args
48configure.post_args
49
50destroot {
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
58}
59
60livecheck.type   none
Note: See TracBrowser for help on using the repository browser.