Date: Wed, 3 Jul 2019 09:32:30 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505738 - head/net/py-gntp Message-ID: <201907030932.x639WUAP049658@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Wed Jul 3 09:32:30 2019 New Revision: 505738 URL: https://svnweb.freebsd.org/changeset/ports/505738 Log: 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) Deleted: head/net/py-gntp/pkg-plist Modified: head/net/py-gntp/Makefile head/net/py-gntp/distinfo Modified: head/net/py-gntp/Makefile ============================================================================== --- head/net/py-gntp/Makefile Wed Jul 3 09:32:05 2019 (r505737) +++ head/net/py-gntp/Makefile Wed Jul 3 09:32:30 2019 (r505738) @@ -1,10 +1,9 @@ # $FreeBSD$ PORTNAME= gntp -PORTVERSION= 0.8 +PORTVERSION= 1.0.3 DISTVERSIONPREFIX= v -PORTREVISION= 6 -CATEGORIES= net +CATEGORIES= net python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org @@ -13,12 +12,16 @@ COMMENT= Growl Notification Transport Protocol for Pyt LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:2.7 +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 +USE_PYTHON= distutils autoplist concurrent -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +NO_ARCH= yes +PORTDOCS= * OPTIONS_DEFINE= DOCS @@ -27,6 +30,17 @@ DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${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> Modified: head/net/py-gntp/distinfo ============================================================================== --- head/net/py-gntp/distinfo Wed Jul 3 09:32:05 2019 (r505737) +++ head/net/py-gntp/distinfo Wed Jul 3 09:32:30 2019 (r505738) @@ -1,2 +1,3 @@ -SHA256 (kfdm-gntp-v0.8_GH0.tar.gz) = 1e646e6b486c7367bb342f14230fa391265b134935b72e9e04b9e6bc372bd655 -SIZE (kfdm-gntp-v0.8_GH0.tar.gz) = 38357 +TIMESTAMP = 1558186402 +SHA256 (kfdm-gntp-v1.0.3_GH0.tar.gz) = e9fde29e5ec37dfb77a7659018a7c7f65cb1411054c864eae137ce3d008f794f +SIZE (kfdm-gntp-v1.0.3_GH0.tar.gz) = 39511
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907030932.x639WUAP049658>