View | Details | Raw Unified | Return to bug 223674 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/fd/Makefile (+96 lines)
Line 0 Link Here
1
# Created by: Andrey Cherkashin <andoriyu@gmail.com>
2
# $FreeBSD$
3
# vim: ts=8 noet
4
5
PORTNAME=	fd
6
PORTVERSION=	5.0.0
7
CATEGORIES=	sysutils
8
9
MAINTAINER=	andoriyu@gmail.com
10
COMMENT=	Simple, fast and user-friendly alternative to find
11
12
LICENSE=	MIT APACHE20
13
LICENSE_COMB=	dual
14
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
15
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
16
17
USES=		cargo
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	sharkdp
20
GH_TAGNAME=	v5.0.0
21
22
CARGO_CRATES=	aho-corasick-0.6.3 \
23
		ansi_term-0.9.0 \
24
		atty-0.2.3 \
25
		bitflags-0.7.0 \
26
		bitflags-0.9.1 \
27
		clap-2.26.2 \
28
		conv-0.3.3 \
29
		crossbeam-0.2.10 \
30
		custom_derive-0.1.7 \
31
		diff-0.1.10 \
32
		fnv-1.0.5 \
33
		globset-0.2.0 \
34
		ignore-0.2.2 \
35
		kernel32-sys-0.2.2 \
36
		lazy_static-0.2.9 \
37
		libc-0.2.31 \
38
		log-0.3.8 \
39
		magenta-0.1.1 \
40
		magenta-sys-0.1.1 \
41
		memchr-1.0.1 \
42
		num_cpus-1.7.0 \
43
		rand-0.3.16 \
44
		redox_syscall-0.1.31 \
45
		redox_termios-0.1.1 \
46
		regex-0.2.2 \
47
		regex-syntax-0.4.1 \
48
		same-file-0.1.3 \
49
		shell-escape-0.1.3 \
50
		strsim-0.6.0 \
51
		tempdir-0.3.5 \
52
		term_size-0.3.0 \
53
		termion-1.5.1 \
54
		textwrap-0.8.0 \
55
		thread_local-0.3.4 \
56
		unicode-width-0.1.4 \
57
		unreachable-1.0.0 \
58
		utf8-ranges-1.0.0 \
59
		vec_map-0.8.0 \
60
		void-1.0.2 \
61
		walkdir-1.0.7 \
62
		winapi-0.2.8 \
63
		winapi-build-0.1.1
64
65
OPTIONS_DEFINE=	BASH FISH ZSH
66
OPTIONS_DEFAULT=BASH FISH ZSH
67
68
PLIST_FILES=	bin/fd \
69
		man/man1/fd.1.gz
70
71
BASH_PLIST_FILES=	etc/bash_completion.d/fd.bash-completion
72
FISH_PLIST_FILES=	share/fish/completions/fd.fish
73
ZSH_PLIST_FILES=	share/zsh/site-functions/_fd
74
75
FD_OUTDIR=	${WRKDIR}/cargo-out
76
CARGO_ENV=	FD_OUTDIR=${FD_OUTDIR}
77
78
post-install:
79
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fd
80
	${INSTALL_MAN} ${WRKSRC}/doc/fd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
81
82
post-install-BASH-on:
83
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
84
	${INSTALL_DATA} ${FD_OUTDIR}/fd.bash-completion \
85
		${STAGEDIR}${PREFIX}/etc/bash_completion.d/
86
87
post-install-FISH-on:
88
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions/
89
	${INSTALL_DATA} ${FD_OUTDIR}/fd.fish \
90
		${STAGEDIR}${PREFIX}/share/fish/completions/
91
92
post-install-ZSH-on:
93
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
94
	${INSTALL_DATA} ${FD_OUTDIR}/_fd \
95
		${STAGEDIR}${PREFIX}/share/zsh/site-functions/
