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/"
SOURCE_URI="http://ftp.gnu.org/gnu/gcal/gcal-3.6.3.tar.gz"
CHECKSUM_SHA256="9d9be60841150a5c60e27fc5e0f2c06c06635ac44c18698d6a48ef7bb47ba86d"
LICENSE="GNU GPL v3"
REVISION="1"
COPYRIGHT="1994-2013 Free Software Foundation Inc."

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	gcal = $portVersion
	cmd:gcal
	cmd:cal
	cmd:gcal2txt
	cmd:tcal
	cmd:txt2gcal
	"

REQUIRES="
	haiku
	lib:libintl
	"

BUILD_PREREQUIRES="
	cmd:grep
	cmd:make
	cmd:sed
	cmd:gcc
	cmd:awk
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	"

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

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

TEST()
{
	make check
}
