openbsd-ports/math/bcal/Makefile

40 lines
927 B
Makefile

# $OpenBSD: Makefile,v 1.3 2018/12/12 16:56:12 bcallah Exp $
# Upstream says 64-bit only.
# https://github.com/jarun/bcal/issues/4
ONLY_FOR_ARCHS = ${LP64_ARCHS}
V = 2.1
COMMENT = storage and general-purpose calculator (Byte CALculator)
DISTNAME = bcal-v${V}
PKGNAME = bcal-${V}
CATEGORIES = math sysutils
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.
# It is not worth invoking the python MODULE for this.
TEST_DEPENDS = devel/py-test,python3
USE_GMAKE = Yes
WRKDIST = ${WRKDIR}/bcal
# 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>