blob: 87e2fba54d24ee64fa99ec28324baea9f69df813 (
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
|
PORTNAME= delta
DISTVERSION= 0.16.5
PORTREVISION= 1
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}
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>
|