- Refactor to supporting staging

PR:		ports/188921
Submitted by:	Bartek Rutkowski <ports@robakdesign.com>
This commit is contained in:
Sahil Tandon 2014-05-10 00:37:43 +00:00
parent 2eba7789cf
commit 4688477405
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353556

View file

@ -9,7 +9,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}_${PORTVERSION} DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= sahil@FreeBSD.org MAINTAINER= sahil@FreeBSD.org
COMMENT= A simple chart library for Python COMMENT= Simple chart library for Python
USE_BZIP2= yes USE_BZIP2= yes
USE_PYTHON_RUN= yes USE_PYTHON_RUN= yes
@ -20,7 +20,6 @@ PORTEXAMPLES= *
NO_BUILD= yes NO_BUILD= yes
NO_INSTALL_MANPAGES= yes NO_INSTALL_MANPAGES= yes
NO_STAGE= yes
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
post-patch: post-patch:
@ -31,16 +30,16 @@ post-patch:
${XARGS} ${RM} -rf ${XARGS} ${RM} -rf
do-install: do-install:
@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME} @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
@(cd ${WRKSRC}/${PORTNAME}/ && \ @(cd ${WRKSRC}/${PORTNAME}/ && \
${COPYTREE_SHARE} \* ${PYTHON_SITELIBDIR}/${PORTNAME}) ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME})
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR} @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif .endif
.if !defined(NOPORTEXAMPLES) .if !defined(NOPORTEXAMPLES)
@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR} @${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.post.mk>