aboutsummaryrefslogblamecommitdiff
path: root/security/py-xkcdpass/Makefile
blob: 88c3741a6cad5231e8835593b85071846eadc2ac (plain) (tree)
1
2
3
4
5
6




                                    
                 








                                                 

                                                                         
                           

                    
                                              


















                                                                                     



                                                                              
                      
# $FreeBSD$

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>