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

Last change on this file since 97945 was 97945, checked in by michaelld@…, 8 years ago

qgit : handle +universal correctly.

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