summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2015-12-30 14:12:03 +0000
committerbsiegert <bsiegert>2015-12-30 14:12:03 +0000
commit5f6f3e1de508776dbf444369c4b8c3908d46c85e (patch)
tree2b018c05e5197b49ba86440e25ffa5589f9b42f4 /devel
parent894033e06e4153aad5b53552ef941c8ec97d24ea (diff)
downloadpkgsrc-5f6f3e1de508776dbf444369c4b8c3908d46c85e.tar.gz
Add a package for golint.
golint lints the Go source files named on its command line.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile3
-rw-r--r--devel/golint/DESCR1
-rw-r--r--devel/golint/Makefile19
-rw-r--r--devel/golint/PLIST42
-rw-r--r--devel/golint/distinfo6
5 files changed, 70 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0bf71b6d85d..31f7b6fc94a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2182 2015/12/27 20:44:34 wiz Exp $
+# $NetBSD: Makefile,v 1.2183 2015/12/30 14:12:03 bsiegert Exp $
#
COMMENT= Development utilities
@@ -284,6 +284,7 @@ SUBDIR+= go-nbreader
SUBDIR+= go-tools
SUBDIR+= gob2
SUBDIR+= gobject-introspection
+SUBDIR+= golint
SUBDIR+= google-api-go-client
SUBDIR+= google-glog
SUBDIR+= googletest
diff --git a/devel/golint/DESCR b/devel/golint/DESCR
new file mode 100644
index 00000000000..4f01665dc5d
--- /dev/null
+++ b/devel/golint/DESCR
@@ -0,0 +1 @@
+golint lints the Go source files named on its command line.
diff --git a/devel/golint/Makefile b/devel/golint/Makefile
new file mode 100644
index 00000000000..e8180e8ebe3
--- /dev/null
+++ b/devel/golint/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2015/12/30 14:12:03 bsiegert Exp $
+
+DISTNAME= golint-20151230
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
+GITHUB_PROJECT= lint
+GITHUB_TAG= 32a8716
+
+MAINTAINER= bsiegert@NetBSD.org
+HOMEPAGE= https://golang.org/
+COMMENT= Linter for Go source files
+LICENSE= modified-bsd
+
+GO_SRCPATH= github.com/golang/lint
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../devel/go-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/golint/PLIST b/devel/golint/PLIST
new file mode 100644
index 00000000000..7ed5bbb00b4
--- /dev/null
+++ b/devel/golint/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 2015/12/30 14:12:03 bsiegert Exp $
+bin/golint
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/lint.a
+gopkg/src/github.com/golang/lint/CONTRIBUTING.md
+gopkg/src/github.com/golang/lint/LICENSE
+gopkg/src/github.com/golang/lint/README.md
+gopkg/src/github.com/golang/lint/golint/golint.go
+gopkg/src/github.com/golang/lint/golint/import.go
+gopkg/src/github.com/golang/lint/lint.go
+gopkg/src/github.com/golang/lint/lint_test.go
+gopkg/src/github.com/golang/lint/misc/emacs/golint.el
+gopkg/src/github.com/golang/lint/misc/vim/ftplugin/go/lint.vim
+gopkg/src/github.com/golang/lint/testdata/4.go
+gopkg/src/github.com/golang/lint/testdata/5_test.go
+gopkg/src/github.com/golang/lint/testdata/blank-import-lib.go
+gopkg/src/github.com/golang/lint/testdata/blank-import-lib_test.go
+gopkg/src/github.com/golang/lint/testdata/blank-import-main.go
+gopkg/src/github.com/golang/lint/testdata/broken.go
+gopkg/src/github.com/golang/lint/testdata/common-methods.go
+gopkg/src/github.com/golang/lint/testdata/const-block.go
+gopkg/src/github.com/golang/lint/testdata/else-multi.go
+gopkg/src/github.com/golang/lint/testdata/else.go
+gopkg/src/github.com/golang/lint/testdata/error-return.go
+gopkg/src/github.com/golang/lint/testdata/errorf.go
+gopkg/src/github.com/golang/lint/testdata/errors.go
+gopkg/src/github.com/golang/lint/testdata/import-dot.go
+gopkg/src/github.com/golang/lint/testdata/inc.go
+gopkg/src/github.com/golang/lint/testdata/make.go
+gopkg/src/github.com/golang/lint/testdata/names.go
+gopkg/src/github.com/golang/lint/testdata/pkg-doc1.go
+gopkg/src/github.com/golang/lint/testdata/pkg-doc2.go
+gopkg/src/github.com/golang/lint/testdata/pkg-doc3.go
+gopkg/src/github.com/golang/lint/testdata/pkg-doc4.go
+gopkg/src/github.com/golang/lint/testdata/pkg-doc5.go
+gopkg/src/github.com/golang/lint/testdata/pkg-main.go
+gopkg/src/github.com/golang/lint/testdata/range.go
+gopkg/src/github.com/golang/lint/testdata/receiver-names.go
+gopkg/src/github.com/golang/lint/testdata/sort.go
+gopkg/src/github.com/golang/lint/testdata/stutter.go
+gopkg/src/github.com/golang/lint/testdata/time.go
+gopkg/src/github.com/golang/lint/testdata/unexp-return.go
+gopkg/src/github.com/golang/lint/testdata/var-decl.go
diff --git a/devel/golint/distinfo b/devel/golint/distinfo
new file mode 100644
index 00000000000..90f7e86232c
--- /dev/null
+++ b/devel/golint/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/12/30 14:12:03 bsiegert Exp $
+
+SHA1 (golint-20151230-32a8716.tar.gz) = 38b93077bb39999165214edd21d90f6512c01917
+RMD160 (golint-20151230-32a8716.tar.gz) = 6aaba6aa94302e0507200effae4f3c524f0822b6
+SHA512 (golint-20151230-32a8716.tar.gz) = c5359d71f6ae2dc839fd7177735bbe7891edb2566c590ff5b8610d9d9ed6595225fc5dc2a383203a14532c5417cdb1bdd40e7f50b7cd773449f4dffca83f517f
+Size (golint-20151230-32a8716.tar.gz) = 28988 bytes