# -*- 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 # $Id: Portfile 97945 2012-09-20 15:41:22Z michaelld@macports.org $ PortSystem 1.0 PortGroup qt4 1.0 name qgit version 2.3 categories devel maintainers free.fr:ocroquette openmaintainer description A QT graphical interface to git repositories long_description A QT graphical interface to git repositories homepage http://sourceforge.net/projects/qgit/ platforms darwin use_bzip2 yes worksrcdir ${name} master_sites sourceforge checksums sha1 6a75079e786a55d1d23a2752c0d93099af8aafd3 \ rmd160 c117cb7f9985045891f20981ce64f00c5741699e depends_lib-append port:git-core patchfiles patch_src_namespace_def.cpp.diff patch_src_qgit.cpp.diff variant debug description "Build as both release and debug" {} post-patch { # when not doing debug ... if {![variant_isset debug]} { # ... build just the release version reinplace "s@debug_and_release@release@" ${worksrcpath}/qgit.pro reinplace "s@debug_and_release@release@" ${worksrcpath}/src/src.pro } # nothing to do if +debug is specified; this is the default. } # --disable-dependency-tracking is not recognized. configure.universal_args-delete --disable-dependency-tracking pre-configure { configure.args-append CONFIG+=\"${qt_arch_types}\" } configure.cmd ${qt_qmake_cmd} configure.pre_args configure.post_args destroot { copy ${worksrcpath}/bin/qgit.app ${destroot}${applications_dir} # Also link to ${prefix}/bin for easier access from the command line # Especially useful since qgit is supposed to be started from # the GIT repository location. ln -s ${applications_dir}/qgit.app/Contents/MacOS/qgit ${destroot}${prefix}/bin }