Diff bcachefs-tools-1.2_p20230813-r1 with a bcachefs-tools-9999

/usr/portage/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild 2023-10-09 14:52:35.500368502 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
CRATES="
7
	aho-corasick@0.7.20
8
	android_system_properties@0.1.5
9
	anyhow@1.0.68
10
	atty@0.2.14
11
	autocfg@1.1.0
12
	bitfield@0.14.0
13
	bitflags@1.3.2
14
	bumpalo@3.12.0
15
	byteorder@1.4.3
16
	cc@1.0.79
17
	cexpr@0.6.0
18
	cfg-if@1.0.0
19
	chrono@0.4.23
20
	clang-sys@1.6.0
21
	clap@4.1.4
22
	clap_derive@4.1.0
23
	clap_lex@0.3.1
24
	codespan-reporting@0.11.1
25
	colored@2.0.0
26
	core-foundation-sys@0.8.3
27
	cxx@1.0.89
28
	cxx-build@1.0.89
29
	cxxbridge-flags@1.0.89
30
	cxxbridge-macro@1.0.89
31
	either@1.8.1
32
	errno@0.2.8
33
	errno-dragonfly@0.1.2
34
	fastrand@1.8.0
35
	filedescriptor@0.8.2
36
	gag@1.0.0
37
	getset@0.1.2
38
	glob@0.3.1
39
	heck@0.4.1
40
	hermit-abi@0.1.19
41
	hermit-abi@0.2.6
42
	iana-time-zone@0.1.53
43
	iana-time-zone-haiku@0.1.1
44
	instant@0.1.12
45
	io-lifetimes@1.0.4
46
	is-terminal@0.4.2
47
	itertools@0.9.0
48
	js-sys@0.3.61
49
	lazy_static@1.4.0
50
	lazycell@1.3.0
51
	libc@0.2.139
52
	libudev-sys@0.1.4
53
	link-cplusplus@1.0.8
54
	linux-raw-sys@0.1.4
55
	log@0.4.17
56
	memchr@2.5.0
57
	memoffset@0.8.0
58
	minimal-lexical@0.2.1
59
	nom@7.1.3
60
	num-integer@0.1.45
61
	num-traits@0.2.15
62
	once_cell@1.17.0
63
	os_str_bytes@6.4.1
64
	parse-display@0.1.2
65
	parse-display-derive@0.1.2
66
	paste@1.0.11
67
	peeking_take_while@0.1.2
68
	pkg-config@0.3.26
69
	proc-macro-error@1.0.4
70
	proc-macro-error-attr@1.0.4
71
	proc-macro2@1.0.50
72
	quote@1.0.23
73
	redox_syscall@0.2.16
74
	regex@1.7.1
75
	regex-syntax@0.6.28
76
	remove_dir_all@0.5.3
77
	rpassword@4.0.5
78
	rustc-hash@1.1.0
79
	rustix@0.36.7
80
	scratch@1.0.3
81
	shlex@1.1.0
82
	strsim@0.10.0
83
	syn@1.0.107
84
	tempfile@3.3.0
85
	termcolor@1.2.0
86
	terminal_size@0.2.3
87
	thiserror@1.0.38
88
	thiserror-impl@1.0.38
89
	time@0.1.45
90
	udev@0.7.0
91
	unicode-ident@1.0.6
92
	unicode-width@0.1.10
93
	uuid@1.3.0
94
	version_check@0.9.4
95
	wasi@0.10.0+wasi-snapshot-preview1
96
	wasm-bindgen@0.2.84
97
	wasm-bindgen-backend@0.2.84
98
	wasm-bindgen-macro@0.2.84
99
	wasm-bindgen-macro-support@0.2.84
100
	wasm-bindgen-shared@0.2.84
101
	winapi@0.3.9
102
	winapi-i686-pc-windows-gnu@0.4.0
103
	winapi-util@0.1.5
104
	winapi-x86_64-pc-windows-gnu@0.4.0
105
	windows-sys@0.42.0
106
	windows_aarch64_gnullvm@0.42.1
107
	windows_aarch64_msvc@0.42.1
108
	windows_i686_gnu@0.42.1
109
	windows_i686_msvc@0.42.1
110
	windows_x86_64_gnu@0.42.1
111
	windows_x86_64_gnullvm@0.42.1
112
	windows_x86_64_msvc@0.42.1
113
"
6
# CRATES="
7
# "
114 8

  
115 9
# Upstream have a fork of bindgen and use cgit
116
declare -A GIT_CRATES=(
117
	[bindgen]="https://gitlab.com/Matt.Jolly/rust-bindgen-bcachefs;f773267b090bf16b9e8375fcbdcd8ba5e88806a8;rust-bindgen-bcachefs-%commit%/bindgen"
118
)
10
# declare -A GIT_CRATES=(
11
# 	[bindgen]="https://gitlab.com/Matt.Jolly/rust-bindgen-bcachefs;f773267b090bf16b9e8375fcbdcd8ba5e88806a8;rust-bindgen-bcachefs-%commit%/bindgen"
12
# )
119 13

  
120 14
LLVM_MAX_SLOT=17
121 15
PYTHON_COMPAT=( python3_{10..12} )
......
128 22
	inherit git-r3
129 23
	EGIT_REPO_URI="https://evilpiepirate.org/git/bcachefs-tools.git"
130 24
else
131
	MY_COMMIT=4d04fe42623a2f2b91a75cfa3d3503ab88e48acc
25
	MY_COMMIT=1f78fed4693a5361f56508daac59bebd5b556379
132 26
	SRC_URI="https://github.com/koverstreet/bcachefs-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz
133 27
		${CARGO_CRATE_URIS}"
134 28
	S="${WORKDIR}/${PN}-${MY_COMMIT}"
......
141 35
RESTRICT="!test? ( test )"
142 36

  
143 37
DEPEND="
38
	fuse? ( >=sys-fs/fuse-3.7.0 )
144 39
	app-arch/lz4:=
145 40
	dev-libs/libaio
146 41
	dev-libs/libsodium:=
......
149 44
	sys-apps/util-linux
150 45
	sys-libs/zlib
151 46
	virtual/udev
152
	fuse? ( >=sys-fs/fuse-3.7.0 )
153 47
"
154 48

  
155 49
RDEPEND="${DEPEND}"
......
181 75
			"dev-python/pytest-xdist[${PYTHON_USEDEP}]"
182 76
	fi
183 77
	python_has_version "dev-python/docutils[${PYTHON_USEDEP}]"
184

  
185 78
}
186 79

  
187 80
pkg_setup() {
......
248 141

  
249 142
src_install() {
250 143
	into /
251
	dosbin bcachefs fsck.bcachefs mkfs.bcachefs mount.bcachefs
144
	dosbin bcachefs
145

  
146
	dosym bcachefs /sbin/fsck.bcachefs
147
	dosym bcachefs /sbin/mkfs.bcachefs
148
	dosym bcachefs /sbin/mount.bcachefs
252 149

  
253 150
	if use fuse; then
254
		dosbin mount.fuse.bcachefs
255
		newsbin fsck.bcachefs fsck.fuse.bcachefs
256
		newsbin mkfs.bcachefs mkfs.fuse.bcachefs
151
		dosym bcachefs /sbin/fsck.fuse.bcachefs
152
		dosym bcachefs /sbin/mkfs.fuse.bcachefs
153
		dosym bcachefs /sbin/mount.fuse.bcachefs
257 154
	fi
258 155

  
259 156
	doman bcachefs.8
Thank you!