ports/databases/usql/Makefile
Tobias Kortkamp 3726f94254 Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
2019-06-29 03:51:13 +00:00

52 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= usql
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.4
CATEGORIES= databases
MAINTAINER= yuri@FreeBSD.org
COMMENT= Universal command-line interface for SQL databases
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_GITHUB= yes
GH_ACCOUNT= xo
GH_TUPLE= xo:dburl:98997a0:dburl/src/github.com/xo/dburl \
xo:terminfo:1a4775e:terminfo/src/github.com/xo/terminfo \
xo:tblfmt:e2122a1:tblfmt/src/github.com/xo/tblfmt \
xo:xoutil:46189f4:xoutil/src/github.com/xo/xoutil \
alecthomas:chroma:v0.3.0:chroma/src/github.com/alecthomas/chroma \
alecthomas:kingpin:v2.2.6:kingpin/src/github.com/alecthomas/kingpin \
alecthomas:template:a0175ee:template/src/github.com/alecthomas/template \
alecthomas:units:2efee85:units/src/github.com/alecthomas/units \
alexflint:go-arg:0cc8e30:goarg/src/github.com/alexflint/go-arg \
danwakefield:fnmatch:cbb64ac:fnmatch/src/github.com/danwakefield/fnmatch \
denisenkom:go-mssqldb:ee49270:gomssqldb/src/github.com/denisenkom/go-mssqldb \
dlclark:regexp2:v1.1.6:regexp2/src/github.com/dlclark/regexp2 \
go-sql-driver:mysql:v1.3:mysql/src/github.com/go-sql-driver/mysql \
gohxs:readline:a780388:readline/src/github.com/gohxs/readline \
lib:pq:88edab0:pq/src/github.com/lib/pq \
mattn:go-isatty:v0.0.3:goisatty/src/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.2:gorunewidth/src/github.com/mattn/go-runewidth \
mattn:go-sqlite3:v1.6.0:gosqlite3/src/github.com/mattn/go-sqlite3 \
olekukonko:tablewriter:b8a9be0:tablewriter/src/github.com/olekukonko/tablewriter \
zaf:temp:94e3859:temp/src/github.com/zaf/temp \
golang:crypto:650f4a3:crypto/src/golang.org/x/crypto
GH_SUBDIR= src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}
PLIST_FILES= bin/usql
do-build:
@cd ${WRKSRC}/${GH_SUBDIR} && \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${GH_SUBDIR}/usql ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>