1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/misc/broot/Makefile
2024-10-23 10:11:50 +03:00

57 lines
1.3 KiB
Makefile

PORTNAME= broot
DISTVERSIONPREFIX= v
DISTVERSION= 1.39.0
PORTREVISION= 5
CATEGORIES= misc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Quick and easy new way to see and navigate directory trees
WWW= https://dystroy.org/broot/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgit2.so:devel/libgit2 \
libonig.so:devel/oniguruma
RUN_DEPENDS= git:devel/git
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= canop
SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz
PORTDOCS= CHANGELOG.md README.md features.md
OPTIONS_DEFINE= CLIPBOARD DOCS
OPTIONS_DEFAULT= CLIPBOARD
CLIPBOARD_DESC= Enable terminal X11 clipboard support
CLIPBOARD_USES= python:build xorg
CLIPBOARD_USE= XORG=xcb
CLIPBOARD_BINARY_ALIAS= python3=${PYTHON_CMD}
CLIPBOARD_VARS= CARGO_FEATURES+=clipboard
_BUILD_VERSION= ${DISTVERSION}
_BUILD_DATE= $$(date +'%Y/%m/%d')
pre-build:
@${MV} ${WRKSRC}/man/page \
${WRKSRC}/man/${PORTNAME}.1
@${REINPLACE_CMD} -e 's|#version|${_BUILD_VERSION}|g' \
-e "s|#date|${_BUILD_DATE}|g" \
${WRKSRC}/man/${PORTNAME}.1
post-install:
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 \
${STAGEDIR}${PREFIX}/share/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>