# New ports collection Makefile for:	py-chardet
# Date created:				2005-01-25
# Whom:					arved
#
# $FreeBSD: ports/textproc/py-chardet/Makefile,v 1.6 2010/04/03 20:42:15 lwhsu Exp $

PORTNAME=	chardet
PORTVERSION=	2.0.1
CATEGORIES=	textproc python
MASTER_SITES=	http://chardet.feedparser.org/download/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	python2-${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Character encoding auto-detection in Python

USE_PYTHON=	yes
USE_PYDISTUTILS=yes

.if !defined(NOPORTDOCS)
PORTDOCS=	docs COPYING
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
