1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net/py-gntp/Makefile
Kai Knoblich 799bedc94f net/py-gntp: Update to 1.0.3
* Enable build for all Python versions since the 1.0 release officially
  supports Python 3.3. The port works also well with later versions of
  Python 3 up to 3.7. [1]
* Make the port concurrent safe as it installs also some scripts and
  documentation. [1]
* Tweak the doc installation to get rid of the pkg-plist and to make full
  use of the "autoplist" feature.
* Remove the superfluous defintion of ${DOCSDIR} that already is set
  automatically.
* Add "python" as an additional category to make searching somewhat easier.
* At last but not least: Add an test target to easen QA in the future.

Changelog since 0.8:

* Allow "file://" scheme to be used for icons
* Fix bug with incoming password hash
* Added info about license in each source file
* Fix bug with binary data (images) being encoded incorrectly
* Python 3.3 support
* Remove duplicate code from gntp.config
* Catch all errors and rethrow them as gntp.errors to make it easier for
  other programs to deal with errors from the gntp library
* Ensure that we open resource files as "rb" and update the documentation

PR:		234311
Submitted by:	Kes Calhoun <kes-freebsd@h3m3.com> (initial patch) [1]
Reviewed by:	koobs
Approved by:	nivit (maintainer timeout)
2019-07-03 09:32:30 +00:00

47 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= gntp
PORTVERSION= 1.0.3
DISTVERSIONPREFIX= v
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Growl Notification Transport Protocol for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
gol:deskutils/growl-for-linux
USES= python
USE_GITHUB= yes
GH_ACCOUNT= kfdm
USE_PYTHON= distutils autoplist concurrent
NO_ARCH= yes
PORTDOCS= *
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} \
"! -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')
.include <bsd.port.mk>