1 # Created by: Yen-Ming Lee <leeym@FreeBSD.org>
4 PORTNAME= google-styleguide
7 MASTER_SITES= http://google-styleguide.googlecode.com/svn/trunk/cpplint/
8 DISTFILES= cpplint.py cpplint_unittest.py README
9 DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
11 MAINTAINER= leeym@FreeBSD.org
12 COMMENT= Tool to assist with Google style guide compliance
18 PLIST_FILES= bin/cpplint.py
25 @cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
28 @${REINPLACE_CMD} -Ee "s,#!.*,#!${PYTHON_CMD}," ${WRKSRC}/*.py
31 ${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${STAGEDIR}${PREFIX}/bin
32 ${MKDIR} ${STAGEDIR}${DOCSDIR}
33 cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
35 .include <bsd.port.mk>