PORTNAME=	livego
DISTVERSION=	0.0.20
PORTREVISION=	6
CATEGORIES=	multimedia

MAINTAINER=	rodrigo@FreeBSD.org
COMMENT=	Live video streaming server in golang
WWW=		https://github.com/gwuhaolin/livego
MASTER_SITES=	https://github.com/redis/go-redis/archive/refs/tags/v7.2.0.tar.gz?dummy=/:src
DISTFILES=	go-redit-v7.2.0${EXTRACT_SUFX}:src

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules

BUILD_DEPENDS= modules2tuple:ports-mgmt/modules2tuple

USE_GITHUB=	yes
GH_ACCOUNT=	gwuhaolin
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${GH_PROJECT}
GH_TUPLE=       \
                auth0:go-jwt-middleware:36081240882b:auth0_go_jwt_middleware/vendor/github.com/auth0/go-jwt-middleware \
                davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
                dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
                fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
                go-ini:ini:v1.51.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
                go-yaml:yaml:v2.2.4:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
                golang:sys:b09406accb47:golang_sys/vendor/golang.org/x/sys \
                golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
                hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
                konsorten:go-windows-terminal-sequences:v1.0.1:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
                kr:pretty:v0.1.0:kr_pretty/vendor/github.com/kr/pretty \
                kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \
                magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \
                mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
                patrickmn:go-cache:v2.1.0:patrickmn_go_cache/vendor/github.com/patrickmn/go-cache \
                pelletier:go-toml:v1.2.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
                pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
                satori:go.uuid:v1.2.0:satori_go_uuid/vendor/github.com/satori/go.uuid \
                sirupsen:logrus:v1.5.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
                spf13:afero:v1.1.2:spf13_afero/vendor/github.com/spf13/afero \
                spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \
                spf13:jwalterweatherman:v1.0.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
                spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag \
                spf13:viper:v1.6.3:spf13_viper/vendor/github.com/spf13/viper \
                stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \
                subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv

PLIST_FILES=	bin/${PORTNAME}

post-extract:
	${MKDIR} ${WRKSRC}/vendor/github.com/go-redis/redis && ${MV} ${WRKDIR}/go-redis-7.2.0 ${WRKSRC}/vendor/github.com/go-redis/redis/v7

.include <bsd.port.mk>
