summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2017-08-17 01:19:10 +0000
committergavan <gavan@pkgsrc.org>2017-08-17 01:19:10 +0000
commite55e7df98ad1e8b800b1550ae44d763b0bf04ac4 (patch)
treeb220b237ff216f2eda7168c084127b31f9352177 /devel
parentad167d6e3053375ed402d23acb82b08514757ecf (diff)
downloadpkgsrc-e55e7df98ad1e8b800b1550ae44d763b0bf04ac4.tar.gz
Add go-cast package
Diffstat (limited to 'devel')
-rw-r--r--devel/go-cast/DESCR3
-rw-r--r--devel/go-cast/Makefile21
-rw-r--r--devel/go-cast/PLIST9
-rw-r--r--devel/go-cast/buildlink3.mk17
-rw-r--r--devel/go-cast/distinfo6
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/go-cast/DESCR b/devel/go-cast/DESCR
new file mode 100644
index 00000000000..b73bba0853d
--- /dev/null
+++ b/devel/go-cast/DESCR
@@ -0,0 +1,3 @@
+Easy and safe casting from one type to another in Go
+
+Don’t Panic! ... Cast
diff --git a/devel/go-cast/Makefile b/devel/go-cast/Makefile
new file mode 100644
index 00000000000..47a4599db26
--- /dev/null
+++ b/devel/go-cast/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:19:10 gavan Exp $
+
+DISTNAME= cast-1.1.0
+PKGNAME= go-${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=spf13/}
+CATEGORIES= devel
+GITHUB_TAG= v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/spf13/cast
+COMMENT= safe and easy casting from one type to another in Go
+LICENSE= mit
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/spf13/cast
+
+.include "../../devel/go-jwalterweatherman/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff --git a/devel/go-cast/PLIST b/devel/go-cast/PLIST
new file mode 100644
index 00000000000..e83cccb5023
--- /dev/null
+++ b/devel/go-cast/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:19:10 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/cast.a
+gopkg/src/github.com/spf13/cast/LICENSE
+gopkg/src/github.com/spf13/cast/Makefile
+gopkg/src/github.com/spf13/cast/README.md
+gopkg/src/github.com/spf13/cast/cast.go
+gopkg/src/github.com/spf13/cast/cast_test.go
+gopkg/src/github.com/spf13/cast/caste.go
+@pkgdir bin
diff --git a/devel/go-cast/buildlink3.mk b/devel/go-cast/buildlink3.mk
new file mode 100644
index 00000000000..f3ac324f2ea
--- /dev/null
+++ b/devel/go-cast/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:19:10 gavan Exp $
+
+BUILDLINK_TREE+= go-cast
+
+.if !defined(GO_CAST_BUILDLINK3_MK)
+GO_CAST_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-cast= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-cast?= build
+
+BUILDLINK_API_DEPENDS.go-cast+= go-cast>=1.1.0
+BUILDLINK_PKGSRCDIR.go-cast?= ../../devel/go-cast
+
+.endif # GO_CAST_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-cast
+
diff --git a/devel/go-cast/distinfo b/devel/go-cast/distinfo
new file mode 100644
index 00000000000..ae974e73cdc
--- /dev/null
+++ b/devel/go-cast/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:19:10 gavan Exp $
+
+SHA1 (cast-1.1.0.tar.gz) = 28f2f9709309eacd4d1969ccb73904d7cba6b64c
+RMD160 (cast-1.1.0.tar.gz) = ce298ece9d877e6eb137c6923b05396ddb79c97d
+SHA512 (cast-1.1.0.tar.gz) = 21b9c1e72fef53a2100004f9aa1d027e7e9e1f5796753a8c22cf3fde5204d0a61fc667656eebcf3791ffa967221aa61d359a81d0e6976b5741115ef8f3f861be
+Size (cast-1.1.0.tar.gz) = 9592 bytes