svn commit: r442754 - in head/textproc: py-chardet py3-chardet
Kubilay Kocak
koobs at FreeBSD.org
Tue Jun 6 09:56:51 UTC 2017
Author: koobs
Date: Tue Jun 6 09:56:50 2017
New Revision: 442754
URL: https://svnweb.freebsd.org/changeset/ports/442754
Log:
textproc/py3-chardet: Convert to slave port
The last update to www/py-requests [1] requires chardet >= 3.0.2. This commit
resulted in pkg-fallout notifications for the www/py3-requests port indicating
that the dependency version could not be satisfied:
py36-requests-2.17.3 depends on package: py36-chardet>=3.0.2 - not found
The textproc/py-chardet port version is 3.0.2, satisfying the dependency
and its minimum version requirement, but the textproc/py3-chardet port version
is 2.3.0. This is due to the py3-chardet being a copy of, not a slave of, and
inheriting values from py-chardet.
py3-foo ports are currently a workaround, used to provide Python 3.x versions of
dependencies for those ports that are built with Python 3.x.
They must be equivalent (in particular in version) to the original port except
for overriding the version of python that it will be built with, and any
dependencies.
Convert textproc/py3-chardet to a slave port accordingly
[1] https://svnweb.freebsd.org/changeset/ports/442565
Reported by: pkg-fallout
Approved by: koobs (python, with hat)
Modified:
head/textproc/py-chardet/Makefile
head/textproc/py3-chardet/Makefile
Modified: head/textproc/py-chardet/Makefile
==============================================================================
--- head/textproc/py-chardet/Makefile Tue Jun 6 09:01:17 2017 (r442753)
+++ head/textproc/py-chardet/Makefile Tue Jun 6 09:56:50 2017 (r442754)
@@ -13,12 +13,12 @@ COMMENT= Universal encoding detector for Python 2 and
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner
+BUILD_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis
NO_ARCH= yes
-USES= python
+USES?= python
USE_PYTHON= autoplist concurrent distutils
do-test:
Modified: head/textproc/py3-chardet/Makefile
==============================================================================
--- head/textproc/py3-chardet/Makefile Tue Jun 6 09:01:17 2017 (r442753)
+++ head/textproc/py3-chardet/Makefile Tue Jun 6 09:56:50 2017 (r442754)
@@ -1,21 +1,10 @@
# Created by: Muhammad Moinur Rahman <bofh at FreeBSD.org>
# $FreeBSD$
-PORTNAME= chardet
-PORTVERSION= 2.3.0
-PORTREVISION= 1
-CATEGORIES= textproc python
-MASTER_SITES= CHEESESHOP
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+MASTERDIR= ${.CURDIR}/../py-chardet
-MAINTAINER= bofh at FreeBSD.org
-COMMENT= Universal encoding detector for Python 3
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py3-pytest-runner
-LICENSE= LGPL21
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
USES= python:3.3+
-USE_PYTHON= autoplist concurrent distutils
-NO_ARCH= yes
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
More information about the svn-ports-all
mailing list