- Stage support

This commit is contained in:
Martin Wilke 2014-02-28 16:18:59 +00:00
parent dea70cd280
commit 2ee8e5f59b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346540

View File

@ -16,31 +16,25 @@ USE_JAVA= yes
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's|\.\./\.\./css|css|' ${WRKSRC}/xsl/params.xsl
${FIND} ${WRKSRC} -name '*.bak' -delete
do-install:
${MKDIR} ${PREFIX}/share/xml/${PORTNAME}
${CP} -R ${WRKSRC}/dtd/* ${PREFIX}/share/xml/${PORTNAME}
${MKDIR} ${PREFIX}/share/xsl/${PORTNAME}
${CP} -R ${WRKSRC}/xsl/* ${PREFIX}/share/xsl/${PORTNAME}
${CP} -R ${WRKSRC}/css ${PREFIX}/share/xsl/${PORTNAME}/format
${INSTALL_DATA} ${WRKSRC}/java/*.jar ${JAVAJARDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/share/xml/${PORTNAME}
${CP} -R ${WRKSRC}/dtd/* ${STAGEDIR}${PREFIX}/share/xml/${PORTNAME}
${MKDIR} ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}
${CP} -R ${WRKSRC}/xsl/* ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}
${CP} -R ${WRKSRC}/css ${STAGEDIR}${PREFIX}/share/xsl/${PORTNAME}/format
${INSTALL_DATA} ${WRKSRC}/java/*.jar ${STAGEDIR}${JAVAJARDIR}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" pkg-message >${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>