openbsd-ports/sysutils/exa/Makefile
sthen 6781029335 bump REVISION for ports using rust, so that pkg_add -u for i386 users
updates to packages without -znotext (i.e. with text relocations disabled)
makes sense to phessler, semarie, tb
2022-10-28 10:00:45 +00:00

42 lines
1.3 KiB
Makefile

COMMENT = ls alternative written in Rust
GH_ACCOUNT = ogham
GH_PROJECT = exa
GH_TAGNAME = v0.10.1
REVISION = 3
CATEGORIES = sysutils
# Unlicense/MIT
PERMIT_PACKAGE = Yes
# as devel/cargo MODULES adds DISTFILES, GH_* didn't
DISTFILES += ${DISTNAME}${EXTRACT_SUFX}
MODULES = devel/cargo
.include "crates.inc"
CONFIGURE_STYLE = cargo
SEPARATE_BUILD = Yes
BUILD_DEPENDS = textproc/lowdown
LIB_DEPENDS += devel/libgit2/libgit2
WANTLIB += c c++abi m pthread git2
# for riscv64 and powerpc64, please keep: cc >= 1.0.73 and libc >= 0.2.113
MODCARGO_CRATES_UPDATE = cc libc
MODCARGO_FEATURES = git
post-install:
lowdown -s -tman -m section=1 -mtitle=exa -mvolume='' ${WRKSRC}/man/exa.1.md > ${PREFIX}/man/man1/exa.1
lowdown -s -tman -m section=5 -mtitle=exa_colors -mvolume='' ${WRKSRC}/man/exa_colors.5.md > ${PREFIX}/man/man5/exa_colors.5
${INSTALL_DATA_DIR} ${PREFIX}/share/fish/completions/
${INSTALL_DATA} ${WRKSRC}/completions/completions.fish ${PREFIX}/share/fish/completions/exa.fish
${INSTALL_DATA_DIR} ${PREFIX}/share/zsh/site-functions/
${INSTALL_DATA} ${WRKSRC}/completions/completions.zsh ${PREFIX}/share/zsh/site-functions/_exa
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/
${INSTALL_DATA} ${WRKSRC}/completions/completions.bash ${PREFIX}/share/bash-completion/completions/exa
.include <bsd.port.mk>