Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 11:29:48 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337859 - head/net/py-google
Message-ID:  <201312281129.rBSBTm62062159@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Sat Dec 28 11:29:48 2013
New Revision: 337859
URL: http://svnweb.freebsd.org/changeset/ports/337859

Log:
  net/py-google: support staging

Deleted:
  head/net/py-google/pkg-plist
Modified:
  head/net/py-google/Makefile

Modified: head/net/py-google/Makefile
==============================================================================
--- head/net/py-google/Makefile	Sat Dec 28 11:29:06 2013	(r337858)
+++ head/net/py-google/Makefile	Sat Dec 28 11:29:48 2013	(r337859)
@@ -15,16 +15,13 @@ RUN_DEPENDS=	${PYXML}
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
-PYDISTUTILS_PKGNAME=	pygoogle
-PYDISTUTILS_PKGVERSION=	0.5
+PYDISTUTILS_AUTOPLIST=	yes
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
 DOCSDIR=	${PREFIX}/share/doc/py-google
+PORTEXAMPLES=	*
 EXAMPLESDIR=	${PREFIX}/share/examples/py-google
-.endif
 
-NO_STAGE=	yes
 post-patch:
 # www/py-websvcs has an incompatible version of SOAP.py
 	@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
@@ -36,12 +33,9 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${EXAMPLESDIR}
-	@${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${EXAMPLESDIR}
-	@${MKDIR} ${DOCSDIR}
-	@${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>



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