# -*- coding: ascii; tab-width: 4 -*-
Package: cvs-fast-export
Version: 1.44
Revision: 1
Description: Export CVS to fast-import stream
DescDetail: <<
Export an RCS or CVS history as a fast-import stream. This program
analyzes a collection of RCS files in a CVS repository (or outside of
one) and, when possible, emits an equivalent history in the form of a
fast-import stream. Not all possible histories can be rendered this way;
the program tries to emit useful warnings when it can't. The program can
also produce a visualization of the resulting commit DAG in the DOT
format handled by the graphviz suite.
<<
Homepage: http://www.catb.org/~esr/cvs-fast-export/
License: GPL2
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>

Source: http://www.catb.org/~esr/%n/%n-%v.tar.gz
Source-Checksum: SHA256(a03620c5eadecfb71f6e0bd55511d9adecf7777931ca3623999ff04db4a7f0d0)

PatchScript: <<
	#!/bin/sh -ev
	# Fix hardcoded path in test.
	perl -pi -e 's|/home/esr/public_html/cvs-fast-export|%b|' tests/t9603.err
	# Replace 'echo -n' with 'printf' in tests/Makefile
	perl -pi -e 's/echo -n/printf/' tests/Makefile
	# Just use python 2
	perl -pi -e 's/python3/python/' cvsreduce
	# 10.12 adds clock_gettime()
	let version=`uname -r | cut -f 1 -d .`
	if [ $version -ge 16 ]; then
		perl -pi -e 's/ defined\(__APPLE__\)/ defined\(__SKIPAPPLE__\)/' cvs.h utils.c
	fi

<<

# These are needed to build the manpage.
BuildDepends: <<
	bison,
	asciidoc-a2x,
	docbook-dtd,
	docbook-xsl,
	libxml2-bin
<<

CompileScript: make prefix=%p EXTRA_CFLAGS='-D_DARWIN_C_SOURCE=1' LIBS=" "

InfoTest: <<
	TestDepends: cvs, rcs
	TestScript: <<
		#!/bin/sh -ev
		export PATH="%b:%b/tests:$PATH"
		make -j1 check || exit 2
	<<
<<

InstallScript: <<
	make cvs-fast-export.html cvssync.html install prefix=%p DESTDIR=%d
<<

DocFiles: AUTHORS COPYING NEWS README cvs-fast-export.html cvssync.html