blob: 1a185291aef8ff6be2bb0d5ed7473632f46065f7 (
plain)
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= delta
DISTVERSION= 0.15.1
PORTREVISION= 3
CATEGORIES= devel
PKGNAMEPREFIX= git-
MAINTAINER= DtxdF@disroot.org
COMMENT= Syntax-highlighting pager for git/diff
WWW= https://dandavison.github.io/delta/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libonig.so:devel/oniguruma
RUN_DEPENDS= git:devel/git
USES= cargo cpe
CPE_VENDOR= ${PORTNAME}_project
USE_GITHUB= yes
GH_ACCOUNT= dandavison
CONFLICTS_INSTALL= delta
PLIST_FILES= bin/delta
OPTIONS_DEFINE= BASH FISH ZSH
OPTIONS_DEFAULT= BASH FISH ZSH
BASH_PLIST_FILES= etc/bash_completion.d/_${PORTNAME}.bash
FISH_PLIST_FILES= share/fish/vendor_functions.d/${PORTNAME}.fish
ZSH_PLIST_FILES= share/zsh/site-functions/_${PORTNAME}
# sys-info-0.9.1 crate fix: https://github.com/FillZpp/sys-info-rs/issues/80
post-patch:
@${REINPLACE_CMD} \
-e '/get_cpu/s|unsigned long|uint64_t|' \
-e '/get_proc_total/s|unsigned long|uint64_t|' \
${WRKSRC}/cargo-crates/sys-info-*/c/*.[ch]
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/delta
post-install-BASH-on:
${MKDIR} ${STAGEDIR}${LOCALBASE}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/etc/completion/completion.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/_${PORTNAME}.bash
post-install-FISH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_functions.d
${INSTALL_DATA} ${WRKSRC}/etc/completion/completion.fish \
${STAGEDIR}${PREFIX}/share/fish/vendor_functions.d/${PORTNAME}.fish
post-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/etc/completion/completion.zsh \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
.include <bsd.port.mk>
|