summaryrefslogtreecommitdiff
path: root/math/bcal/Makefile
blob: 58d0be4bb9fd2f33015e708af101a15c53bb67d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

PORTNAME=	bcal
DISTVERSIONPREFIX=	v
DISTVERSION=	2.2
CATEGORIES=	math

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Storage expression, unit conversion & address offset CLI calculator

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	amd64 powerpc64 powerpc64le

TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}

USES=		gmake python:test,3.5+ readline

USE_GITHUB=	yes
GH_ACCOUNT=	jarun

MAKE_ARGS=	CFLAGS_OPTIMIZATION=

PLIST_FILES=	bin/bcal \
		share/man/man1/bcal.1.gz

PORTDOCS=	CHANGELOG README.md

OPTIONS_DEFINE=	DOCS

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bcal

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}/${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

do-test:
	cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v test.py

.include <bsd.port.mk>