Edit

IABSD.fr/ports/sysutils/eza/Makefile

Branch :

  • Show log

    Commit

  • Author : volker
    Date : 2024-06-20 20:10:04
    Hash : 4e2aad67
    Message : sysutils/eza: Update to 0.18.19 drop patch that isn't needed anymore as of this release

  • sysutils/eza/Makefile
  • COMMENT =		ls alternative written in Rust (fork of exa)
    
    GH_ACCOUNT =		eza-community
    GH_PROJECT =		eza
    GH_TAGNAME =		v0.18.19
    
    HOMEPAGE =		https://eza.rocks/
    
    MAINTAINER =		Volker Schlecht <openbsd-ports@schlecht.dev>
    
    CATEGORIES =		sysutils
    
    # Unlicense/MIT
    PERMIT_PACKAGE =	Yes
    
    MODULES =		devel/cargo
    
    .include "crates.inc"
    
    CONFIGURE_STYLE =	cargo
    SEPARATE_BUILD =	Yes
    BUILD_DEPENDS =		textproc/lowdown
    
    LIB_DEPENDS +=		devel/libgit2/libgit2
    WANTLIB +=		${MODCARGO_WANTLIB} m git2
    
    MODCARGO_FEATURES =	git
    
    post-install:
    .for sec name in 1 eza 5 eza_colors 5 eza_colors-explanation
    	lowdown -s -tman -m section=${sec} -mtitle=${name} -mvolume='' ${WRKSRC}/man/${name}.${sec}.md > ${PREFIX}/man/man${sec}/${name}.${sec}
    .endfor
    	cd ${PREFIX}/share; ${INSTALL_DATA_DIR} fish/completions \
    	    zsh/site-functions bash-completion/completions \
    	    examples/eza/completions/nushell
    	${INSTALL_DATA} ${WRKSRC}/completions/fish/eza.fish ${PREFIX}/share/fish/completions/
    	${INSTALL_DATA} ${WRKSRC}/completions/zsh/_eza ${PREFIX}/share/zsh/site-functions/
    	${INSTALL_DATA} ${WRKSRC}/completions/bash/eza ${PREFIX}/share/bash-completion/completions/
    	${INSTALL_DATA} ${WRKSRC}/completions/nush/eza.nu ${PREFIX}/share/examples/eza/completions/nushell/
    
    .include <bsd.port.mk>