blob: 27d8f11d5c703ca71be71b84f9b8c90cf63259bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# New ports collection makefile for: google-styleguide
# Date created: 2010-07-28
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= google-styleguide
PORTVERSION= 66
CATEGORIES= devel
MASTER_SITES= http://google-styleguide.googlecode.com/svn/trunk/cpplint/
DISTFILES= cpplint.py cpplint_unittest.py README
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= leeym@FreeBSD.org
COMMENT= A tool to assist with Google style guide compliance
USE_PYTHON?= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= bin/cpplint.py
PORTDOCS= README
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
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
.include <bsd.port.mk>
|