96
.include <bsd.port.mk>
(-)sysutils/fd/distinfo (+87 lines)
Line 0 Link Here
1
TIMESTAMP = 1510708048
2
SHA256 (rust/crates/aho-corasick-0.6.3.tar.gz) = 500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699
3
SIZE (rust/crates/aho-corasick-0.6.3.tar.gz) = 24963
4
SHA256 (rust/crates/ansi_term-0.9.0.tar.gz) = 23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6
5
SIZE (rust/crates/ansi_term-0.9.0.tar.gz) = 11718
6
SHA256 (rust/crates/atty-0.2.3.tar.gz) = 21e50800ec991574876040fff8ee46b136a53e985286fbe6a3bdfe6421b78860
7
SIZE (rust/crates/atty-0.2.3.tar.gz) = 5486
8
SHA256 (rust/crates/bitflags-0.7.0.tar.gz) = aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d
9
SIZE (rust/crates/bitflags-0.7.0.tar.gz) = 10851
10
SHA256 (rust/crates/bitflags-0.9.1.tar.gz) = 4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5
11
SIZE (rust/crates/bitflags-0.9.1.tar.gz) = 12406
12
SHA256 (rust/crates/clap-2.26.2.tar.gz) = 3451e409013178663435d6f15fdb212f14ee4424a3d74f979d081d0a66b6f1f2
13
SIZE (rust/crates/clap-2.26.2.tar.gz) = 182509
14
SHA256 (rust/crates/conv-0.3.3.tar.gz) = 78ff10625fd0ac447827aa30ea8b861fead473bb60aeb73af6c1c58caf0d1299
15
SIZE (rust/crates/conv-0.3.3.tar.gz) = 22124
16
SHA256 (rust/crates/crossbeam-0.2.10.tar.gz) = 0c5ea215664ca264da8a9d9c3be80d2eaf30923c259d03e870388eb927508f97
17
SIZE (rust/crates/crossbeam-0.2.10.tar.gz) = 32993
18
SHA256 (rust/crates/custom_derive-0.1.7.tar.gz) = ef8ae57c4978a2acd8b869ce6b9ca1dfe817bff704c220209fdef2c0b75a01b9
19
SIZE (rust/crates/custom_derive-0.1.7.tar.gz) = 10700
20
SHA256 (rust/crates/diff-0.1.10.tar.gz) = 0a515461b6c8c08419850ced27bc29e86166dcdcde8fbe76f8b1f0589bb49472
21
SIZE (rust/crates/diff-0.1.10.tar.gz) = 7534
22
SHA256 (rust/crates/fnv-1.0.5.tar.gz) = 6cc484842f1e2884faf56f529f960cc12ad8c71ce96cc7abba0a067c98fee344
23
SIZE (rust/crates/fnv-1.0.5.tar.gz) = 6295
24
SHA256 (rust/crates/globset-0.2.0.tar.gz) = feeb1b6840809ef5efcf7a4a990bc4e1b7ee3df8cf9e2379a75aeb2ba42ac9c3
25
SIZE (rust/crates/globset-0.2.0.tar.gz) = 21121
26
SHA256 (rust/crates/ignore-0.2.2.tar.gz) = b3fcaf2365eb14b28ec7603c98c06cc531f19de9eb283d89a3dff8417c8c99f5
27
SIZE (rust/crates/ignore-0.2.2.tar.gz) = 39372
28
SHA256 (rust/crates/kernel32-sys-0.2.2.tar.gz) = 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d
29
SIZE (rust/crates/kernel32-sys-0.2.2.tar.gz) = 24537
30
SHA256 (rust/crates/lazy_static-0.2.9.tar.gz) = c9e5e58fa1a4c3b915a561a78a22ee0cac6ab97dca2504428bc1cb074375f8d5
31
SIZE (rust/crates/lazy_static-0.2.9.tar.gz) = 11024
32
SHA256 (rust/crates/libc-0.2.31.tar.gz) = d1419b2939a0bc44b77feb34661583c7546b532b192feab36249ab584b86856c
33
SIZE (rust/crates/libc-0.2.31.tar.gz) = 223398
34
SHA256 (rust/crates/log-0.3.8.tar.gz) = 880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b
35
SIZE (rust/crates/log-0.3.8.tar.gz) = 17756
36
SHA256 (rust/crates/magenta-0.1.1.tar.gz) = 4bf0336886480e671965f794bc9b6fce88503563013d1bfb7a502c81fe3ac527
37
SIZE (rust/crates/magenta-0.1.1.tar.gz) = 24465
38
SHA256 (rust/crates/magenta-sys-0.1.1.tar.gz) = 40d014c7011ac470ae28e2f76a02bfea4a8480f73e701353b49ad7a8d75f4699
39
SIZE (rust/crates/magenta-sys-0.1.1.tar.gz) = 5827
40
SHA256 (rust/crates/memchr-1.0.1.tar.gz) = 1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4
41
SIZE (rust/crates/memchr-1.0.1.tar.gz) = 8221
42
SHA256 (rust/crates/num_cpus-1.7.0.tar.gz) = 514f0d73e64be53ff320680ca671b64fe3fb91da01e1ae2ddc99eb51d453b20d
43
SIZE (rust/crates/num_cpus-1.7.0.tar.gz) = 9626
44
SHA256 (rust/crates/rand-0.3.16.tar.gz) = eb250fd207a4729c976794d03db689c9be1d634ab5a1c9da9492a13d8fecbcdf
45
SIZE (rust/crates/rand-0.3.16.tar.gz) = 57389
46
SHA256 (rust/crates/redox_syscall-0.1.31.tar.gz) = 8dde11f18c108289bef24469638a04dce49da56084f2d50618b226e47eb04509
47
SIZE (rust/crates/redox_syscall-0.1.31.tar.gz) = 13420
48
SHA256 (rust/crates/redox_termios-0.1.1.tar.gz) = 7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76
49
SIZE (rust/crates/redox_termios-0.1.1.tar.gz) = 3227
50
SHA256 (rust/crates/regex-0.2.2.tar.gz) = 1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b
51
SIZE (rust/crates/regex-0.2.2.tar.gz) = 193403
52
SHA256 (rust/crates/regex-syntax-0.4.1.tar.gz) = ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db
53
SIZE (rust/crates/regex-syntax-0.4.1.tar.gz) = 121453
54
SHA256 (rust/crates/same-file-0.1.3.tar.gz) = d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7
55
SIZE (rust/crates/same-file-0.1.3.tar.gz) = 7078
56
SHA256 (rust/crates/shell-escape-0.1.3.tar.gz) = dd5cc96481d54583947bfe88bf30c23d53f883c6cd0145368b69989d97b84ef8
57
SIZE (rust/crates/shell-escape-0.1.3.tar.gz) = 6441
58
SHA256 (rust/crates/strsim-0.6.0.tar.gz) = b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694
59
SIZE (rust/crates/strsim-0.6.0.tar.gz) = 8500
60
SHA256 (rust/crates/tempdir-0.3.5.tar.gz) = 87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6
61
SIZE (rust/crates/tempdir-0.3.5.tar.gz) = 10605
62
SHA256 (rust/crates/term_size-0.3.0.tar.gz) = e2b6b55df3198cc93372e85dd2ed817f0e38ce8cc0f22eb32391bfad9c4bf209
63
SIZE (rust/crates/term_size-0.3.0.tar.gz) = 9932
64
SHA256 (rust/crates/termion-1.5.1.tar.gz) = 689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096
65
SIZE (rust/crates/termion-1.5.1.tar.gz) = 20659
66
SHA256 (rust/crates/textwrap-0.8.0.tar.gz) = df8e08afc40ae3459e4838f303e465aa50d823df8d7f83ca88108f6d3afe7edd
67
SIZE (rust/crates/textwrap-0.8.0.tar.gz) = 14903
68
SHA256 (rust/crates/thread_local-0.3.4.tar.gz) = 1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14
69
SIZE (rust/crates/thread_local-0.3.4.tar.gz) = 11760
70
SHA256 (rust/crates/unicode-width-0.1.4.tar.gz) = bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f
71
SIZE (rust/crates/unicode-width-0.1.4.tar.gz) = 15283
72
SHA256 (rust/crates/unreachable-1.0.0.tar.gz) = 382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56
73
SIZE (rust/crates/unreachable-1.0.0.tar.gz) = 6355
74
SHA256 (rust/crates/utf8-ranges-1.0.0.tar.gz) = 662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122
75
SIZE (rust/crates/utf8-ranges-1.0.0.tar.gz) = 8599
76
SHA256 (rust/crates/vec_map-0.8.0.tar.gz) = 887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c
77
SIZE (rust/crates/vec_map-0.8.0.tar.gz) = 13742
78
SHA256 (rust/crates/void-1.0.2.tar.gz) = 6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d
79
SIZE (rust/crates/void-1.0.2.tar.gz) = 2356
80
SHA256 (rust/crates/walkdir-1.0.7.tar.gz) = bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff
81
SIZE (rust/crates/walkdir-1.0.7.tar.gz) = 17883
82
SHA256 (rust/crates/winapi-0.2.8.tar.gz) = 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a
83
SIZE (rust/crates/winapi-0.2.8.tar.gz) = 455145
84
SHA256 (rust/crates/winapi-build-0.1.1.tar.gz) = 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc
85
SIZE (rust/crates/winapi-build-0.1.1.tar.gz) = 669
86
SHA256 (sharkdp-fd-5.0.0-v5.0.0_GH0.tar.gz) = 9788597334912d65e32c7d57ef7a0294cb8976dc52538c9048a77fbb8d12f755
87
SIZE (sharkdp-fd-5.0.0-v5.0.0_GH0.tar.gz) = 36939
(-)sysutils/fd/files/patch-build.rs (+21 lines)
Line 0 Link Here
1
--- build.rs.orig	2017-11-15 02:41:12 UTC
2
+++ build.rs
3
@@ -10,15 +10,17 @@
4
 extern crate clap;
5
 
6
 use clap::Shell;
7
+use std::fs;
8
 
9
 include!("src/app.rs");
10
 
11
 fn main() {
12
-    let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
13
+    let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("FD_OUTDIR"));
14
     let outdir = match var {
15
         None => return,
16
         Some(outdir) => outdir,
17
     };
18
+    fs::create_dir_all(&outdir).unwrap();
19
 
20
     let mut app = build_app();
21
     app.gen_completions("fd", Shell::Bash, &outdir);
(-)sysutils/fd/pkg-descr (+5 lines)
Line 0 Link Here
1
fd is a simple, fast and user-friendly alternative to find.
2
While it does not seek to mirror all of find's powerful functionality,
3
it provides sensible (opinionated) defaults for 80% of the use cases.
4
5
WWW: https://github.com/sharkdp/fd

Return to bug 223674