summaryrefslogtreecommitdiff
path: root/devel/go-termbox
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2016-08-20 09:30:41 +0000
committerbsiegert <bsiegert>2016-08-20 09:30:41 +0000
commit559c1f1bb75b8c5acf41f1b460ac8aa67aea52d8 (patch)
treeb6d4768bda970a08c8bcd4519a37e0fd105a9f9b /devel/go-termbox
parent636950b9f72bf65ae9e72c14fe6eed2bf274f515 (diff)
downloadpkgsrc-559c1f1bb75b8c5acf41f1b460ac8aa67aea52d8.tar.gz
New package, go-termbox.
Termbox is a library that provides a minimalistic API which allows the programmer to write text-based user interfaces. The library is crossplatform and has both terminal-based implementations on *nix operating systems and a winapi console based implementation for windows operating systems. The basic idea is an abstraction of the greatest common subset of features available on all major terminals and other terminal-like APIs in a minimalistic fashion. Small API means it is easy to implement, test, maintain and learn it, that's what makes the termbox a distinct library in its area.
Diffstat (limited to 'devel/go-termbox')
-rw-r--r--devel/go-termbox/DESCR8
-rw-r--r--devel/go-termbox/Makefile24
-rw-r--r--devel/go-termbox/PLIST30
-rw-r--r--devel/go-termbox/buildlink3.mk17
-rw-r--r--devel/go-termbox/distinfo6
5 files changed, 85 insertions, 0 deletions
diff --git a/devel/go-termbox/DESCR b/devel/go-termbox/DESCR
new file mode 100644
index 00000000000..9a0a6717882
--- /dev/null
+++ b/devel/go-termbox/DESCR
@@ -0,0 +1,8 @@
+Termbox is a library that provides a minimalistic API which allows the
+programmer to write text-based user interfaces. The library is crossplatform
+and has both terminal-based implementations on *nix operating systems and a
+winapi console based implementation for windows operating systems. The basic
+idea is an abstraction of the greatest common subset of features available on
+all major terminals and other terminal-like APIs in a minimalistic fashion.
+Small API means it is easy to implement, test, maintain and learn it, that's
+what makes the termbox a distinct library in its area.
diff --git a/devel/go-termbox/Makefile b/devel/go-termbox/Makefile
new file mode 100644
index 00000000000..914dbfb3f48
--- /dev/null
+++ b/devel/go-termbox/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2016/08/20 09:30:41 bsiegert Exp $
+#
+
+DISTNAME= go-termbox-20160808
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=nsf/}
+GITHUB_PROJECT= termbox-go
+GITHUB_TAG= e8f6d27
+
+HOMEPAGE= http://godoc.org/${GO_SRCPATH}
+COMMENT= Pure Go termbox implementation
+LICENSE= mit
+
+GO_SRCPATH= github.com/nsf/termbox-go
+# Skip building subdirectories (demos).
+GO_BUILD_PATTERN= ${GO_SRCPATH}
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+REPLACE_PYTHON= collect_terminfo.py
+
+.include "../../textproc/go-runewidth/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/go-termbox/PLIST b/devel/go-termbox/PLIST
new file mode 100644
index 00000000000..7025867904b
--- /dev/null
+++ b/devel/go-termbox/PLIST
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1 2016/08/20 09:30:41 bsiegert Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/nsf/termbox-go.a
+gopkg/src/github.com/nsf/termbox-go/AUTHORS
+gopkg/src/github.com/nsf/termbox-go/LICENSE
+gopkg/src/github.com/nsf/termbox-go/README.md
+gopkg/src/github.com/nsf/termbox-go/_demos/editbox.go
+gopkg/src/github.com/nsf/termbox-go/_demos/interrupt.go
+gopkg/src/github.com/nsf/termbox-go/_demos/keyboard.go
+gopkg/src/github.com/nsf/termbox-go/_demos/output.go
+gopkg/src/github.com/nsf/termbox-go/_demos/paint.go
+gopkg/src/github.com/nsf/termbox-go/_demos/random_output.go
+gopkg/src/github.com/nsf/termbox-go/_demos/raw_input.go
+gopkg/src/github.com/nsf/termbox-go/api.go
+gopkg/src/github.com/nsf/termbox-go/api_common.go
+gopkg/src/github.com/nsf/termbox-go/api_windows.go
+gopkg/src/github.com/nsf/termbox-go/collect_terminfo.py
+gopkg/src/github.com/nsf/termbox-go/syscalls.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_darwin.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_darwin_amd64.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_freebsd.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_linux.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_netbsd.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_openbsd.go
+gopkg/src/github.com/nsf/termbox-go/syscalls_windows.go
+gopkg/src/github.com/nsf/termbox-go/termbox.go
+gopkg/src/github.com/nsf/termbox-go/termbox_common.go
+gopkg/src/github.com/nsf/termbox-go/termbox_windows.go
+gopkg/src/github.com/nsf/termbox-go/terminfo.go
+gopkg/src/github.com/nsf/termbox-go/terminfo_builtin.go
+@pkgdir bin
diff --git a/devel/go-termbox/buildlink3.mk b/devel/go-termbox/buildlink3.mk
new file mode 100644
index 00000000000..c26ee3917db
--- /dev/null
+++ b/devel/go-termbox/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/08/20 09:30:41 bsiegert Exp $
+
+BUILDLINK_TREE+= go-termbox
+
+.if !defined(GO_TERMBOX_BUILDLINK3_MK)
+GO_TERMBOX_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-termbox= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-termbox?= build
+
+BUILDLINK_API_DEPENDS.go-termbox+= go-termbox>=20160808
+BUILDLINK_PKGSRCDIR.go-termbox?= ../../devel/go-termbox
+
+.include "../../textproc/go-runewidth/buildlink3.mk"
+.endif # GO_TERMBOX_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-termbox
diff --git a/devel/go-termbox/distinfo b/devel/go-termbox/distinfo
new file mode 100644
index 00000000000..ea3c09738f9
--- /dev/null
+++ b/devel/go-termbox/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/08/20 09:30:41 bsiegert Exp $
+
+SHA1 (go-termbox-20160808-e8f6d27.tar.gz) = 00da82a736bfd0d7209229f9571ce28c86db8548
+RMD160 (go-termbox-20160808-e8f6d27.tar.gz) = a876b220016af784e8fa6f88dbf448cfb48f5b21
+SHA512 (go-termbox-20160808-e8f6d27.tar.gz) = a94a7e61e53847f2b4eeb355bc17ad6c7f1ec6a1a73883da49234ff450969fb83d61e20ae7e1f4d62879095b56f94c1eceec1e677e4567c760dbf5fee9990b36
+Size (go-termbox-20160808-e8f6d27.tar.gz) = 30189 bytes