if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
45 lines
1013 B
Makefile
45 lines
1013 B
Makefile
# $OpenBSD: Makefile,v 1.8 2021/02/23 19:39:29 sthen Exp $
|
|
|
|
# Upstream says 64-bit only.
|
|
# https://github.com/jarun/bcal/issues/4
|
|
ONLY_FOR_ARCHS = ${LP64_ARCHS}
|
|
|
|
V = 2.2
|
|
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 = Yes
|
|
|
|
WANTLIB += c curses readline
|
|
|
|
MASTER_SITES = https://github.com/jarun/bcal/releases/download/v${V}/
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
# Test script is a Python 3 script.
|
|
MODULES += lang/python
|
|
MODPY_RUNDEP = No
|
|
MODPY_BUILDDEP = No
|
|
CONFIGURE_STYLE = python.port.mk-is-annoying
|
|
TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
|
|
|
|
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>
|