aboutsummaryrefslogtreecommitdiff
path: root/security/py-pyotp/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-16 11:46:50 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-16 11:46:50 +0000
commit608689f357b6652a7e22a4b4ada78ec951e9fe18 (patch)
treefad478989663d07dc2af47abc08fc6da9e1ce9d4 /security/py-pyotp/Makefile
parent838ad0b0e34bcfc683354285807c07a67964c7b0 (diff)
downloadports-608689f357b6652a7e22a4b4ada78ec951e9fe18.tar.gz
ports-608689f357b6652a7e22a4b4ada78ec951e9fe18.zip
Notes
Diffstat (limited to 'security/py-pyotp/Makefile')
-rw-r--r--security/py-pyotp/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/security/py-pyotp/Makefile b/security/py-pyotp/Makefile
index d91927427651..9867d2abb107 100644
--- a/security/py-pyotp/Makefile
+++ b/security/py-pyotp/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pyotp
-PORTVERSION= 2.2.1
+PORTVERSION= 2.2.4
DISTVERSIONPREFIX= v
CATEGORIES= security
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -18,6 +18,15 @@ USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+PORTDOCS= README.rst
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
do-test:
@(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} test.py)