From owner-svn-ports-head@FreeBSD.ORG Fri Feb 14 11:43:30 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CB45221; Fri, 14 Feb 2014 11:43:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 54E091D8A; Fri, 14 Feb 2014 11:43:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1EBhUNp006488; Fri, 14 Feb 2014 11:43:30 GMT (envelope-from antoine@svn.freebsd.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1EBhUgF006487; Fri, 14 Feb 2014 11:43:30 GMT (envelope-from antoine@svn.freebsd.org) Message-Id: <201402141143.s1EBhUgF006487@svn.freebsd.org> From: Antoine Brodin Date: Fri, 14 Feb 2014 11:43:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344195 - head/devel/py-px X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 11:43:30 -0000 Author: antoine Date: Fri Feb 14 11:43:29 2014 New Revision: 344195 URL: http://svnweb.freebsd.org/changeset/ports/344195 QAT: https://qat.redports.org/buildarchive/r344195/ Log: - Stage support - Use PYDISTUTILS_AUTOPLIST - Remove infozip dependency Modified: head/devel/py-px/Makefile Modified: head/devel/py-px/Makefile ============================================================================== --- head/devel/py-px/Makefile Fri Feb 14 11:30:25 2014 (r344194) +++ head/devel/py-px/Makefile Fri Feb 14 11:43:29 2014 (r344195) @@ -5,7 +5,9 @@ PORTNAME= px PORTVERSION= 0.9.5 CATEGORIES= devel python MASTER_SITES= GOOGLE_CODE +PROJECTHOST= python-p4lib PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +EXTRACT_SUFX= .zip DIST_SUBDIR= python MAINTAINER= ports@FreeBSD.org @@ -14,26 +16,19 @@ COMMENT= Perforce p4 wrapper and Python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -PROJECTHOST= python-p4lib -USE_ZIP= yes USE_PYTHON= yes USE_PYDISTUTILS= yes - -DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +PYDISTUTILS_AUTOPLIST= yes PORTDOCS= BUGS.txt README.txt TODO.txt -PLIST_FILES= bin/px \ - %%PYTHON_SITELIBDIR%%/p4lib.py \ - %%PYTHON_SITELIBDIR%%/p4lib.pyc \ - %%PYTHON_SITELIBDIR%%/p4lib.pyo -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} '/data_files/d' ${WRKSRC}/setup.py + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for doc in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} -.endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include