1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

STAGE and simplify do-install.

This commit is contained in:
Matthias Andree 2014-09-01 20:55:33 +00:00
parent 4ed6f77d6c
commit d0522b10c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366956
2 changed files with 6 additions and 25 deletions

View File

@ -12,11 +12,10 @@ COMMENT= Single UNIX Specification Version 2
RESTRICTED= Redistribution of the documents is not permitted
USES= tar:bzip2
USES= tar:bzip2
NO_BUILD= yes
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -24,13 +23,7 @@ IGNORE= may not be redistributed because of licensing reasons. Please visit htt
.endif
do-install:
@${MKDIR} ${DOCSDIR}
@${FIND} ${WRKSRC} | ${SED} -e 's#^${WRKSRC}##' | while read file; do \
if ${TEST} -d "${WRKSRC}$$file"; then \
${MKDIR} "${DOCSDIR}$$file"; \
else \
${INSTALL_DATA} "${WRKSRC}$$file" "${DOCSDIR}$$file"; \
fi; \
done
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} '*' ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -12,11 +12,10 @@ COMMENT= Single UNIX Specification Version 3
RESTRICTED= Redistribution of the documents is not permitted
USES= tar:bzip2
USES= tar:bzip2
NO_BUILD= yes
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@ -24,18 +23,7 @@ IGNORE= may not be redistributed because of licensing reasons. Please visit htt
.endif
do-install:
@${MKDIR} ${DOCSDIR}
@${FIND} ${WRKSRC} | ${SED} -e 's#^${WRKSRC}##' | while read file; do \
if ${TEST} -d "${WRKSRC}$$file"; then \
${MKDIR} "${DOCSDIR}$$file"; \
else \
if ${TEST} -L "${WRKSRC}$$file"; then \
${LN} -s "`${LS} -l \"${WRKSRC}$$file\" | ${SED} -e 's/^.*> //'`" \
"${DOCSDIR}$$file"; \
else \
${INSTALL_DATA} "${WRKSRC}$$file" "${DOCSDIR}$$file"; \
fi; \
fi; \
done
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>