Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2020 05:46:18 +0000 (UTC)
From:      =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r539796 - head/www/py-tuir
Message-ID:  <202006220546.05M5kImp055264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fernape
Date: Mon Jun 22 05:46:18 2020
New Revision: 539796
URL: https://svnweb.freebsd.org/changeset/ports/539796

Log:
  www/py-tuir: correct python version and add concurrent support
  
   * The minimum Python requirement can be lowered to 2.7
   * The mailcap_fix requirement is then necessary only for python < 3.6
   * Add concurrent support
  
  PR:	247438
  Reported by:	koobs@

Modified:
  head/www/py-tuir/Makefile

Modified: head/www/py-tuir/Makefile
==============================================================================
--- head/www/py-tuir/Makefile	Mon Jun 22 04:49:21 2020	(r539795)
+++ head/www/py-tuir/Makefile	Mon Jun 22 05:46:18 2020	(r539796)
@@ -2,6 +2,7 @@
 
 PORTNAME=	tuir
 DISTVERSION=	1.29.0
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,13 +16,18 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.1:www/py-beautifulsoup@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}decorator>=4.0.10:devel/py-decorator@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}kitchen>=1.2.4:devel/py-kitchen@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mailcap_fix>=0.1.3:devel/py-mailcap-fix@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}requests>=2.11.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.4.0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR}
 
-USES=		python:3.6+
-USE_PYTHON=	autoplist distutils
+USES=		python:2.7+
+USE_PYTHON=	autoplist concurrent distutils
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} < 3.6
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mailcap_fix>=0.1.3:devel/py-mailcap-fix@${PY_FLAVOR}
+.endif
+
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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