Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2017 09:56:50 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r442754 - in head/textproc: py-chardet py3-chardet
Message-ID:  <201706060956.v569uo5S026176@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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"



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