blob: be850333c8d9dc21ce9740f1fc6f3d4b5a47a7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
PORTNAME= glow
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org
COMMENT= Render markdown on the CLI, with pizzazz!
WWW= https://github.com/charmbracelet/glow
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.19,modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_SHA= 19732a6
GO_MODULE= github.com/charmbracelet/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.Version=${_BUILD_VERSION} \
-X main.CommitSHA=${_BUILD_SHA}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|