# $Id$

PortSystem 1.0
PortGroup		github 1.0
PortGroup		python 1.0

github.setup		kennethreitz legit 0.1.0 v
categories		devel
maintainers		nomaintainer
supported_archs		noarch
license			BSD

homepage		http://www.git-legit.org/
description		Legit provides a simplified git workflow.
long_description	Legit is a complementary command-line interface for Git, \
			optimized for workflow simplicity. It is heavily inspired by GitHub for Mac.

platforms		darwin

checksums		rmd160  3ddcc9c7c1b915513d3c1146dfba305d5b97929e \
			sha256  60ca05f30297f38290681c190de926dc7bb8cf43980380d9aaaac084f5cd6e31

python.default_version	27
depends_lib		port:py${python.version}-requests \
			port:py${python.version}-gitpython \
			port:py${python.version}-gitdb \
			port:py${python.version}-clint \
			port:py${python.version}-chardet \
			port:py${python.version}-certifi

post-patch {
	reinplace "s|omnijson||g" "${worksrcpath}/reqs.txt"
	reinplace "s|clint==0.2.4|clint|g" "${worksrcpath}/reqs.txt"
	reinplace "s|import omnijson||g" "${worksrcpath}/legit/bootstrap.py"
}

build {}