Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 02:22:18 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/166052: Update port: textproc/py-chardet
Message-ID:  <20120314022218.07efa8e1.tkato432@yahoo.com>
Resent-Message-ID: <201203131810.q2DIADjQ055162@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166052
>Category:       ports
>Synopsis:       Update port: 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:   Tue Mar 13 18:10:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Add LICENSE
- Support COPYTREE_SHARE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/textproc/py-chardet/Makefile textproc/py-chardet/Makefile
--- /usr/ports/textproc/py-chardet/Makefile	2010-04-04 16:42:16.000000000 +0900
+++ textproc/py-chardet/Makefile	2012-03-11 03:54:19.000000000 +0900
@@ -6,8 +6,14 @@
 
 PORTNAME=	chardet
 PORTVERSION=	2.0.1
+PORTREVISION=	1
 CATEGORIES=	textproc python
-MASTER_SITES=	http://chardet.feedparser.org/download/
+#MASTER_SITES=	http://chardet.feedparser.org/download/
+MASTER_SITES=	http://darkstar.ist.utl.pt/slackware/addon/slacky/%SUBDIR%/ \
+		http://repository.slacky.eu/%SUBDIR%/ \
+		http://slack.isper.sk/pub/%SUBDIR%/ \
+		http://www.slackware.org.uk/slacky/%SUBDIR%/
+MASTER_SITE_SUBDIR=	slackware64-13.37/libraries/python2-${PORTNAME}/${PORTVERSION}/src
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	python2-${PORTNAME}-${PORTVERSION}
 EXTRACT_SUFX=	.tgz
@@ -15,19 +21,20 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Character encoding auto-detection in Python
 
+LICENSE=	LGPL21
+LICENCE_FILE=	${WRKSRC}/COPYING
+
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	docs COPYING
-.endif
+DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
+
+PORTDOCS=	*
 
 post-install:
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
-	${CP} -R ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
+	@${MKDIR} ${DOCSDIR}
+	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR})
 .endif
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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