mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
1a5e7b4296
from Maintainer Lydia Sobot, thanks
37 lines
795 B
Makefile
37 lines
795 B
Makefile
COMMENT = pager with incremental search and transparent decompression
|
|
|
|
MODGO_MODNAME = github.com/walles/moor/v2
|
|
MODGO_VERSION = v2.15.0
|
|
|
|
DISTNAME = moor-${MODGO_VERSION}
|
|
WRKDIST = ${WRKDIR}/${MODGO_MODNAME}@${MODGO_VERSION}
|
|
|
|
CATEGORIES = sysutils textproc
|
|
|
|
MAINTAINER = Lydia Sobot <chilledfrogs@disroot.org>
|
|
|
|
HOMEPAGE = https://github.com/walles/moor
|
|
|
|
# BSD2
|
|
PERMIT_PACKAGE = Yes
|
|
MODULES = lang/go
|
|
|
|
SUBST_VARS += WRKSRC
|
|
|
|
MODGO_LDFLAGS += -X main.versionString=${MODGO_VERSION}
|
|
|
|
PORTHOME = ${WRKSRC}/porthome
|
|
TEST_TARGET = ${MODGO_MODNAME}/cmd/moor
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/internal/reader/reader_test.go
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/moor.1 ${PREFIX}/man/man1
|
|
|
|
pre-test:
|
|
mkdir -p ${PORTHOME}/.local/share/moor
|
|
|
|
.include "modules.inc"
|
|
.include <bsd.port.mk>
|