summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/go-sql-driver/Makefile25
-rw-r--r--devel/go-sql-driver/distinfo2
-rw-r--r--devel/go-sql-driver/pkg-descr17
-rw-r--r--devel/go-sql-driver/pkg-plist31
5 files changed, 76 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 08c772346198..74e52f86e7a6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -590,6 +590,7 @@
SUBDIR += gnustep
SUBDIR += gnustep-make
SUBDIR += go-pretty
+ SUBDIR += go-sql-driver
SUBDIR += gob2
SUBDIR += gobject-introspection
SUBDIR += goffice
diff --git a/devel/go-sql-driver/Makefile b/devel/go-sql-driver/Makefile
new file mode 100644
index 000000000000..246d84900273
--- /dev/null
+++ b/devel/go-sql-driver/Makefile
@@ -0,0 +1,25 @@
+# Created by: Ryan Steinmetz <zi@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= go-sql-driver
+PORTVERSION= 1.1
+CATEGORIES= devel
+MASTER_SITES= http://github.com/${PORTNAME}/mysql/archive/v${PORTVERSION}.tar.gz?dummy=/ \
+ http://mirrors.rit.edu/zi/
+DISTNAME= v${PORTVERSION}
+
+MAINTAINER= zi@FreeBSD.org
+COMMENT= Lightweight and fast MySQL driver for go
+
+USE_GITHUB= yes
+GH_ACCOUNT= ${PORTNAME}
+GH_TAGNAME= ${PORTVERSION}
+GH_PROJECT= mysql
+GH_COMMIT= 9a7aa36
+
+GO_PKGNAME= github.com/go-sql-driver/mysql
+WRKSRC= ${WRKDIR}/mysql-${PORTVERSION}
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/go-sql-driver/distinfo b/devel/go-sql-driver/distinfo
new file mode 100644
index 000000000000..8ec15012346d
--- /dev/null
+++ b/devel/go-sql-driver/distinfo
@@ -0,0 +1,2 @@
+SHA256 (v1.1.tar.gz) = 8b999b966477cb59ee1cf2923cb7f9e42aedcd8bc521df3045a9f7749d45439c
+SIZE (v1.1.tar.gz) = 38852
diff --git a/devel/go-sql-driver/pkg-descr b/devel/go-sql-driver/pkg-descr
new file mode 100644
index 000000000000..311879cd034d
--- /dev/null
+++ b/devel/go-sql-driver/pkg-descr
@@ -0,0 +1,17 @@
+Go-MySQL-Driver is a lightweight and fast MySQL-Driver for Go's
+(golang) database/sql package
+
+Features:
+* Lightweight and fast
+* Native Go implementation. No C-bindings, just pure Go
+* Connections over TCP/IPv4, TCP/IPv6 or Unix domain sockets
+* Automatic handling of broken connections
+* Automatic Connection Pooling (by database/sql package)
+* Supports queries larger than 16MB
+* Full sql.RawBytes support.
+* Intelligent LONG DATA handling in prepared statements
+* Secure LOAD DATA LOCAL INFILE support with file Whitelisting and io.Reader
+ support
+* Optional time.Time parsing
+
+WWW: https://github.com/go-sql-driver/mysql/
diff --git a/devel/go-sql-driver/pkg-plist b/devel/go-sql-driver/pkg-plist
new file mode 100644
index 000000000000..44a5d0738b79
--- /dev/null
+++ b/devel/go-sql-driver/pkg-plist
@@ -0,0 +1,31 @@
+@comment $FreeBSD$
+%%GO_LIBDIR%%/github.com/go-sql-driver/mysql.a
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/AUTHORS
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/CHANGELOG.md
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/CONTRIBUTING.md
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/benchmark_test.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/buffer.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/connection.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/const.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/driver.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/driver_test.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/errors.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/infile.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/packets.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/result.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/rows.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/statement.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/transaction.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/utils.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/utils_test.go
+@dirrmtry %%GO_SRCDIR%%/%%GO_PKGNAME%%
+@dirrmtry %%GO_SRCDIR%%/github.com/go-sql-driver
+@dirrmtry %%GO_SRCDIR%%/github.com
+@dirrmtry %%GO_LIBDIR%%/github.com/go-sql-driver
+@dirrmtry %%GO_LIBDIR%%/github.com
+@dirrmtry %%GO_LIBDIR%%
+@dirrmtry %%GO_SRCDIR%%
+@dirrmtry share/go/pkg
+@dirrmtry share/go