1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Add go-flags, Go command line option parser.

This commit is contained in:
Akinori MUSHA 2014-07-14 10:29:59 +00:00
parent c5f5a1d39d
commit c189f5fcc9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361764
5 changed files with 96 additions and 0 deletions

View File

@ -594,6 +594,7 @@
SUBDIR += gnulibiberty
SUBDIR += gnustep
SUBDIR += gnustep-make
SUBDIR += go-flags
SUBDIR += go-json-rest
SUBDIR += go-pretty
SUBDIR += go-sql-driver

25
devel/go-flags/Makefile Normal file
View File

@ -0,0 +1,25 @@
# Created by: Akinori MUSHA aka knu <knu@FreeBSD.org>
# $FreeBSD$
PORTNAME= flags
PORTVERSION= 1.0.0.20140623
CATEGORIES= devel
MASTER_SITES= GH GHC
PKGNAMEPREFIX= go-
MAINTAINER= knu@FreeBSD.org
COMMENT= Go command line option parser
LICENSE= BSD3CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= jessevdk
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 7047cf7
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
.include <bsd.port.post.mk>

2
devel/go-flags/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (flags-1.0.0.20140623.tar.gz) = 55500b644ecb786bbf9bb0856c1c88256934b76fee5785f9ab74e314fdaec74b
SIZE (flags-1.0.0.20140623.tar.gz) = 41497

7
devel/go-flags/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
Package flags provides an extensive command line option parser. The
flags package is similar in functionality to the go built-in flag
package but provides more options and uses reflection to provide a
convenient and succinct way of specifying command line options.
Author: Jesse van den Kieboom
WWW: http://godoc.org/github.com/jessevdk/go-flags

61
devel/go-flags/pkg-plist Normal file
View File

@ -0,0 +1,61 @@
%%GO_LIBDIR%%/github.com/jessevdk/go-flags.a
@dirrmtry %%GO_LIBDIR%%/github.com/jessevdk
@dirrmtry %%GO_LIBDIR%%/github.com
@dirrmtry %%GO_LIBDIR%%
%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE
%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md
%%GO_SRCDIR%%/%%GO_PKGNAME%%/arg.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/arg_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/assert_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/check_crosscompile.sh
%%GO_SRCDIR%%/%%GO_PKGNAME%%/closest.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/command.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/command_private.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/command_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/completion.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/completion_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/convert.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/convert_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/error.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/add.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/bash-completion
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/main.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/rm.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/flags.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/group.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/group_private.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/group_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/help.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/help_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/ini.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/ini_private.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/ini_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/long_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/man.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/marshal_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/multitag.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/option.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/option_private.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/options_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/optstyle_other.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/optstyle_windows.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/parser.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/parser_private.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/parser_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/pointer_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/short_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/tag_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/termsize.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/termsize_linux.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/termsize_nosysioctl.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/termsize_other.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/termsize_unix.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/unknown_test.go
@dirrm %%GO_SRCDIR%%/%%GO_PKGNAME%%/examples
@dirrmtry %%GO_SRCDIR%%/%%GO_PKGNAME%%
@dirrmtry %%GO_SRCDIR%%/github.com/jessevdk
@dirrmtry %%GO_SRCDIR%%/github.com
@dirrmtry %%GO_SRCDIR%%
@dirrmtry share/go/pkg
@dirrmtry share/go