From fde4a2e2351fa0cb202d9074512142ea6d2b8fdc Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Thu, 27 Feb 2014 14:10:50 +0000 Subject: [PATCH] - Support staging - Define DOCS option --- devel/google-styleguide/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/devel/google-styleguide/Makefile b/devel/google-styleguide/Makefile index 4446f7de737b..c0217e7f4ef2 100644 --- a/devel/google-styleguide/Makefile +++ b/devel/google-styleguide/Makefile @@ -18,7 +18,8 @@ NO_WRKSUBDIR= yes PLIST_FILES= bin/cpplint.py PORTDOCS= README -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + do-extract: @${MKDIR} ${WRKSRC} @cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC} @@ -27,10 +28,8 @@ post-patch: @${REINPLACE_CMD} -Ee "s,#!.*,#!${PYTHON_CMD}," ${WRKSRC}/*.py do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${PREFIX}/bin -.ifndef NOPORTDOCS - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include