From fd4a684cd6db8f5b4df7fe114155f5b4825ee009 Mon Sep 17 00:00:00 2001 From: minskim Date: Sun, 17 Jun 2018 01:11:11 +0000 Subject: math/go-units: Import version 0.0.20151021 go-units provides helpful unit multipliers and functions in Go. The goal of this package is to have functionality similar to the time package. --- math/go-units/DESCR | 3 +++ math/go-units/Makefile | 19 +++++++++++++++++++ math/go-units/PLIST | 9 +++++++++ math/go-units/buildlink3.mk | 15 +++++++++++++++ math/go-units/distinfo | 6 ++++++ 5 files changed, 52 insertions(+) create mode 100644 math/go-units/DESCR create mode 100644 math/go-units/Makefile create mode 100644 math/go-units/PLIST create mode 100644 math/go-units/buildlink3.mk create mode 100644 math/go-units/distinfo (limited to 'math') diff --git a/math/go-units/DESCR b/math/go-units/DESCR new file mode 100644 index 00000000000..6ffdf400712 --- /dev/null +++ b/math/go-units/DESCR @@ -0,0 +1,3 @@ +go-units provides helpful unit multipliers and functions in Go. The +goal of this package is to have functionality similar to the time +package. diff --git a/math/go-units/Makefile b/math/go-units/Makefile new file mode 100644 index 00000000000..613c46d2b43 --- /dev/null +++ b/math/go-units/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2018/06/17 01:11:11 minskim Exp $ + +DISTNAME= units-0.0.20151021 +PKGNAME= go-${DISTNAME} +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_GITHUB:=alecthomas/} +GITHUB_PROJECT= ${PKGBASE:S/^go-//} +GITHUB_TAG= 2efee857e7cfd4f3d0138cc3cbb1b4966962b93a + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= https://github.com/alecthomas/units +COMMENT= Helpful unit multipliers and functions for Go +LICENSE= mit + +GO_DIST_BASE= ${PKGBASE:S/go-//}-${GITHUB_TAG} +GO_SRCPATH= ${HOMEPAGE:S,https://,,} + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/go-units/PLIST b/math/go-units/PLIST new file mode 100644 index 00000000000..a842be62495 --- /dev/null +++ b/math/go-units/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2018/06/17 01:11:11 minskim Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/alecthomas/units.a +gopkg/src/github.com/alecthomas/units/COPYING +gopkg/src/github.com/alecthomas/units/README.md +gopkg/src/github.com/alecthomas/units/bytes.go +gopkg/src/github.com/alecthomas/units/bytes_test.go +gopkg/src/github.com/alecthomas/units/doc.go +gopkg/src/github.com/alecthomas/units/si.go +gopkg/src/github.com/alecthomas/units/util.go diff --git a/math/go-units/buildlink3.mk b/math/go-units/buildlink3.mk new file mode 100644 index 00000000000..26fd76fbea4 --- /dev/null +++ b/math/go-units/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/06/17 01:11:11 minskim Exp $ + +BUILDLINK_TREE+= go-units + +.if !defined(GO_UNITS_BUILDLINK3_MK) +GO_UNITS_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-units= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-units?= build + +BUILDLINK_API_DEPENDS.go-units+= go-units>=0.0.20151021 +BUILDLINK_PKGSRCDIR.go-units?= ../../math/go-units +.endif # GO_UNITS_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-units diff --git a/math/go-units/distinfo b/math/go-units/distinfo new file mode 100644 index 00000000000..928f2d12878 --- /dev/null +++ b/math/go-units/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/06/17 01:11:11 minskim Exp $ + +SHA1 (units-0.0.20151021-2efee857e7cfd4f3d0138cc3cbb1b4966962b93a.tar.gz) = 0e7c6d9b722f5bbd15b6264c7b3da68aff75ebda +RMD160 (units-0.0.20151021-2efee857e7cfd4f3d0138cc3cbb1b4966962b93a.tar.gz) = 18c432a31c47fd170f1fd3565908ad1f8df17271 +SHA512 (units-0.0.20151021-2efee857e7cfd4f3d0138cc3cbb1b4966962b93a.tar.gz) = 855f15eeb83bdc16981694f522aa1e200a3857ed11ae87fca9b0cc70734eac76f5082bc3ed92f843b818da14b58dc921dbb1aed4ea35de056c087a64b7e25fe4 +Size (units-0.0.20151021-2efee857e7cfd4f3d0138cc3cbb1b4966962b93a.tar.gz) = 3442 bytes -- cgit v1.2.3