forked from Lainports/freebsd-ports
Reasons: * Port build shouldn't use cross-compilation mode because it buids for the same architecture. * RUSTFLAGS isn't passed to the build of all or some Rust ports in the cross-compilation mode. Essential changes: * Remove the CARGO_BUILD_TARGET make variable. * Remove CARGO_BUILD_TARGET and CARGO_TARGET_* from CARGO_ENV. * Update many ports that used CARGO_BUILD_TARGET. * Build paths now don't include the architecture triplet part. Immadiate benefits: * Unbreak build on architectures like i386 that sometimes require special RUSTFLAGS that were not effective in the cross-compilation mode. Ports that really need cross-compilation for some reason should enable it on case-by-case basis. Example: net-p2p/cncli (Not sure why does net-p2p/cncli actually need it, but it only builds with these options.) PR: 280305 Approved by: rust@FreeBSD.org (maintainer's timeout; 98 days)
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
PORTNAME= fd
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 10.2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
PKGNAMESUFFIX= -find
|
|
|
|
MAINTAINER= mikael@FreeBSD.org
|
|
COMMENT= Simple, fast and user-friendly alternative to find
|
|
WWW= https://github.com/sharkdp/fd
|
|
|
|
LICENSE= APACHE20 MIT
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
|
|
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
|
|
|
|
USES= cargo
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sharkdp
|
|
|
|
CONFLICTS_INSTALL= fd
|
|
|
|
PLIST_FILES= bin/fd \
|
|
etc/bash_completion.d/fd.bash \
|
|
share/fish/completions/fd.fish \
|
|
share/man/man1/fd.1.gz \
|
|
share/zsh/site-functions/_fd
|
|
|
|
post-build:
|
|
${MKDIR} ${WRKSRC}/autocomplete
|
|
${CARGO_TARGET_DIR}/release/fd --gen-completions bash > ${WRKSRC}/autocomplete/fd.bash
|
|
${CARGO_TARGET_DIR}/release/fd --gen-completions fish > ${WRKSRC}/autocomplete/fd.fish
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/fd.1 \
|
|
${STAGEDIR}${PREFIX}/share/man/man1
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
|
${INSTALL_DATA} ${WRKSRC}/autocomplete/fd.bash \
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
|
|
${INSTALL_DATA} ${WRKSRC}/autocomplete/fd.fish \
|
|
${STAGEDIR}${PREFIX}/share/fish/completions
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/completion/_fd \
|
|
${STAGEDIR}${PREFIX}/share/zsh/site-functions
|
|
|
|
.include <bsd.port.mk>
|