blob: 74d757ca7925a0d79cee42389c7907f9d676be65 (
plain) (
blame)
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
35
36
37
38
39
40
41
42
|
PORTNAME= ov
DISTVERSIONPREFIX= v
DISTVERSION= 0.15.0
PORTREVISION= 10
CATEGORIES= textproc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Feature rich terminal pager
WWW= https://github.com/noborus/ov
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSIONFULL}
_BUILD_REVISION= dc0b5ca
GO_MODULE= github.com/noborus/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.Version=${_BUILD_VERSION} \
-X main.Revision=${_BUILD_REVISION}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
PORTEXAMPLES= ${PORTNAME}-disable-default.yaml ${PORTNAME}-less.yaml \
${PORTNAME}.yaml
OPTIONS_DEFINE= DOCS EXAMPLES
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|