# -*- coding: ascii; tab-width: 4 -*-
Info2: <<
Package: stgit
Version: 0.17.1
Revision: 1
Type: py (2.7)
Description: Maintain a patch series on top of Git
DescDetail: <<
	StGit is a Python application providing similar functionality to Quilt
	(i.e. pushing/popping patches to/from a stack) on top of Git. These
	operations are performed using Git commands and the patches are stored
	as Git commit objects, allowing easy merging of the StGit patches into
	other repositories using standard Git functionality.
<<
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
License: GPL2+
Homepage: https://gna.org/projects/stgit/

Source: http://download.gna.org/stgit/stgit-%v.tar.gz
Source-Checksum: SHA256(d43365a0c22e41a6fb9ba1a86de164d6475e79054e7f33805d6a829eb4056ade)

Depends: python%type_pkg[py], git
BuildDepends: asciidoc, xmlto
Conflicts: stgit-py26, stgit-py27
Replaces: stgit-py26, stgit-py27

PatchScript: perl -pi -e "s|/usr/bin/env python2|%p/bin/python%type_raw[py]|" stg stg-build stg-dbg stg-prof

CompileScript: <<
	make PYTHON=%p/bin/python%type_raw[py] prefix=%p
<<

# No t/test.py in tarball therefore tests won't run.
#InfoTest: <<
#	TestScript: <<
#		make -k test PYTHON=%p/bin/python%type_raw[python] prefix=%p GIT_SKIP_TESTS="t1000.4 t1000.7 t1000.12 t1800.16 t3200 t3300 t4100.4 t4100.5 t4100.6 t4100.8 t4100.9"
#	<<
#	TestSuiteSize: large
#<<

InstallScript: <<
	make install install-doc install-html PYTHON=%p/bin/python%type_raw[py] prefix=%p DESTDIR=%d
	mkdir -p %i/etc/bash_completion.d
	cp stgit-completion.bash %i/etc/bash_completion.d
<<

DocFiles: AUTHORS COPYING PKG-INFO README RELEASENOTES TODO
<<