aboutsummaryrefslogtreecommitdiff
path: root/net/py-gntp
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-31 18:39:52 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-31 18:39:52 +0000
commit08c9b9fff3d0cca68dfbbf600b59eb7abc7d8d64 (patch)
tree6ffc5c18f0d234caa3df39dee557586f9a32715a /net/py-gntp
parent69d261babd7468e4bfe424552fb37d5080d7aa2e (diff)
downloadports-08c9b9fff3d0cca68dfbbf600b59eb7abc7d8d64.tar.gz
ports-08c9b9fff3d0cca68dfbbf600b59eb7abc7d8d64.zip
Notes
Diffstat (limited to 'net/py-gntp')
-rw-r--r--net/py-gntp/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/net/py-gntp/Makefile b/net/py-gntp/Makefile
index fba01d444428..444dfe6759f6 100644
--- a/net/py-gntp/Makefile
+++ b/net/py-gntp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gntp
PORTVERSION= 0.8
DISTVERSIONPREFIX= v
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= net
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,25 +11,22 @@ MAINTAINER= nivit@FreeBSD.org
COMMENT= Growl Notification Transport Protocol for Python
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
-GH_ACCOUNT= kfdm
-
-OPTIONS_DEFINE= DOCS
-
-USE_GITHUB= yes
USES= python:2.7
+USE_GITHUB= yes
+GH_ACCOUNT= kfdm
USE_PYTHON= distutils autoplist
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-PYDISTUTILS_BUILD_TARGET+= build_sphinx
-post-install:
+OPTIONS_DEFINE= DOCS
+
+DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
+DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>