pkglint 5.4.18. Changes: - go tool yacc -> goyacc to fix building with Go 1.8 (PR pkg/52081).diff -r1.510 -r1.511 pkgsrc/pkgtools/pkglint/Makefile
(bsiegert)
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | # $NetBSD: Makefile,v 1.510 2017/01/18 23:05:43 rillig Exp $ | 1 | # $NetBSD: Makefile,v 1.511 2017/03/16 20:03:22 bsiegert Exp $ | |
2 | 2 | |||
3 | PKGNAME= pkglint-5.4.17 | 3 | PKGNAME= pkglint-5.4.18 | |
4 | DISTFILES= # none | 4 | DISTFILES= # none | |
5 | CATEGORIES= pkgtools | 5 | CATEGORIES= pkgtools | |
6 | 6 | |||
7 | MAINTAINER= rillig@NetBSD.org | 7 | MAINTAINER= rillig@NetBSD.org | |
8 | HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/ | 8 | HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/ | |
9 | COMMENT= Verifier for NetBSD packages | 9 | COMMENT= Verifier for NetBSD packages | |
10 | LICENSE= 2-clause-bsd | 10 | LICENSE= 2-clause-bsd | |
11 | CONFLICTS+= pkglint4-[0-9]* | 11 | CONFLICTS+= pkglint4-[0-9]* | |
12 | BUILD_DEPENDS+= go-tools>=1.8:../../devel/go-tools | |||
12 | 13 | |||
13 | NO_CHECKSUM= yes | 14 | NO_CHECKSUM= yes | |
14 | USE_LANGUAGES= c | 15 | USE_LANGUAGES= c | |
15 | USE_TOOLS+= pax | 16 | USE_TOOLS+= pax | |
16 | AUTO_MKDIRS= yes | 17 | AUTO_MKDIRS= yes | |
17 | GO_SRCPATH= netbsd.org/pkglint | 18 | GO_SRCPATH= netbsd.org/pkglint | |
18 | 19 | |||
19 | SUBST_CLASSES+= pkglint | 20 | SUBST_CLASSES+= pkglint | |
20 | SUBST_STAGE.pkglint= post-configure | 21 | SUBST_STAGE.pkglint= post-configure | |
21 | SUBST_FILES.pkglint+= pkglint.go package_test.go | 22 | SUBST_FILES.pkglint+= pkglint.go package_test.go | |
22 | SUBST_SED.pkglint+= -e s\|@VERSION@\|${PKGNAME:S/pkglint-//}\|g | 23 | SUBST_SED.pkglint+= -e s\|@VERSION@\|${PKGNAME:S/pkglint-//}\|g | |
23 | SUBST_SED.pkglint+= -e s\|@BMAKE@\|${MAKE:Q}\|g | 24 | SUBST_SED.pkglint+= -e s\|@BMAKE@\|${MAKE:Q}\|g | |
24 | 25 |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | package main | 1 | package main | |
2 | 2 | |||
3 | import ( | 3 | import ( | |
4 | "fmt" | 4 | "fmt" | |
5 | ) | 5 | ) | |
6 | 6 | |||
7 | //go:generate go tool yacc -o shellyacc.go -v shellyacc.log -p shyy shell.y | 7 | //go:generate goyacc -o shellyacc.go -v shellyacc.log -p shyy shell.y | |
8 | 8 | |||
9 | type ShAtomType uint8 | 9 | type ShAtomType uint8 | |
10 | 10 | |||
11 | const ( | 11 | const ( | |
12 | shtSpace ShAtomType = iota | 12 | shtSpace ShAtomType = iota | |
13 | shtVaruse // ${PREFIX} | 13 | shtVaruse // ${PREFIX} | |
14 | shtWord // | 14 | shtWord // | |
15 | shtOperator | 15 | shtOperator | |
16 | shtComment // # ... | 16 | shtComment // # ... | |
17 | shtSubshell // $$( | 17 | shtSubshell // $$( | |
18 | ) | 18 | ) | |
19 | 19 | |||
20 | func (t ShAtomType) String() string { | 20 | func (t ShAtomType) String() string { |
@@ -41,27 +41,27 @@ func (cond *Condition) String() string { | @@ -41,27 +41,27 @@ func (cond *Condition) String() string { | |||
41 | return s | 41 | return s | |
42 | } | 42 | } | |
43 | 43 | |||
44 | func (cond *Condition) Walk(callback func(*Condition)) { | 44 | func (cond *Condition) Walk(callback func(*Condition)) { | |
45 | if cond.Paren != nil { | 45 | if cond.Paren != nil { | |
46 | cond.Paren.Walk(callback) | 46 | cond.Paren.Walk(callback) | |
47 | } | 47 | } | |
48 | for _, child := range cond.Children { | 48 | for _, child := range cond.Children { | |
49 | child.Walk(callback) | 49 | child.Walk(callback) | |
50 | } | 50 | } | |
51 | callback(cond) | 51 | callback(cond) | |
52 | } | 52 | } | |
53 | 53 | |||
54 | //go:generate go tool yacc -p liyy -o licensesyacc.go -v licensesyacc.log licenses.y | 54 | //go:generate goyacc -p liyy -o licensesyacc.go -v licensesyacc.log licenses.y | |
55 | 55 | |||
56 | type licenseLexer struct { | 56 | type licenseLexer struct { | |
57 | repl *textproc.PrefixReplacer | 57 | repl *textproc.PrefixReplacer | |
58 | result *Condition | 58 | result *Condition | |
59 | error string | 59 | error string | |
60 | } | 60 | } | |
61 | 61 | |||
62 | func (lexer *licenseLexer) Lex(llval *liyySymType) int { | 62 | func (lexer *licenseLexer) Lex(llval *liyySymType) int { | |
63 | repl := lexer.repl | 63 | repl := lexer.repl | |
64 | repl.AdvanceHspace() | 64 | repl.AdvanceHspace() | |
65 | switch { | 65 | switch { | |
66 | case repl.EOF(): | 66 | case repl.EOF(): | |
67 | return 0 | 67 | return 0 |