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:
parent
4ed6f77d6c
commit
d0522b10c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366956
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user