summaryrefslogtreecommitdiff
path: root/security/py-xkcdpass/Makefile
blob: a3ef48f7bb295211fbe33c6f21d28680960441c2 (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
42
43
PORTNAME=	xkcdpass
DISTVERSIONPREFIX=	${PORTNAME}-
DISTVERSION=	1.17.4
PORTREVISION=	1
CATEGORIES=	security sysutils python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	jacob@jwfh.ca
COMMENT=	Password generator as in XKCD 936

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.BSD

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

USES=		python:3.6+
USE_GITHUB=	yes
GH_ACCOUNT=	jwfh
USE_PYTHON=	autoplist concurrent distutils

NO_ARCH=	yes

PLIST_FILES=	${_MAN_FILES:S|^|man/man1/|:S|$|.gz|}

OPTIONS_DEFINE=	DOCS

DOCS_PLIST_FILES=	${_README_FILES:S|^|${DOCSDIR_REL}/|}

_MAN_FILES=	${PORTNAME}.1
_README_FILES=	README.rst

post-install:
	${INSTALL_MAN} ${_MAN_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${MANPREFIX}/man/man1

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

do-test:
	@(cd ${TEST_WRKSRC} && \
		${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)

.include <bsd.port.mk>