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

Stage and unbreak.

I'm still not sure why a documentation-only port was checking NOPORTDOCS, but
sure, let's keep the party going with a DOCS option.
This commit is contained in:
Adam Weinberger 2014-07-31 15:24:56 +00:00
parent 85cfa4a64e
commit 5a2beeb7ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363622

View File

@ -6,14 +6,13 @@ PORTVERSION= 20071101
PORTREVISION= 1 PORTREVISION= 1
CATEGORIES= lang devel CATEGORIES= lang devel
MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= \ MASTER_SITE_SUBDIR= libstdc++/doxygen
libstdc++/doxygen
DISTNAME= libstdc++-html-USERS-4.2.2 DISTNAME= libstdc++-html-USERS-4.2.2
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= GNU libstdc++ API documentation COMMENT= GNU libstdc++ API documentation
USES= tar:bzip2 USES= tar:bzip2
NO_BUILD= yes NO_BUILD= yes
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
@ -24,16 +23,16 @@ NO_WRKSUBDIR= yes
PORTDOCS= stldoc PORTDOCS= stldoc
NO_STAGE= yes OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install: do-install:
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/stldoc @${MKDIR} ${STAGEDIR}${DOCSDIR}/stldoc
cd ${WRKSRC}/html_user-4.2.20071101 && \ (cd ${WRKSRC}/html_user-4.2.20071101 && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/stldoc)
${FIND} . -type f | \
${XARGS} -J % ${INSTALL_DATA} % ${DOCSDIR}/stldoc &&
${CHMOD} 755 ${DOCSDIR} ${DOCSDIR}/stldoc
.else .else
@${ECHO} "NOPORTDOCS is set -- installing nothing." @${ECHO} "Enable the DOCS option to install documentation -- installing nothing."
.endif .endif
.include <bsd.port.mk> .include <bsd.port.mk>