diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-31 23:24:56 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-31 23:24:56 +0800 |
commit | 0379a6cda8a315ade58aae792fff1e6bb629793f (patch) | |
tree | 2c33b4516fa8af9e780b0d9a689f7c735f51585a /lang | |
parent | ca000dcbfcb3b297fd83cf2c18410b0ab81922a3 (diff) | |
download | freebsd-ports-gnome-0379a6cda8a315ade58aae792fff1e6bb629793f.tar.gz freebsd-ports-gnome-0379a6cda8a315ade58aae792fff1e6bb629793f.tar.zst freebsd-ports-gnome-0379a6cda8a315ade58aae792fff1e6bb629793f.zip |
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.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/libstdc++_stldoc_4.2.2/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lang/libstdc++_stldoc_4.2.2/Makefile b/lang/libstdc++_stldoc_4.2.2/Makefile index 310569380d47..bb73b84ec11c 100644 --- a/lang/libstdc++_stldoc_4.2.2/Makefile +++ b/lang/libstdc++_stldoc_4.2.2/Makefile @@ -6,14 +6,13 @@ PORTVERSION= 20071101 PORTREVISION= 1 CATEGORIES= lang devel MASTER_SITES= ${MASTER_SITE_GCC} -MASTER_SITE_SUBDIR= \ - libstdc++/doxygen +MASTER_SITE_SUBDIR= libstdc++/doxygen DISTNAME= libstdc++-html-USERS-4.2.2 MAINTAINER= ports@FreeBSD.org COMMENT= GNU libstdc++ API documentation -USES= tar:bzip2 +USES= tar:bzip2 NO_BUILD= yes NO_WRKSUBDIR= yes @@ -24,16 +23,16 @@ NO_WRKSUBDIR= yes PORTDOCS= stldoc -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + do-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} ${DOCSDIR}/stldoc - cd ${WRKSRC}/html_user-4.2.20071101 && \ - ${FIND} . -type f | \ - ${XARGS} -J % ${INSTALL_DATA} % ${DOCSDIR}/stldoc && - ${CHMOD} 755 ${DOCSDIR} ${DOCSDIR}/stldoc +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/stldoc + (cd ${WRKSRC}/html_user-4.2.20071101 && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/stldoc) .else - @${ECHO} "NOPORTDOCS is set -- installing nothing." + @${ECHO} "Enable the DOCS option to install documentation -- installing nothing." .endif .include <bsd.port.mk> |