Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164886155
D10141.id26677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
6 KB
Referenced Files
None
Subscribers
None
D10141.id26677.diff
View Options
Index: head/devel/google-styleguide/Makefile
===================================================================
--- head/devel/google-styleguide/Makefile
+++ head/devel/google-styleguide/Makefile
@@ -1,39 +1,48 @@
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$
-PORTNAME= google-styleguide
-PORTVERSION= 66
+PORTNAME= styleguide
+PORTVERSION= 20170302
CATEGORIES= devel
-MASTER_SITES= http://google-styleguide.googlecode.com/svn/trunk/cpplint/
-DISTFILES= cpplint.py cpplint_unittest.py README
-DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= google-
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool to assist with Google style guide compliance
-BROKEN= Unfetchable (google code has gone away)
-DEPRECATED= Unfetchable for more than six months (google code has gone away)
-EXPIRATION_DATE= 2017-04-30
+# 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
-USES= python
+NO_ARCH= yes
NO_BUILD= yes
-NO_WRKSUBDIR= yes
-
-PLIST_FILES= bin/cpplint.py
-PORTDOCS= README
+SHEBANG_FILES= cpplint/cpplint.py cpplint/cpplint_unittest.py
OPTIONS_DEFINE= DOCS
-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 ${STAGEDIR}${PREFIX}/bin
+ ${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}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${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>
Index: head/devel/google-styleguide/distinfo
===================================================================
--- head/devel/google-styleguide/distinfo
+++ head/devel/google-styleguide/distinfo
@@ -1,6 +1,3 @@
-SHA256 (google-styleguide-66/cpplint.py) = 573f92ea3572a1b052281eedb2b45c489649f5619854ba6e349554e654f77210
-SIZE (google-styleguide-66/cpplint.py) = 123503
-SHA256 (google-styleguide-66/cpplint_unittest.py) = 1fc17c263fc4176932540dbc3b2e1d8581d448c741ff6750ae93fb3e31f9faf2
-SIZE (google-styleguide-66/cpplint_unittest.py) = 116012
-SHA256 (google-styleguide-66/README) = 1c0500c633b2161633abffccc942f8b18dddb04a9b099d40db09b959078044c8
-SIZE (google-styleguide-66/README) = 2228
+TIMESTAMP = 1490527488
+SHA256 (google-styleguide-20170302-15f2836_GH0.tar.gz) = 591f3662221f3147bd91961fbe2dec2a4154ba69b3ec9a114dab668c78863751
+SIZE (google-styleguide-20170302-15f2836_GH0.tar.gz) = 1012477
Index: head/devel/google-styleguide/pkg-descr
===================================================================
--- head/devel/google-styleguide/pkg-descr
+++ head/devel/google-styleguide/pkg-descr
@@ -1,17 +1,17 @@
-This is automated checker to make sure a C++ file follows Google's C++ style
-guide (http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml). As it
-heavily relies on regular expressions, cpplint.py won't catch all violations of
-the style guide and will very occasionally report a false positive. There is a
-list of things we currently don't handle very well at the top of cpplint.py,
-and we welcome patches to improve it.
+This project contains coding style guides used at Google. There are style
+guides for AngularJS, C++, Common Lisp, HTML/CSS, Java, JavaScript, Objective-C,
+Python, R, Shell, and Vimscript. Also included is:
-The linting tool takes a list of files as input. For full usage instructions,
-please see the output of:
+- cpplint, an automated checker to make sure a C++ file follows Google's C++
+ style guide
+- google-c-style.el, an Emacs minor mode to provide Google's C/C++ coding style
+ within Emacs
+- google_python_style.vim, which indents Python code in the Google way when
+ using Vim.
- ./cpplint.py --help
+If your project requires that you create a new XML document format, the included
+"XML Document Format Style Guide" may be helpful. In addition to actual style
+rules, it also contains advice on designing your own versus adapting an existing
+format, on XML instance document formatting, and on elements versus attributes.
-Unit tests are provided in cpplint_unittest.py. This file can safely be ignored
-by end users who have downloaded this package and only want to run the lint
-tool.
-
-WWW: http://code.google.com/p/google-styleguide/
+WWW: https://github.com/google/styleguide/
Index: head/devel/google-styleguide/pkg-plist
===================================================================
--- head/devel/google-styleguide/pkg-plist
+++ head/devel/google-styleguide/pkg-plist
@@ -0,0 +1,36 @@
+bin/cpplint.py
+bin/cpplint_unittest.py
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/angularjs-google-style.html
+%%PORTDOCS%%%%DOCSDIR%%/cppguide.html
+%%PORTDOCS%%%%DOCSDIR%%/cpplint/README
+%%PORTDOCS%%%%DOCSDIR%%/docguide/README.md
+%%PORTDOCS%%%%DOCSDIR%%/docguide/READMEs.md
+%%PORTDOCS%%%%DOCSDIR%%/docguide/VERSION
+%%PORTDOCS%%%%DOCSDIR%%/docguide/best_practices.md
+%%PORTDOCS%%%%DOCSDIR%%/docguide/philosophy.md
+%%PORTDOCS%%%%DOCSDIR%%/docguide/style.md
+%%PORTDOCS%%%%DOCSDIR%%/google-r-style.html
+%%PORTDOCS%%%%DOCSDIR%%/htmlcssguide.html
+%%PORTDOCS%%%%DOCSDIR%%/javaguide.css
+%%PORTDOCS%%%%DOCSDIR%%/javaguide.html
+%%PORTDOCS%%%%DOCSDIR%%/jsguide.html
+%%PORTDOCS%%%%DOCSDIR%%/jsoncstyleguide.html
+%%PORTDOCS%%%%DOCSDIR%%/pyguide.html
+%%PORTDOCS%%%%DOCSDIR%%/styleguide.css
+%%PORTDOCS%%%%DOCSDIR%%/xmlstyle.html
+%%DATADIR%%/Rguide.xml
+%%DATADIR%%/cppguide.xml
+%%DATADIR%%/eclipse-cpp-google-style.xml
+%%DATADIR%%/eclipse-java-google-style.xml
+%%DATADIR%%/google-c-style.el
+%%DATADIR%%/google_python_style.vim
+%%DATADIR%%/htmlcssguide.xml
+%%DATADIR%%/intellij-java-google-style.xml
+%%DATADIR%%/javascriptguide.xml
+%%DATADIR%%/jsoncstyleguide.xml
+%%DATADIR%%/lispguide.xml
+%%DATADIR%%/objcguide.xml
+%%DATADIR%%/shell.xml
+%%DATADIR%%/vimscriptfull.xml
+%%DATADIR%%/vimscriptguide.xml
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 12:30 PM (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36036827
Default Alt Text
D10141.id26677.diff (6 KB)
Attached To
Mode
D10141: devel/google-styleguide: Fix and save from expiration
Attached
Detach File
Event Timeline
Log In to Comment