SUMMARY="A threaded NNTP and spool based UseNet newsreader"
DESCRIPTION="tin is a full-screen easy to use Usenet newsreader. \
It can read news locally (e.g., /var/spool/news) or remotely \
(rtin or tin -r option) via an NNTP (Network News Transport Protocol) \
server."
HOMEPAGE="http://tin.org/"
COPYRIGHT="2003-2020 Urs Janssen"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-$portVersion.tar.gz"
CHECKSUM_SHA256="2b513aabc0b94f7e92eca175e3ed1a550030769c07bb236d1da903fed9ce4431"
SOURCE_DIR="$portVersionedName"

ARCHITECTURES="?all"

PROVIDES="
	tin = $portVersion
	cmd:tin = $portVersion
	cmd:metamutt = $portVersion
	cmd:opt_case.pl = $portVersion
	cmd:rtin = $portVersion
	cmd:tinews.pl = $portVersion
	cmd:url_handler.pl = $portVersion
	cmd:w2r.pl = $portVersion
	"
REQUIRES="
	haiku
	lib:libgettextlib
	lib:libiconv
	lib:libintl
	lib:libncurses
	lib:libpcre
	cmd:gpg
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libgettextlib
	devel:libiconv
	devel:libintl
	devel:libncurses
	devel:libpcre
	"
BUILD_PREREQUIRES="
	cmd:autoconf
	cmd:bison
	cmd:make
	cmd:gcc
	cmd:gpg
	"

BUILD()
{
	runConfigure --omit-dirs docDir ./configure --with-pcre
	make $jobArgs build
}

INSTALL()
{
	make install
}
