# -*- coding: ascii; tab-width: 4; x-counterpart: git-cola.patch -*-
Info2: <<
Package: git-cola%type_pkg[qt]
Version: 3.1
Revision: 1
Type: python (3.6), qt (-mac)
Description: Highly caffinated GUI for git
DescUsage: <<
	To open a git repository in %n, cd to the working directory
	and type 'git cola'.
	
	See 'git cola --help' for available commands.
<<
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
License: GPL2
Homepage: http://git-cola.github.com/

Source: https://codeload.github.com/git-cola/git-cola/tar.gz/v%v
Source-Checksum: SHA256(a7a083f84697a56ee7c910ccfc680d36c5c447c6b5a3522e01bff9de91474f57)
SourceRename: %{ni}-%v.tar.gz
SourceDirectory: %{ni}-%v

Depends: <<
	argparse-py%type_pkg[python],
	git (>= 1.7.3.2-1),
	jsonpickle-py%type_pkg[python],
	pyqt4-mac-py%type_pkg[python] (>= 4.12.1-3),
	python%type_pkg[python],
	qtpy-py%type_pkg[python] (>= 1.4.1-1)
<<
BuildDepends: <<
	fink (>= 0.24.12),
	gettext-tools,
	sip-py%type_pkg[python] (>= 4.19.8-2)
<<

PatchFile: %{ni}.patch
PatchFile-MD5: acba60247913b1e25378580b18b35992
PatchScript: sed 's|@PYTHON@|python%type_raw[python]|g ' <%{PatchFile} | patch -p1

CompileScript: make prefix=%p/lib/qt4%type_pkg[qt] PYTHON=python%type_raw[python] standalone=1 NO_VENDOR_LIBS=1

#InfoTest: <<
#	TestDepends: nose-py%type_pkg[python]
#	TestScript: make prefix=%p/lib/qt4%type_pkg[qt] PYTHON=python%type_raw[python] standalone=1 NO_VENDOR_LIBS=1 test || exit 2
#<<

InstallScript: <<
	make prefix=%p/lib/qt4%type_pkg[qt] PYTHON=python%type_raw[python] standalone=1 NO_VENDOR_LIBS=1 DESTDIR=%d install
	mkdir -p %i/lib/git-core
	ln -s %p/lib/qt4%type_pkg[qt]/bin/git-cola %i/lib/git-core/git-cola%type_pkg[qt]
	ln -s %p/lib/qt4%type_pkg[qt]/bin/git-cola %i/lib/git-core/git-cola
	ln -s %p/lib/qt4%type_pkg[qt]/bin/git-dag %i/lib/git-core/git-dag
<<	

DocFiles: CONTRIBUTING.md COPYING COPYRIGHT README.md
<<