Prune devel/py-EnthoughtBase
[dports.git] / devel / google-styleguide / Makefile
1 # Created by: Yen-Ming Lee <leeym@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       google-styleguide
5 PORTVERSION=    66
6 CATEGORIES=     devel
7 MASTER_SITES=   http://google-styleguide.googlecode.com/svn/trunk/cpplint/
8 DISTFILES=      cpplint.py cpplint_unittest.py README
9 DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}
10
11 MAINTAINER=     leeym@FreeBSD.org
12 COMMENT=        Tool to assist with Google style guide compliance
13
14 USES=           python
15 NO_BUILD=       yes
16 NO_WRKSUBDIR=   yes
17
18 PLIST_FILES=    bin/cpplint.py
19 PORTDOCS=       README
20
21 OPTIONS_DEFINE= DOCS
22
23 do-extract:
24         @${MKDIR} ${WRKSRC}
25         @cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
26
27 post-patch:
28         @${REINPLACE_CMD} -Ee "s,#!.*,#!${PYTHON_CMD}," ${WRKSRC}/*.py
29
30 do-install:
31         ${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${STAGEDIR}${PREFIX}/bin
32         ${MKDIR} ${STAGEDIR}${DOCSDIR}
33         cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
34
35 .include <bsd.port.mk>