Add go-stats package

This commit is contained in:
gavan 2017-08-17 02:03:11 +00:00
parent a20e24e9e4
commit 56edf17500
5 changed files with 98 additions and 0 deletions

4
math/go-stats/DESCR Normal file
View file

@ -0,0 +1,4 @@
A statistics package with many functions missing from the Golang standard library. See the CHANGELOG.md for API changes and tagged releases you can vendor into your projects.
Statistics are used much like a drunk uses a lamppost: for support, not illumination. - Vin Scully

24
math/go-stats/Makefile Normal file
View file

@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.1 2017/08/17 02:03:11 gavan Exp $
DISTNAME= stats-0.2.0.20170729
PKGNAME= go-${DISTNAME}
MASTER_SITES= ${MASTER_SITE_GITHUB:=montanaflynn/}
CATEGORIES= math
GITHUB_TAG= 4a163274fa4ca0b524ccee24757d7bec79475aca
GITHUB_PROJECT= ${PKGBASE:S/^go-//}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/montanaflynn/stats
COMMENT= A statistics package with common functions that are missing from the Golang standard library.
LICENSE= mit
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
GO_SRCPATH= github.com/montanaflynn/stats
# Avoid build issues with the examples
post-patch:
${RUN} ${RM} -rf ${WRKSRC}/examples
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

47
math/go-stats/PLIST Normal file
View file

@ -0,0 +1,47 @@
@comment $NetBSD: PLIST,v 1.1 2017/08/17 02:03:11 gavan Exp $
gopkg/pkg/${GO_PLATFORM}/github.com/montanaflynn/stats.a
gopkg/src/github.com/montanaflynn/stats/CHANGELOG.md
gopkg/src/github.com/montanaflynn/stats/LICENSE
gopkg/src/github.com/montanaflynn/stats/Makefile
gopkg/src/github.com/montanaflynn/stats/README.md
gopkg/src/github.com/montanaflynn/stats/correlation.go
gopkg/src/github.com/montanaflynn/stats/correlation_test.go
gopkg/src/github.com/montanaflynn/stats/data.go
gopkg/src/github.com/montanaflynn/stats/data_test.go
gopkg/src/github.com/montanaflynn/stats/deviation.go
gopkg/src/github.com/montanaflynn/stats/deviation_test.go
gopkg/src/github.com/montanaflynn/stats/errors.go
gopkg/src/github.com/montanaflynn/stats/errors_test.go
gopkg/src/github.com/montanaflynn/stats/legacy.go
gopkg/src/github.com/montanaflynn/stats/legacy_test.go
gopkg/src/github.com/montanaflynn/stats/load.go
gopkg/src/github.com/montanaflynn/stats/load_test.go
gopkg/src/github.com/montanaflynn/stats/max.go
gopkg/src/github.com/montanaflynn/stats/max_test.go
gopkg/src/github.com/montanaflynn/stats/mean.go
gopkg/src/github.com/montanaflynn/stats/mean_test.go
gopkg/src/github.com/montanaflynn/stats/median.go
gopkg/src/github.com/montanaflynn/stats/median_test.go
gopkg/src/github.com/montanaflynn/stats/min.go
gopkg/src/github.com/montanaflynn/stats/min_test.go
gopkg/src/github.com/montanaflynn/stats/mode.go
gopkg/src/github.com/montanaflynn/stats/mode_test.go
gopkg/src/github.com/montanaflynn/stats/outlier.go
gopkg/src/github.com/montanaflynn/stats/outlier_test.go
gopkg/src/github.com/montanaflynn/stats/percentile.go
gopkg/src/github.com/montanaflynn/stats/percentile_test.go
gopkg/src/github.com/montanaflynn/stats/quartile.go
gopkg/src/github.com/montanaflynn/stats/quartile_test.go
gopkg/src/github.com/montanaflynn/stats/regression.go
gopkg/src/github.com/montanaflynn/stats/regression_test.go
gopkg/src/github.com/montanaflynn/stats/round.go
gopkg/src/github.com/montanaflynn/stats/round_test.go
gopkg/src/github.com/montanaflynn/stats/sample.go
gopkg/src/github.com/montanaflynn/stats/sample_test.go
gopkg/src/github.com/montanaflynn/stats/sum.go
gopkg/src/github.com/montanaflynn/stats/sum_test.go
gopkg/src/github.com/montanaflynn/stats/util.go
gopkg/src/github.com/montanaflynn/stats/util_test.go
gopkg/src/github.com/montanaflynn/stats/variance.go
gopkg/src/github.com/montanaflynn/stats/variance_test.go
@pkgdir bin

View file

@ -0,0 +1,17 @@
# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 02:03:11 gavan Exp $
BUILDLINK_TREE+= go-stats
.if !defined(GO_STATS_BUILDLINK3_MK)
GO_STATS_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-stats= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-stats?= build
BUILDLINK_API_DEPENDS.go-stats+= go-stats>=0.0
BUILDLINK_PKGSRCDIR.go-stats?= ../../math/go-stats
.endif # GO_STATS_BUILDLINK3_MK
BUILDLINK_TREE+= -go-stats

6
math/go-stats/distinfo Normal file
View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2017/08/17 02:03:11 gavan Exp $
SHA1 (stats-0.2.0.20170729-4a163274fa4ca0b524ccee24757d7bec79475aca.tar.gz) = 245f82c53358d6147fdaef6508cd7afd2750d969
RMD160 (stats-0.2.0.20170729-4a163274fa4ca0b524ccee24757d7bec79475aca.tar.gz) = 61577e5142b196a91c237bb6cd292dc5c630b42a
SHA512 (stats-0.2.0.20170729-4a163274fa4ca0b524ccee24757d7bec79475aca.tar.gz) = 2c826192105659c180d03bc8ba74417149019a1dcf0a16a0d90a8b430bf782c71befdd82252ead72f7b7657591b0439b7e348fab03d833e66a626da781278f1e
Size (stats-0.2.0.20170729-4a163274fa4ca0b524ccee24757d7bec79475aca.tar.gz) = 17842 bytes