4b471b71a1
- switch to GitHub - use date-based version numbers - set licenses - install xml descriptions of style guides - install files for editor integration - install optional documentation - add pkg-plist Reviewed by: mat Approved by: swills (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D10141
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= styleguide
|
|
PORTVERSION= 20170302
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= google-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tool to assist with Google style guide compliance
|
|
|
|
# cpplint.py and cpplint_unittest.py under BSD3CLAUSE
|
|
# style guides under CC-BY-3.0
|
|
# google-c-style.el under GPLv1+
|
|
LICENSE= BSD3CLAUSE CC-BY-3.0 GPLv1+
|
|
LICENSE_COMB= multi
|
|
|
|
USES= python shebangfix
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= google
|
|
GH_TAGNAME= 15f2836
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
SHEBANG_FILES= cpplint/cpplint.py cpplint/cpplint_unittest.py
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cpplint/cpplint.py ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cpplint/cpplint_unittest.py ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.xml ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/google_python_style.vim ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/google-c-style.el ${STAGEDIR}${DATADIR}
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.css ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/cpplint
|
|
${INSTALL_DATA} ${WRKSRC}/cpplint/README ${STAGEDIR}${DOCSDIR}/cpplint
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/docguide
|
|
(cd ${WRKSRC}/docguide && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/docguide)
|
|
|
|
.include <bsd.port.mk>
|