# $OpenBSD$

COMMENT =	storage and general-purpose calculator (Byte CALculator)
DISTNAME =	bcal-2.0
CATEGORIES =	math sysutils

# Upstream will have real tarballs beginning next release.
# See: https://github.com/jarun/bcal/issues/20
GH_ACCOUNT =	jarun
GH_PROJECT =	bcal
GH_COMMIT =	435b5ebc3487af68a66c3037c986dbdf89a254db

#HOMEPAGE =	https://github.com/jarun/bcal
MAINTAINER =	Brian Callahan <bcallah@openbsd.org>

# GPLv3+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += c curses readline

#MASTER_SITES =	https://github.com/jarun/bcal/releases/download/v${V}/

# Test script is a Python 3 script.
TEST_DEPENDS =	devel/py-test,python3

USE_GMAKE =	Yes

# Better install routine
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bcal ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/bcal.1 ${PREFIX}/man/man1

do-test:
	cd ${WRKSRC} && python3 -m pytest test.py

.include <bsd.port.mk>
