ports/166557: [PATCH] textproc/py-chardet
Olivier Duchateau
duchateau.olivier at gmail.com
Sun Apr 1 10:30:13 UTC 2012
>Number: 166557
>Category: ports
>Synopsis: [PATCH] textproc/py-chardet
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 01 10:30:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Olivier Duchateau
>Release: FreeBSD 8.2-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES, USE_PYDISTUTILS macros
- Delete pkg-plist, because module is "zipped", so add PLIST_FILES
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -u /usr/ports/textproc/py-chardet/Makefile py-chardet/Makefile
--- /usr/ports/textproc/py-chardet/Makefile 2010-04-03 22:42:15.000000000 +0200
+++ py-chardet/Makefile 2012-04-01 11:50:34.000000000 +0200
@@ -7,27 +7,18 @@
PORTNAME= chardet
PORTVERSION= 2.0.1
CATEGORIES= textproc python
-MASTER_SITES= http://chardet.feedparser.org/download/
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= python2-${PORTNAME}-${PORTVERSION}
-EXTRACT_SUFX= .tgz
+DISTNAME= ${PORTNAME}2-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Character encoding auto-detection in Python
USE_PYTHON= yes
-USE_PYDISTUTILS=yes
+USE_PYDISTUTILS= easy_install
-.if !defined(NOPORTDOCS)
-PORTDOCS= docs COPYING
-.endif
+PYDISTUTILS_PKGNAME= ${PORTNAME}2
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
- ${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.endif
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
.include <bsd.port.mk>
diff -u /usr/ports/textproc/py-chardet/distinfo py-chardet/distinfo
--- /usr/ports/textproc/py-chardet/distinfo 2011-07-03 16:39:49.000000000 +0200
+++ py-chardet/distinfo 2012-04-01 11:50:34.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (python2-chardet-2.0.1.tgz) = 56fa0c37189b0a5f082d064dec59d69a044aaa3eeb7acb9b3081e2ba306deaa4
-SIZE (python2-chardet-2.0.1.tgz) = 177793
+SHA256 (chardet2-2.0.1.tar.gz) = 66a52dffeb670bc29b4e115a0b4b0ecb8cecbe93120fe9979775938f0544f37a
+SIZE (chardet2-2.0.1.tar.gz) = 151734
Only in /usr/ports/textproc/py-chardet/: pkg-plist
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list