SUMMARY="Program for calculating and printing calendars"
DESCRIPTION="
Gcal is a program for calculating and printing calendars. Gcal displays hybrid \
and proleptic Julian and Gregorian calendar sheets, respectively for one month, \
three months, or a whole year. It also displays eternal holiday lists for many \
countries around the globe, and features a very powerful creation of fixed date \
lists that can be used for reminding purposes."
HOMEPAGE="http://www.gnu.org/software/gcal/"
COPYRIGHT="1994-2017 Free Software Foundation Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/gcal/gcal-$portVersion.tar.gz"
CHECKSUM_SHA256="363cdb016125bd64cfe5fcaa28b4b828fdfe88b1ee76d9f58ba9ea120587bb39"

ARCHITECTURES="all"

PROVIDES="
	gcal = $portVersion
	cmd:cal
	cmd:gcal
	cmd:gcal2txt
	cmd:tcal
	cmd:txt2gcal
	"
REQUIRES="
	haiku
	lib:libintl
	lib:libncurses
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	devel:libncurses
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:grep
	cmd:make
	cmd:sed
	cmd:pkg_config
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	ln -s $binDir/gcal $binDir/cal
}

TEST()
{
	make check
}
