source: trunk/dports/devel/qgit/Portfile @ 120912

Last change on this file since 120912 was 120912, checked in by ciserlohn@…, 6 years ago

git, git-core: update to version 2.0.0; rename to git (closes #37279) and update all dependent ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 120912 2014-06-11 13:10:52Z ciserlohn@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                qgit
8version             2.3
9revision            1
10categories          devel
11maintainers         free.fr:ocroquette openmaintainer
12description         A QT graphical interface to git repositories
13long_description    A QT graphical interface to git repositories
14
15homepage            http://sourceforge.net/projects/qgit/
16platforms           darwin
17
18use_bzip2           yes
19worksrcdir          ${name}
20
21master_sites        sourceforge
22
23checksums           sha1    6a75079e786a55d1d23a2752c0d93099af8aafd3 \
24                    rmd160  c117cb7f9985045891f20981ce64f00c5741699e
25
26depends_lib-append  port:git
27
28patchfiles          patch_src_namespace_def.cpp.diff  patch_src_qgit.cpp.diff
29
30variant debug description "Build as both release and debug" {}
31
32post-patch {
33    # when not doing debug ...
34    if {![variant_isset debug]} {
35        # ... build just the release version
36        reinplace "s@debug_and_release@release@" ${worksrcpath}/qgit.pro
37        reinplace "s@debug_and_release@release@" ${worksrcpath}/src/src.pro
38    }
39    # nothing to do if +debug is specified; this is the default.
40}
41
42# --disable-dependency-tracking is not recognized.
43configure.universal_args-delete --disable-dependency-tracking
44
45pre-configure {
46    configure.args-append CONFIG+=\"${qt_arch_types}\"
47}
48
49configure.cmd       ${qt_qmake_cmd}
50configure.pre_args   
51configure.post_args
52
53destroot {
54    copy ${worksrcpath}/bin/qgit.app ${destroot}${applications_dir}
55
56    # Also link to ${prefix}/bin for easier access from the command line
57    # Especially useful since qgit is supposed to be started from
58    # the GIT repository location.
59    ln -s ${applications_dir}/qgit.app/Contents/MacOS/qgit ${destroot}${prefix}/bin
60}
Note: See TracBrowser for help on using the repository browser.