1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Use PORTDOCS=* instead of a wrong generated PLIST

Proposed by:	skv
This commit is contained in:
Sergey Matveychuk 2006-01-14 10:07:33 +00:00
parent b7c66e1b6a
commit f5b7d224de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153445
2 changed files with 2 additions and 12 deletions

View File

@ -18,8 +18,7 @@ RESTRICTED= "Redistribution of the documents is not permitted"
USE_BZIP2= yes
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= *
.include <bsd.port.pre.mk>
@ -29,16 +28,12 @@ IGNORE= "may not be redistributed because of licensing reasons. Please visit ht
do-install:
@${MKDIR} ${DOCSDIR}
@> ${PLIST}
@${FIND} ${WRKSRC} | ${SED} -e 's#^${WRKSRC}##' | while read file; do \
if ${TEST} -d "${WRKSRC}$$file"; then \
${MKDIR} "${DOCSDIR}$$file"; \
${ECHO} "@dirrm ${DOCSDIR:S#^${PREFIX}/##}$$file" >> ${PLIST}; \
else \
${INSTALL_DATA} "${WRKSRC}$$file" "${DOCSDIR}$$file"; \
${ECHO} "${DOCSDIR:S#^${PREFIX}/##}$$file" >> ${PLIST}; \
fi; \
done
@(${RM} -f ${PLIST}; ${SED} -ne '/^@/{G;h;};/^@/!p;$${g;p;}' > ${PLIST}) < ${PLIST}
.include <bsd.port.post.mk>

View File

@ -18,8 +18,7 @@ RESTRICTED= "Redistribution of the documents is not permitted"
USE_BZIP2= yes
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= *
.include <bsd.port.pre.mk>
@ -29,11 +28,9 @@ IGNORE= "may not be redistributed because of licensing reasons. Please visit ht
do-install:
@${MKDIR} ${DOCSDIR}
@> ${PLIST}
@${FIND} ${WRKSRC} | ${SED} -e 's#^${WRKSRC}##' | while read file; do \
if ${TEST} -d "${WRKSRC}$$file"; then \
${MKDIR} "${DOCSDIR}$$file"; \
${ECHO} "@dirrm ${DOCSDIR:S#^${PREFIX}/##}$$file" >> ${PLIST}; \
else \
if ${TEST} -L "${WRKSRC}$$file"; then \
${LN} -s "`${LS} -l \"${WRKSRC}$$file\" | ${SED} -e 's/^.*> //'`" \
@ -41,9 +38,7 @@ do-install:
else \
${INSTALL_DATA} "${WRKSRC}$$file" "${DOCSDIR}$$file"; \
fi; \
${ECHO} "${DOCSDIR:S#^${PREFIX}/##}$$file" >> ${PLIST}; \
fi; \
done
@(${RM} -f ${PLIST}; ${SED} -ne '/^@/{G;h;};/^@/!p;$${g;p;}' > ${PLIST}) < ${PLIST}
.include <bsd.port.post.mk>