blob: 25ce5951966ea287f7e7978506b0f048c97f461d (
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
|
PORTNAME= moor
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.0
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= nxjoseph@protonmail.com
COMMENT= Pager designed to do the right thing without any configuration
WWW= https://github.com/walles/moor
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_MODULE= github.com/walles/${PORTNAME}/v2
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags="-s -w -X main.versionString=${DISTVERSIONFULL}"
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
OPTIONS_SUB= yes
post-install:
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
${STAGEDIR}${MANDIRS}/man1
post-install-EXAMPLES-on:
@cd ${WRKSRC}/sample-files && \
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|