pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/go-osext Add go-osext package
details: https://anonhg.NetBSD.org/pkgsrc/rev/b171885e81fb
branches: trunk
changeset: 366649:b171885e81fb
user: gavan <gavan%pkgsrc.org@localhost>
date: Thu Aug 17 01:34:50 2017 +0000
description:
Add go-osext package
diffstat:
devel/go-osext/DESCR | 12 ++++++++++++
devel/go-osext/Makefile | 20 ++++++++++++++++++++
devel/go-osext/PLIST | 11 +++++++++++
devel/go-osext/buildlink3.mk | 17 +++++++++++++++++
devel/go-osext/distinfo | 6 ++++++
5 files changed, 66 insertions(+), 0 deletions(-)
diffs (86 lines):
diff -r d0e003b1e1da -r b171885e81fb devel/go-osext/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-osext/DESCR Thu Aug 17 01:34:50 2017 +0000
@@ -0,0 +1,12 @@
+Extensions to the "os" package.
+Find the current Executable and ExecutableFolder.
+
+There is sometimes utility in finding the current executable file that is running. This can be used for upgrading the current executable or finding resources located relative to the executable file.
Both working directory and the os.Args[0] value are arbitrary and cannot be relied on; os.Args[0] can be "faked".
+
+Multi-platform and supports:
+
+* Linux
+* OS X
+* Windows
+* Plan 9
+* BSDs.
diff -r d0e003b1e1da -r b171885e81fb devel/go-osext/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-osext/Makefile Thu Aug 17 01:34:50 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:34:50 gavan Exp $
+
+DISTNAME= osext-0.0.20151222
+PKGNAME= go-${DISTNAME}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=kardianos/}
+CATEGORIES= devel
+GITHUB_TAG= 29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/kardianos/osext
+COMMENT= Extensions to the standard "os" package. Executable and ExecutableFolder.
+LICENSE= modified-bsd
+
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH= github.com/kardianos/osext
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r d0e003b1e1da -r b171885e81fb devel/go-osext/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-osext/PLIST Thu Aug 17 01:34:50 2017 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:34:50 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/kardianos/osext.a
+gopkg/src/github.com/kardianos/osext/LICENSE
+gopkg/src/github.com/kardianos/osext/README.md
+gopkg/src/github.com/kardianos/osext/osext.go
+gopkg/src/github.com/kardianos/osext/osext_plan9.go
+gopkg/src/github.com/kardianos/osext/osext_procfs.go
+gopkg/src/github.com/kardianos/osext/osext_sysctl.go
+gopkg/src/github.com/kardianos/osext/osext_test.go
+gopkg/src/github.com/kardianos/osext/osext_windows.go
+@pkgdir bin
diff -r d0e003b1e1da -r b171885e81fb devel/go-osext/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-osext/buildlink3.mk Thu Aug 17 01:34:50 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:34:50 gavan Exp $
+
+BUILDLINK_TREE+= go-osext
+
+.if !defined(GO_OSEXT_BUILDLINK3_MK)
+GO_OSEXT_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-osext= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-osext?= build
+
+BUILDLINK_API_DEPENDS.go-osext+= go-osext>=0.0
+BUILDLINK_PKGSRCDIR.go-osext?= ../../devel/go-osext
+
+.endif # GO_OSEXT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-osext
+
diff -r d0e003b1e1da -r b171885e81fb devel/go-osext/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-osext/distinfo Thu Aug 17 01:34:50 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:34:50 gavan Exp $
+
+SHA1 (osext-0.0.20151222-29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc.tar.gz) = ae1e3857736e2679db26da131b3260bad8df18d2
+RMD160 (osext-0.0.20151222-29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc.tar.gz) = 28a9969f6e939a3db030d4fea2eac14ad7773080
+SHA512 (osext-0.0.20151222-29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc.tar.gz) =
e87c77173ba13f4f9aaa69950dcc7fc27d3170569a00ad1c0e445a5c3b0613d1e2537f1a82626c8948b7c9fde85b30629449696e00d41afaf5af7df256ea8929
+Size (osext-0.0.20151222-29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc.tar.gz) = 4620 bytes
Home |
Main Index |
Thread Index |
Old Index