blob: abed67f8d9a620ac5d4ead3bc64be78731da91b1 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= broot
DISTVERSIONPREFIX= v
DISTVERSION= 1.39.0
PORTREVISION= 4
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>
|