pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/go-homedir



Module Name:    pkgsrc
Committed By:   gavan
Date:           Thu Aug 17 01:28:52 UTC 2017

Added Files:
        pkgsrc/devel/go-homedir: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
Add go-homedir package


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/go-homedir/DESCR \
    pkgsrc/devel/go-homedir/Makefile pkgsrc/devel/go-homedir/PLIST \
    pkgsrc/devel/go-homedir/buildlink3.mk pkgsrc/devel/go-homedir/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/go-homedir/DESCR
diff -u /dev/null pkgsrc/devel/go-homedir/DESCR:1.1
--- /dev/null   Thu Aug 17 01:28:52 2017
+++ pkgsrc/devel/go-homedir/DESCR       Thu Aug 17 01:28:52 2017
@@ -0,0 +1,5 @@
+This is a Go library for detecting the user's home directory without the use of cgo, so the library can be used in cross-compilation environments.
+
+Usage is incredibly simple, just call homedir.Dir() to get the home directory for a user, and homedir.Expand() to expand the ~ in a path to the home directory.
+
+Why not just use os/user? The built-in os/user package requires cgo on Darwin systems. This means that any Go code that uses that package cannot cross compile. But 99% of the time the use for 
os/user is just to retrieve the home directory, which we can do for the current user without cgo. This library does that, enabling cross-compilation.
Index: pkgsrc/devel/go-homedir/Makefile
diff -u /dev/null pkgsrc/devel/go-homedir/Makefile:1.1
--- /dev/null   Thu Aug 17 01:28:52 2017
+++ pkgsrc/devel/go-homedir/Makefile    Thu Aug 17 01:28:52 2017
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:28:52 gavan Exp $
+
+DISTNAME=      go-homedir-0.0.20161203
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mitchellh/}
+CATEGORIES=    devel
+GITHUB_TAG=    b8bc1bf767474819792c23f32d8286a45736f1c6
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mitchellh/go-homedir
+COMMENT=       Go library for detecting and expanding the user's home directory without cgo.
+LICENSE=       mit
+
+GO_DIST_BASE=  ${DISTNAME}
+GO_DIST_BASE=  ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=    github.com/mitchellh/go-homedir
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
Index: pkgsrc/devel/go-homedir/PLIST
diff -u /dev/null pkgsrc/devel/go-homedir/PLIST:1.1
--- /dev/null   Thu Aug 17 01:28:52 2017
+++ pkgsrc/devel/go-homedir/PLIST       Thu Aug 17 01:28:52 2017
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:28:52 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/mitchellh/go-homedir.a
+gopkg/src/github.com/mitchellh/go-homedir/LICENSE
+gopkg/src/github.com/mitchellh/go-homedir/README.md
+gopkg/src/github.com/mitchellh/go-homedir/homedir.go
+gopkg/src/github.com/mitchellh/go-homedir/homedir_test.go
+@pkgdir bin
Index: pkgsrc/devel/go-homedir/buildlink3.mk
diff -u /dev/null pkgsrc/devel/go-homedir/buildlink3.mk:1.1
--- /dev/null   Thu Aug 17 01:28:52 2017
+++ pkgsrc/devel/go-homedir/buildlink3.mk       Thu Aug 17 01:28:52 2017
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:28:52 gavan Exp $
+
+BUILDLINK_TREE+=       go-homedir
+
+.if !defined(GO_HOMEDIR_BUILDLINK3_MK)
+GO_HOMEDIR_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-homedir=  ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-homedir?=               build
+
+BUILDLINK_API_DEPENDS.go-homedir+=             go-homedir>=0.0
+BUILDLINK_PKGSRCDIR.go-homedir?=               ../../devel/go-homedir
+
+.endif  # GO_HOMEDIR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-homedir
+
Index: pkgsrc/devel/go-homedir/distinfo
diff -u /dev/null pkgsrc/devel/go-homedir/distinfo:1.1
--- /dev/null   Thu Aug 17 01:28:52 2017
+++ pkgsrc/devel/go-homedir/distinfo    Thu Aug 17 01:28:52 2017
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:28:52 gavan Exp $
+
+SHA1 (go-homedir-0.0.20161203-b8bc1bf767474819792c23f32d8286a45736f1c6.tar.gz) = 2dbe35e5d2b67fefd55077a81139192e864d84e4
+RMD160 (go-homedir-0.0.20161203-b8bc1bf767474819792c23f32d8286a45736f1c6.tar.gz) = 5a043564e1ad83b31da8b271bb825e82780c68f8
+SHA512 (go-homedir-0.0.20161203-b8bc1bf767474819792c23f32d8286a45736f1c6.tar.gz) = 
06ce740663a17f09fede31738dbe7d4e56522fad8b5cf899b578409029a1014ee1e4a5f6ee46931c298cfcd46e3881944b6f8aa182b4482b75f808d7be233ec5
+Size (go-homedir-0.0.20161203-b8bc1bf767474819792c23f32d8286a45736f1c6.tar.gz) = 2999 bytes



Home | Main Index | Thread Index | Old Index