Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2019 20:57:37 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505708 - head/www/py-multidict
Message-ID:  <201907022057.x62KvbWx051418@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Jul  2 20:57:36 2019
New Revision: 505708
URL: https://svnweb.freebsd.org/changeset/ports/505708

Log:
  - Add support for testing
  - Strip libraries
  - Take maintainership
  
  PR:		238852
  Approved by:	wg (maintainer)

Modified:
  head/www/py-multidict/Makefile

Modified: head/www/py-multidict/Makefile
==============================================================================
--- head/www/py-multidict/Makefile	Tue Jul  2 20:46:23 2019	(r505707)
+++ head/www/py-multidict/Makefile	Tue Jul  2 20:57:36 2019	(r505708)
@@ -6,13 +6,23 @@ CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	wg@FreeBSD.org
+MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Multidict implementation
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
+
 USES=		python:3.4+
 USE_PYTHON=	autoplist cython distutils
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/multidict/*.so
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907022057.x62KvbWx051418>