# -*- coding: ascii; tab-width: 4 -*-
Package: fossil
Epoch: 1
Version: 2.25
Revision: 1
Description: Distributed version control system
DescDetail: <<
	A self-contained, open source, distributed version control system like
	git or mercurial with integrated bug tracking, wiki and blog mechanisms.
	Fossil also contains a web-based ui and an autosync mode to keep remote
	repositories in sync.
<<
DescUsage: <<
	Please see "fossil help" and the homepage for usage information.
<<
License: BSD
Homepage: https://www.fossil-scm.org
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>

Source: https://fossil-scm.org/home/tarball/8f798279d5f7c3288099915f2ea88c57b6d6039f3f05eac5e237897af33376dc/fossil-src-%v.tar.gz
#Source: https://www.fossil-scm.org/home/tarball/release/%v.tar.gz
#SourceRename: %n-%v.tar.gz
Source-Checksum: SHA256(611cfa50d08899eb993a5f475f988b4512366cded82688c906cf913e5191b525)

PatchScript: <<
	# use our iconv with _libiconv
	perl -pi -e 's|iconv iconv|lib$&|g' auto.def
<<

Depends: <<
	libbind6,
	libiconv,
	openssl300-shlibs,
	sqlite3-shlibs (>= 3.43-1)
<<
BuildDepends: <<
	fink-package-precedence,
	libbind6-dev,
	libiconv-dev,
	openssl300-dev,
	sqlite3-dev (>= 3.43-1),
	tcltk
<<

# NB: bug in zlib path handling of --with-zlib
# https://fossil-scm.org/forum/forumpost/9c64b51d44
SetCPPFLAGS: -MD
ConfigureParams: <<
	--with-openssl=%p \
	--with-sqlite=%p \
	--disable-fusefs \
	--json
<<
CompileScript: <<
	CCACHE=none ./configure %c; make TCLSH=%p/bin/tclsh
	fink-package-precedence --depfile-ext='\.d' .
<<

InfoTest: <<
	# tests need a blank password entered
	TestScript: printf "\n" | make test TCLSH=%p/bin/tclsh || exit 2
<<

InstallScript: <<
	mkdir -p %i/bin
	install -m 0755 fossil %i/bin
<<

DocFiles: COPYRIGHT-BSD2.txt