- Fix plist after DOCSDIR change

Reported by:	pointyhat (via pav)
This commit is contained in:
Gabor Kovesdan 2009-02-25 19:16:55 +00:00
parent 2666b54c71
commit aae0490af7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229047
3 changed files with 8 additions and 3 deletions

View file

@ -39,7 +39,7 @@ DTDDIR= ${SGMLCATBASE}/${DTD_NAME}/${DTD_VERSION}
DTD_FILES= calstblx.dtd catalog.xml dbcentx.mod dbgenent.mod \
dbhierx.mod dbnotnx.mod dbpoolx.mod docbook.cat docbook.dcl \
docbook.dtd docbookx.dtd htmltblx.mod soextblx.dtd catalog
DOCSDIR= ${PREFIX}/share/${PORTNAME}/${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
post-extract:
${CP} ${WRKSRC}/docbook.cat ${WRKSRC}/catalog
@ -58,6 +58,8 @@ pre-install:
${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
done;\
${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
${ECHO_CMD} "@dirrm ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTVERSION}!!}" >> ${PLIST}
${ECHO_CMD} "@dirrmtry ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTNAME}${PORTVERSION}!!}" >> ${PLIST}
.endif
${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML}" >> ${PLIST}
${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_SGML}" >> ${PLIST}

View file

@ -39,7 +39,7 @@ DTDDIR= ${SGMLCATBASE}/${DTD_NAME}/${DTD_VERSION}
DTD_FILES= calstblx.dtd catalog.xml dbcentx.mod dbgenent.mod \
dbhierx.mod dbnotnx.mod dbpoolx.mod docbook.cat docbook.dcl \
docbook.dtd docbookx.dtd htmltblx.mod soextblx.dtd catalog
DOCSDIR= ${PREFIX}/share/${PORTNAME}/${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
post-extract:
${CP} ${WRKSRC}/docbook.cat ${WRKSRC}/catalog
@ -58,6 +58,8 @@ pre-install:
${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
done;\
${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST}
${ECHO_CMD} "@dirrm ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTVERSION}!!}" >> ${PLIST}
${ECHO_CMD} "@dirrmtry ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTNAME}${PORTVERSION}!!}" >> ${PLIST}
.endif
${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_SGML}" >> ${PLIST}
${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_SGML}" >> ${PLIST}

View file

@ -43,7 +43,7 @@ ENT_FILES= isoamsa.ent isoamsb.ent isoamsc.ent isoamsn.ent \
isocyr2.ent isodia.ent isogrk1.ent isogrk2.ent \
isogrk3.ent isogrk4.ent isolat1.ent isolat2.ent \
isonum.ent isopub.ent isotech.ent
DOCSDIR= ${PREFIX}/share/${PORTNAME}/${PORTVERSION}
#DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
pre-install:
@${RM} -f ${PLIST}
@ -61,6 +61,7 @@ pre-install:
@${ECHO_CMD} "${DOCSDIR:S!^${PREFIX}/!!}/${F}.${PORTVERSION}" >> ${PLIST}
.endfor
@${ECHO_CMD} "@dirrmtry ${DOCSDIR:S!^${PREFIX}/!!}" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry ${DOCSDIR:S!^${PREFIX}/!!:S!${PORTNAME}!!}" >> ${PLIST}
.endif
@${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_XML}" >> ${PLIST}
@${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_XML}" >> ${PLIST}