2019-10-12 23:25:23 +02:00
|
|
|
PORTNAME= elvish
|
|
|
|
DISTVERSIONPREFIX= v
|
2021-12-24 08:03:22 +01:00
|
|
|
DISTVERSION= 0.17.0
|
2022-03-30 09:01:44 +02:00
|
|
|
PORTREVISION= 1
|
2019-10-12 23:25:23 +02:00
|
|
|
CATEGORIES= shells
|
|
|
|
|
|
|
|
MAINTAINER= vendion@gmail.com
|
2021-02-02 14:03:44 +01:00
|
|
|
COMMENT= Elvish = Expressive Programming Language + Versatile Interactive Shell
|
2019-10-12 23:25:23 +02:00
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
2021-09-16 08:01:40 +02:00
|
|
|
LICENSE_FILE= ${GO_WRKSRC}/LICENSE
|
2019-10-12 23:25:23 +02:00
|
|
|
|
2021-10-21 16:27:09 +02:00
|
|
|
USES= cpe go:modules
|
|
|
|
CPE_VENDOR= elv
|
2019-10-12 23:25:23 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= elves
|
2021-09-16 08:01:40 +02:00
|
|
|
GH_PROJECT= elvish
|
|
|
|
GH_TUPLE= creack:pty:v1.1.15:creack_pty/vendor/github.com/creack/pty \
|
|
|
|
etcd-io:bbolt:v1.3.6:etcd_io_bbolt/vendor/go.etcd.io/bbolt \
|
|
|
|
golang:sys:528a39cd75f3:golang_sys/vendor/golang.org/x/sys \
|
2021-12-24 08:03:22 +01:00
|
|
|
mattn:go-isatty:v0.0.13:mattn_go_isatty/vendor/github.com/mattn/go-isatty
|
2020-08-18 14:27:46 +02:00
|
|
|
|
2021-02-02 14:03:44 +01:00
|
|
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
2021-09-16 08:01:40 +02:00
|
|
|
GO_TARGET= ./cmd/elvish
|
2021-12-24 08:03:22 +01:00
|
|
|
GO_BUILDFLAGS= -ldflags="-s -w -X src.elv.sh/pkg/buildinfo.Version=${DISTVERSIONPREFIX}${DISTVERSION} -X src.elv.sh/pkg/buildinfo.Reproducible=true" \
|
2021-09-16 08:01:40 +02:00
|
|
|
-buildmode=pie
|
2020-08-18 14:27:46 +02:00
|
|
|
GO_TESTFLAGS= -race
|
2021-09-16 08:01:40 +02:00
|
|
|
CGO_ENABLED= 0
|
2020-08-18 14:27:46 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/elvish
|
|
|
|
|
2021-02-02 14:03:44 +01:00
|
|
|
do-test:
|
|
|
|
@(cd ${GO_WRKSRC} ; \
|
|
|
|
${GO_ENV} ${GO_CMD} test -race ${GO_TESTTARGET})
|
|
|
|
|
2019-10-12 23:25:23 +02:00
|
|
|
.include <bsd.port.mk>
|