1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add staging support

This commit is contained in:
Pawel Pekala 2014-08-07 14:30:18 +00:00
parent 1e01e8994d
commit 977e621260
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364275

View File

@ -41,7 +41,6 @@ SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
NO_STAGE= yes
.include "${.CURDIR}/contents.inc" .include "${.CURDIR}/contents.inc"
# I'd much rather do this stuff in line with the actual installation # I'd much rather do this stuff in line with the actual installation
@ -60,25 +59,20 @@ pre-install:
${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST} ${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST}
${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST} ${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST}
${ECHO} "@dirrm ${dir_DTD}" >> ${PLIST} ${ECHO} "@dirrm ${dir_DTD}" >> ${PLIST}
${ECHO} '@unexec rmdir %D share/xml/dtd 2>/dev/null || true' >> \ ${ECHO} '@unexec rmdir %D/share/xml/dtd 2>/dev/null || true' >> \
${PLIST} ${PLIST}
${ECHO} "@dirrm ${dir_DOC}" >> ${PLIST} ${ECHO} "@dirrm ${dir_DOC}" >> ${PLIST}
do-install: do-install:
@[ -d ${PREFIX}/${dir_DTD} ] || \ @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DTD}
${MKDIR} ${PREFIX}/${dir_DTD} @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DOC}
@[ -d ${PREFIX}/${dir_DOC} ] || \ (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DTD} \
${MKDIR} ${PREFIX}/${dir_DOC} ${STAGEDIR}${PREFIX}/${dir_DTD})
.for f in ${contents_DTD} (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DOC} \
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${dir_DTD}/${f} ${STAGEDIR}${PREFIX}/${dir_DOC})
.endfor
.for f in ${contents_DOC}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${dir_DOC}/${f}
.endfor
${SED} -e "s;@@PREFIX@@;${PREFIX};g" ${FILESDIR}/catalog.xml > \ ${SED} -e "s;@@PREFIX@@;${PREFIX};g" ${FILESDIR}/catalog.xml > \
${WRKDIR}/catalog.xml ${WRKDIR}/catalog.xml
${INSTALL_DATA} ${WRKDIR}/catalog.xml ${PREFIX}/${dir_DTD}/catalog.xml ${INSTALL_DATA} ${WRKDIR}/catalog.xml \
${XMLCAT_ADD} ${STAGEDIR}${PREFIX}/${dir_DTD}/catalog.xml
${SGMLCAT_ADD}
.include <bsd.port.mk> .include <bsd.port.mk>