# $Id: Portfile 54110 2009-07-21 10:09:09Z mnick@macports.org $

PortSystem          1.0
PortGroup           xcode 1.0

name                GitX
version             0.6.3
maintainers         mnick

categories          devel
description         GitX is a git GUI specifically for Mac OS X
long_description    GitX is a gitk like clone written specifically for OS X Leopard and higher. \
                    This means that it has a native interface and tries to integrate with the \
                    operating system as good as possible. Examples of this are drag and drop \
                    support and QuickLook support.

platforms           darwin

homepage            http://gitx.frim.nl/

fetch.type          git
git.url             git://github.com/pieter/gitx.git
git.branch          v${version}

depends_lib-append  port:git-core

xcode.target        GitX

pre-fetch {
    if {${os.major} < 9} {
        return -code error "This version of ${name} is only for Mac OS X 10.5 or later."
    }
}

post-destroot {
    file mkdir  ${destroot}/${prefix}/bin
    file rename ${destroot}/${applications_dir}/gitx ${destroot}/${prefix}/bin/gitx
}

livecheck.url       http://github.com/pieter/gitx/downloads
livecheck.regex     <a href=\"/pieter/gitx/tarball/v(.*)\">tgz</a>
