pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/go-afero Add go-afero package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/375115b3f89d
branches:  trunk
changeset: 366626:375115b3f89d
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:13:32 2017 +0000

description:
Add go-afero package

diffstat:

 devel/go-afero/DESCR         |   7 +++++++
 devel/go-afero/Makefile      |  25 +++++++++++++++++++++++++
 devel/go-afero/PLIST         |  39 +++++++++++++++++++++++++++++++++++++++
 devel/go-afero/buildlink3.mk |  22 ++++++++++++++++++++++
 devel/go-afero/distinfo      |   6 ++++++
 5 files changed, 99 insertions(+), 0 deletions(-)

diffs (119 lines):

diff -r 62e1ebc27b21 -r 375115b3f89d devel/go-afero/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-afero/DESCR      Thu Aug 17 01:13:32 2017 +0000
@@ -0,0 +1,7 @@
+Afero is an filesystem framework providing a simple, uniform and universal API interacting with any filesystem, as an abstraction layer providing interfaces, types and methods. Afero has an 
exceptionally clean interface and simple design without needless constructors or initialization methods.
+
+Afero is also a library providing a base set of interoperable backend filesystems that make it easy to work with afero while retaining all the power and benefit of the os and ioutil packages.
+
+Afero provides significant improvements over using the os package alone, most notably the ability to create mock and testing filesystems without relying on the disk.
+
+It is suitable for use in a any situation where you would consider using the OS package as it provides an additional abstraction that makes it easy to use a memory backed file system during testing. 
It also adds support for the http filesystem for full interoperability.
diff -r 62e1ebc27b21 -r 375115b3f89d devel/go-afero/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-afero/Makefile   Thu Aug 17 01:13:32 2017 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:13:32 gavan Exp $
+
+DISTNAME=      afero-0.0.20160605
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=spf13/}
+CATEGORIES=    devel
+GITHUB_TAG=    1a8ecf8b9da1fb5306e149e83128fc447957d2a8
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/spf13/afero
+COMMENT=       A FileSystem Abstraction System for Go
+LICENSE=       apache-2.0
+
+GO_DIST_BASE=  ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=    github.com/spf13/afero
+
+.include "../../textproc/go-text/buildlink3.mk"
+.include "../../security/go-sftp/buildlink3.mk"
+.include "../../devel/go-fs/buildlink3.mk"
+.include "../../devel/go-errors/buildlink3.mk"
+.include "../../security/go-crypto/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r 62e1ebc27b21 -r 375115b3f89d devel/go-afero/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-afero/PLIST      Thu Aug 17 01:13:32 2017 +0000
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:13:32 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/afero.a
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/afero/mem.a
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/afero/sftp.a
+gopkg/src/github.com/spf13/afero/LICENSE.txt
+gopkg/src/github.com/spf13/afero/README.md
+gopkg/src/github.com/spf13/afero/afero.go
+gopkg/src/github.com/spf13/afero/afero_test.go
+gopkg/src/github.com/spf13/afero/appveyor.yml
+gopkg/src/github.com/spf13/afero/basepath.go
+gopkg/src/github.com/spf13/afero/basepath_test.go
+gopkg/src/github.com/spf13/afero/cacheOnReadFs.go
+gopkg/src/github.com/spf13/afero/composite_test.go
+gopkg/src/github.com/spf13/afero/const_bsds.go
+gopkg/src/github.com/spf13/afero/const_win_unix.go
+gopkg/src/github.com/spf13/afero/copyOnWriteFs.go
+gopkg/src/github.com/spf13/afero/copyOnWriteFs_test.go
+gopkg/src/github.com/spf13/afero/httpFs.go
+gopkg/src/github.com/spf13/afero/ioutil.go
+gopkg/src/github.com/spf13/afero/ioutil_test.go
+gopkg/src/github.com/spf13/afero/mem/dir.go
+gopkg/src/github.com/spf13/afero/mem/dirmap.go
+gopkg/src/github.com/spf13/afero/mem/file.go
+gopkg/src/github.com/spf13/afero/memmap.go
+gopkg/src/github.com/spf13/afero/memmap_test.go
+gopkg/src/github.com/spf13/afero/memradix.go
+gopkg/src/github.com/spf13/afero/os.go
+gopkg/src/github.com/spf13/afero/path.go
+gopkg/src/github.com/spf13/afero/path_test.go
+gopkg/src/github.com/spf13/afero/readonlyfs.go
+gopkg/src/github.com/spf13/afero/regexpfs.go
+gopkg/src/github.com/spf13/afero/ro_regexp_test.go
+gopkg/src/github.com/spf13/afero/sftp.go
+gopkg/src/github.com/spf13/afero/sftp/file.go
+gopkg/src/github.com/spf13/afero/sftp_test_go
+gopkg/src/github.com/spf13/afero/unionFile.go
+gopkg/src/github.com/spf13/afero/util.go
+gopkg/src/github.com/spf13/afero/util_test.go
+@pkgdir bin
diff -r 62e1ebc27b21 -r 375115b3f89d devel/go-afero/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-afero/buildlink3.mk      Thu Aug 17 01:13:32 2017 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:13:32 gavan Exp $
+
+BUILDLINK_TREE+=       go-afero
+
+.if !defined(GO_AFERO_BUILDLINK3_MK)
+GO_AFERO_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-afero=    ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-afero?=         build
+
+BUILDLINK_API_DEPENDS.go-afero+=       go-afero>=0.0
+BUILDLINK_PKGSRCDIR.go-afero?=         ../../devel/go-afero
+
+.include "../../textproc/go-text/buildlink3.mk"
+.include "../../security/go-sftp/buildlink3.mk"
+.include "../../devel/go-fs/buildlink3.mk"
+.include "../../devel/go-errors/buildlink3.mk"
+.include "../../security/go-crypto/buildlink3.mk"
+.endif  # GO_AFERO_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-afero
+
diff -r 62e1ebc27b21 -r 375115b3f89d devel/go-afero/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-afero/distinfo   Thu Aug 17 01:13:32 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:13:32 gavan Exp $
+
+SHA1 (afero-0.0.20160605-1a8ecf8b9da1fb5306e149e83128fc447957d2a8.tar.gz) = 6ceab78e7177fda0cea9729876c77fdbae7b690d
+RMD160 (afero-0.0.20160605-1a8ecf8b9da1fb5306e149e83128fc447957d2a8.tar.gz) = 1e6675f5843f998bdd35f5e0b4fac42f11695d0f
+SHA512 (afero-0.0.20160605-1a8ecf8b9da1fb5306e149e83128fc447957d2a8.tar.gz) = 
14565b1111fff4f65da25e929da4a3ef5b815e3e7c516449d443d9a19228badb22de56da0e27a20780b7688210610ed2b5fb6b61f102733deaf2dc797bc04bda
+Size (afero-0.0.20160605-1a8ecf8b9da1fb5306e149e83128fc447957d2a8.tar.gz) = 40436 bytes



Home | Main Index | Thread Index | Old Index