1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-03-17 10:24:59 +00:00
parent 9d1793bb61
commit 3f1fd97d26
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348462

View File

@ -20,23 +20,18 @@ PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|.exe||g' \
-e 's|"c:\\mail\\Inbox.*"|/home/user/Inbox|g' ${WRKDIR}/*
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.py \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>