Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 11:43:30 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r344195 - head/devel/py-px
Message-ID:  <201402141143.s1EBhUgF006487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>



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