1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

New port: sysutils/fd

fd is a simple, fast and user-friendly alternative to find.
While it does not seek to mirror all of find's powerful functionality,
it provides sensible (opinionated) defaults for 80% of the use cases.

WWW: https://github.com/sharkdp/fd

PR:		223674
Submitted by:	Andrey Cherkashin <andoriyu@gmail.com>
This commit is contained in:
Tobias Kortkamp 2017-11-15 12:41:37 +00:00
parent 9b90a3524f
commit f32ec23cac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454236
4 changed files with 197 additions and 0 deletions

View File

@ -301,6 +301,7 @@
SUBDIR += fatback
SUBDIR += fconfig
SUBDIR += fcron
SUBDIR += fd
SUBDIR += fdupes
SUBDIR += feather
SUBDIR += fetchlog

104
sysutils/fd/Makefile Normal file
View File

@ -0,0 +1,104 @@
# Created by: Andrey Cherkashin <andoriyu@gmail.com>
# $FreeBSD$
PORTNAME= fd
DISTVERSIONPREFIX= v
DISTVERSION= 5.0.0
CATEGORIES= sysutils
PKGNAMESUFFIX= -find
MAINTAINER= andoriyu@gmail.com
COMMENT= Simple, fast and user-friendly alternative to find
LICENSE= MIT APACHE20
LICENSE_COMB= dual
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= sharkdp
CONFLICTS_INSTALL= fd-[0-9]*
CARGO_CRATES= aho-corasick-0.6.3 \
ansi_term-0.9.0 \
atty-0.2.3 \
bitflags-0.7.0 \
bitflags-0.9.1 \
clap-2.26.2 \
conv-0.3.3 \
crossbeam-0.2.10 \
custom_derive-0.1.7 \
diff-0.1.10 \
fnv-1.0.5 \
globset-0.2.0 \
ignore-0.2.2 \
kernel32-sys-0.2.2 \
lazy_static-0.2.9 \
libc-0.2.31 \
log-0.3.8 \
magenta-0.1.1 \
magenta-sys-0.1.1 \
memchr-1.0.1 \
num_cpus-1.7.0 \
rand-0.3.16 \
redox_syscall-0.1.31 \
redox_termios-0.1.1 \
regex-0.2.2 \
regex-syntax-0.4.1 \
same-file-0.1.3 \
shell-escape-0.1.3 \
strsim-0.6.0 \
tempdir-0.3.5 \
term_size-0.3.0 \
termion-1.5.1 \
textwrap-0.8.0 \
thread_local-0.3.4 \
unicode-width-0.1.4 \
unreachable-1.0.0 \
utf8-ranges-1.0.0 \
vec_map-0.8.0 \
void-1.0.2 \
walkdir-1.0.7 \
winapi-0.2.8 \
winapi-build-0.1.1
SHELL_COMPLETIONS_DIR= ${WRKDIR}/shell-completions-dir
CARGO_ENV= SHELL_COMPLETIONS_DIR=${SHELL_COMPLETIONS_DIR}
PLIST_FILES= bin/fd \
man/man1/fd.1.gz
OPTIONS_DEFINE= BASH FISH ZSH
OPTIONS_DEFAULT= BASH FISH ZSH
BASH_PLIST_FILES= etc/bash_completion.d/fd.bash-completion
FISH_PLIST_FILES= share/fish/completions/fd.fish
ZSH_PLIST_FILES= share/zsh/site-functions/_fd
# This can be removed after https://github.com/sharkdp/fd/pull/169 has
# been merged.
pre-build:
@${MKDIR} ${SHELL_COMPLETIONS_DIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fd
${INSTALL_MAN} ${WRKSRC}/doc/fd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
post-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${SHELL_COMPLETIONS_DIR}/fd.bash-completion \
${STAGEDIR}${PREFIX}/etc/bash_completion.d
post-install-FISH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${SHELL_COMPLETIONS_DIR}/fd.fish \
${STAGEDIR}${PREFIX}/share/fish/completions
post-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${SHELL_COMPLETIONS_DIR}/_fd \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
.include <bsd.port.mk>

87
sysutils/fd/distinfo Normal file
View File

@ -0,0 +1,87 @@
TIMESTAMP = 1510715241
SHA256 (rust/crates/aho-corasick-0.6.3.tar.gz) = 500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699
SIZE (rust/crates/aho-corasick-0.6.3.tar.gz) = 24963
SHA256 (rust/crates/ansi_term-0.9.0.tar.gz) = 23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6
SIZE (rust/crates/ansi_term-0.9.0.tar.gz) = 11718
SHA256 (rust/crates/atty-0.2.3.tar.gz) = 21e50800ec991574876040fff8ee46b136a53e985286fbe6a3bdfe6421b78860
SIZE (rust/crates/atty-0.2.3.tar.gz) = 5486
SHA256 (rust/crates/bitflags-0.7.0.tar.gz) = aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d
SIZE (rust/crates/bitflags-0.7.0.tar.gz) = 10851
SHA256 (rust/crates/bitflags-0.9.1.tar.gz) = 4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5
SIZE (rust/crates/bitflags-0.9.1.tar.gz) = 12406
SHA256 (rust/crates/clap-2.26.2.tar.gz) = 3451e409013178663435d6f15fdb212f14ee4424a3d74f979d081d0a66b6f1f2
SIZE (rust/crates/clap-2.26.2.tar.gz) = 182509
SHA256 (rust/crates/conv-0.3.3.tar.gz) = 78ff10625fd0ac447827aa30ea8b861fead473bb60aeb73af6c1c58caf0d1299
SIZE (rust/crates/conv-0.3.3.tar.gz) = 22124
SHA256 (rust/crates/crossbeam-0.2.10.tar.gz) = 0c5ea215664ca264da8a9d9c3be80d2eaf30923c259d03e870388eb927508f97
SIZE (rust/crates/crossbeam-0.2.10.tar.gz) = 32993
SHA256 (rust/crates/custom_derive-0.1.7.tar.gz) = ef8ae57c4978a2acd8b869ce6b9ca1dfe817bff704c220209fdef2c0b75a01b9
SIZE (rust/crates/custom_derive-0.1.7.tar.gz) = 10700
SHA256 (rust/crates/diff-0.1.10.tar.gz) = 0a515461b6c8c08419850ced27bc29e86166dcdcde8fbe76f8b1f0589bb49472
SIZE (rust/crates/diff-0.1.10.tar.gz) = 7534
SHA256 (rust/crates/fnv-1.0.5.tar.gz) = 6cc484842f1e2884faf56f529f960cc12ad8c71ce96cc7abba0a067c98fee344
SIZE (rust/crates/fnv-1.0.5.tar.gz) = 6295
SHA256 (rust/crates/globset-0.2.0.tar.gz) = feeb1b6840809ef5efcf7a4a990bc4e1b7ee3df8cf9e2379a75aeb2ba42ac9c3
SIZE (rust/crates/globset-0.2.0.tar.gz) = 21121
SHA256 (rust/crates/ignore-0.2.2.tar.gz) = b3fcaf2365eb14b28ec7603c98c06cc531f19de9eb283d89a3dff8417c8c99f5
SIZE (rust/crates/ignore-0.2.2.tar.gz) = 39372
SHA256 (rust/crates/kernel32-sys-0.2.2.tar.gz) = 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d
SIZE (rust/crates/kernel32-sys-0.2.2.tar.gz) = 24537
SHA256 (rust/crates/lazy_static-0.2.9.tar.gz) = c9e5e58fa1a4c3b915a561a78a22ee0cac6ab97dca2504428bc1cb074375f8d5
SIZE (rust/crates/lazy_static-0.2.9.tar.gz) = 11024
SHA256 (rust/crates/libc-0.2.31.tar.gz) = d1419b2939a0bc44b77feb34661583c7546b532b192feab36249ab584b86856c
SIZE (rust/crates/libc-0.2.31.tar.gz) = 223398
SHA256 (rust/crates/log-0.3.8.tar.gz) = 880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b
SIZE (rust/crates/log-0.3.8.tar.gz) = 17756
SHA256 (rust/crates/magenta-0.1.1.tar.gz) = 4bf0336886480e671965f794bc9b6fce88503563013d1bfb7a502c81fe3ac527
SIZE (rust/crates/magenta-0.1.1.tar.gz) = 24465
SHA256 (rust/crates/magenta-sys-0.1.1.tar.gz) = 40d014c7011ac470ae28e2f76a02bfea4a8480f73e701353b49ad7a8d75f4699
SIZE (rust/crates/magenta-sys-0.1.1.tar.gz) = 5827
SHA256 (rust/crates/memchr-1.0.1.tar.gz) = 1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4
SIZE (rust/crates/memchr-1.0.1.tar.gz) = 8221
SHA256 (rust/crates/num_cpus-1.7.0.tar.gz) = 514f0d73e64be53ff320680ca671b64fe3fb91da01e1ae2ddc99eb51d453b20d
SIZE (rust/crates/num_cpus-1.7.0.tar.gz) = 9626
SHA256 (rust/crates/rand-0.3.16.tar.gz) = eb250fd207a4729c976794d03db689c9be1d634ab5a1c9da9492a13d8fecbcdf
SIZE (rust/crates/rand-0.3.16.tar.gz) = 57389
SHA256 (rust/crates/redox_syscall-0.1.31.tar.gz) = 8dde11f18c108289bef24469638a04dce49da56084f2d50618b226e47eb04509
SIZE (rust/crates/redox_syscall-0.1.31.tar.gz) = 13420
SHA256 (rust/crates/redox_termios-0.1.1.tar.gz) = 7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76
SIZE (rust/crates/redox_termios-0.1.1.tar.gz) = 3227
SHA256 (rust/crates/regex-0.2.2.tar.gz) = 1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b
SIZE (rust/crates/regex-0.2.2.tar.gz) = 193403
SHA256 (rust/crates/regex-syntax-0.4.1.tar.gz) = ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db
SIZE (rust/crates/regex-syntax-0.4.1.tar.gz) = 121453
SHA256 (rust/crates/same-file-0.1.3.tar.gz) = d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7
SIZE (rust/crates/same-file-0.1.3.tar.gz) = 7078
SHA256 (rust/crates/shell-escape-0.1.3.tar.gz) = dd5cc96481d54583947bfe88bf30c23d53f883c6cd0145368b69989d97b84ef8
SIZE (rust/crates/shell-escape-0.1.3.tar.gz) = 6441
SHA256 (rust/crates/strsim-0.6.0.tar.gz) = b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694
SIZE (rust/crates/strsim-0.6.0.tar.gz) = 8500
SHA256 (rust/crates/tempdir-0.3.5.tar.gz) = 87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6
SIZE (rust/crates/tempdir-0.3.5.tar.gz) = 10605
SHA256 (rust/crates/term_size-0.3.0.tar.gz) = e2b6b55df3198cc93372e85dd2ed817f0e38ce8cc0f22eb32391bfad9c4bf209
SIZE (rust/crates/term_size-0.3.0.tar.gz) = 9932
SHA256 (rust/crates/termion-1.5.1.tar.gz) = 689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096
SIZE (rust/crates/termion-1.5.1.tar.gz) = 20659
SHA256 (rust/crates/textwrap-0.8.0.tar.gz) = df8e08afc40ae3459e4838f303e465aa50d823df8d7f83ca88108f6d3afe7edd
SIZE (rust/crates/textwrap-0.8.0.tar.gz) = 14903
SHA256 (rust/crates/thread_local-0.3.4.tar.gz) = 1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14
SIZE (rust/crates/thread_local-0.3.4.tar.gz) = 11760
SHA256 (rust/crates/unicode-width-0.1.4.tar.gz) = bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f
SIZE (rust/crates/unicode-width-0.1.4.tar.gz) = 15283
SHA256 (rust/crates/unreachable-1.0.0.tar.gz) = 382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56
SIZE (rust/crates/unreachable-1.0.0.tar.gz) = 6355
SHA256 (rust/crates/utf8-ranges-1.0.0.tar.gz) = 662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122
SIZE (rust/crates/utf8-ranges-1.0.0.tar.gz) = 8599
SHA256 (rust/crates/vec_map-0.8.0.tar.gz) = 887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c
SIZE (rust/crates/vec_map-0.8.0.tar.gz) = 13742
SHA256 (rust/crates/void-1.0.2.tar.gz) = 6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d
SIZE (rust/crates/void-1.0.2.tar.gz) = 2356
SHA256 (rust/crates/walkdir-1.0.7.tar.gz) = bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff
SIZE (rust/crates/walkdir-1.0.7.tar.gz) = 17883
SHA256 (rust/crates/winapi-0.2.8.tar.gz) = 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a
SIZE (rust/crates/winapi-0.2.8.tar.gz) = 455145
SHA256 (rust/crates/winapi-build-0.1.1.tar.gz) = 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc
SIZE (rust/crates/winapi-build-0.1.1.tar.gz) = 669
SHA256 (sharkdp-fd-v5.0.0_GH0.tar.gz) = 9788597334912d65e32c7d57ef7a0294cb8976dc52538c9048a77fbb8d12f755
SIZE (sharkdp-fd-v5.0.0_GH0.tar.gz) = 36939

5
sysutils/fd/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
fd is a simple, fast and user-friendly alternative to find.
While it does not seek to mirror all of find's powerful functionality,
it provides sensible (opinionated) defaults for 80% of the use cases.
WWW: https://github.com/sharkdp/fd