2012-09-02 20:05:13 +00:00
|
|
|
PORTNAME= gntp
|
2019-07-03 09:32:30 +00:00
|
|
|
PORTVERSION= 1.0.3
|
2015-05-07 17:26:05 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2019-07-03 09:32:30 +00:00
|
|
|
CATEGORIES= net python
|
2012-09-02 20:05:13 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= Growl Notification Transport Protocol for Python
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://github.com/kfdm/gntp/
|
2012-09-02 20:05:13 +00:00
|
|
|
|
|
|
|
LICENSE= MIT
|
2019-01-31 18:39:52 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2012-09-02 20:05:13 +00:00
|
|
|
|
2019-07-03 09:32:30 +00:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
|
|
|
|
gol:deskutils/growl-for-linux
|
|
|
|
|
2023-06-14 22:00:28 +00:00
|
|
|
USES= python
|
2019-01-31 18:39:52 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= kfdm
|
2019-07-03 09:32:30 +00:00
|
|
|
USE_PYTHON= distutils autoplist concurrent
|
2012-09-02 20:05:13 +00:00
|
|
|
|
2019-07-03 09:32:30 +00:00
|
|
|
NO_ARCH= yes
|
|
|
|
PORTDOCS= *
|
2012-09-02 20:05:13 +00:00
|
|
|
|
2019-01-31 18:39:52 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2021-01-14 14:34:38 +00:00
|
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
|
2019-01-31 18:39:52 +00:00
|
|
|
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-06-14 10:40:49 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2019-07-03 09:32:30 +00:00
|
|
|
cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
|
|
|
|
"! -name .buildinfo -and ! -name objects.inv"
|
|
|
|
|
|
|
|
# Two tests (test_double_resource + test_single_resource) in test_resources.py
|
|
|
|
# always fail because desktutils/growl-for-linux isn't (yet) capable to handle
|
|
|
|
# messages with embedded icons.
|
|
|
|
#
|
|
|
|
# To get succesful results from the remaining tests a running instance of "gol"
|
|
|
|
# (which needs X and is packaged with deskutils/growl-for-linux) is required.
|
|
|
|
do-test:
|
|
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} && \
|
|
|
|
${TOUCH} ${WRKDIR}/.gntp && ${PYTHON_CMD} -m nose -v -e 'test_(single|double)_resource')
|
2012-09-02 20:05:13 +00:00
|
|
|
|
2019-01-31 18:39:52 +00:00
|
|
|
.include <bsd.port.mk>
|