pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/go-homedir Add go-homedir package
details: https://anonhg.NetBSD.org/pkgsrc/rev/bb7433e83da1
branches: trunk
changeset: 366642:bb7433e83da1
user: gavan <gavan%pkgsrc.org@localhost>
date: Thu Aug 17 01:28:52 2017 +0000
description:
Add go-homedir package
diffstat:
devel/go-homedir/DESCR | 5 +++++
devel/go-homedir/Makefile | 19 +++++++++++++++++++
devel/go-homedir/PLIST | 7 +++++++
devel/go-homedir/buildlink3.mk | 17 +++++++++++++++++
devel/go-homedir/distinfo | 6 ++++++
5 files changed, 54 insertions(+), 0 deletions(-)
diffs (74 lines):
diff -r 3000c01e6cdc -r bb7433e83da1 devel/go-homedir/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-homedir/DESCR Thu Aug 17 01:28:52 2017 +0000
@@ -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.
diff -r 3000c01e6cdc -r bb7433e83da1 devel/go-homedir/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-homedir/Makefile Thu Aug 17 01:28:52 2017 +0000
@@ -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"
+
diff -r 3000c01e6cdc -r bb7433e83da1 devel/go-homedir/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-homedir/PLIST Thu Aug 17 01:28:52 2017 +0000
@@ -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
diff -r 3000c01e6cdc -r bb7433e83da1 devel/go-homedir/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-homedir/buildlink3.mk Thu Aug 17 01:28:52 2017 +0000
@@ -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
+
diff -r 3000c01e6cdc -r bb7433e83da1 devel/go-homedir/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-homedir/distinfo Thu Aug 17 01:28:52 2017 +0000
@@ -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