# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RUST_MIN_VER="1.95.0"
ZIG_SLOT="0.16"
ZIG_NEEDS_LLVM=1
ZIG_OPTIONAL=1
LLVM_COMPAT=( {20..23} )

CRATES="
	accesskit@0.24.1
	accesskit_atspi_common@0.19.1
	accesskit_consumer@0.38.0
	accesskit_macos@0.26.3
	accesskit_unix@0.22.1
	accesskit_windows@0.34.0
	addr2line@0.25.1
	adler2@2.0.1
	aead@0.6.1
	aes-gcm@0.11.1
	aes-kw@0.3.1
	aes@0.8.4
	aes@0.9.3
	ahash@0.8.12
	aho-corasick@1.1.5
	aligned-vec@0.6.4
	aligned@0.4.3
	alloc-no-stdlib@2.0.4
	alloc-stdlib@0.2.4
	allocator-api2@0.2.21
	ambient-authority@0.0.2
	android_system_properties@0.1.6
	anstream@1.0.0
	anstyle-parse@1.0.0
	anstyle-query@1.1.5
	anstyle-wincon@3.0.11
	anstyle@1.0.14
	anyhow@1.0.104
	arbitrary@1.4.2
	arg_enum_proc_macro@0.3.4
	arrayref@0.3.9
	arrayvec@0.7.8
	as-raw-xcb-connection@1.0.1
	as-slice@0.2.1
	ash@0.38.0+1.3.281
	ashpd@0.13.13
	async-broadcast@0.7.2
	async-channel@2.5.0
	async-compression@0.4.44
	async-executor@1.14.0
	async-fs@2.2.0
	async-io@2.6.0
	async-lock@3.4.2
	async-net@2.0.0
	async-process@2.5.0
	async-recursion@1.1.1
	async-signal@0.2.14
	async-task@4.7.1
	async-trait@0.1.92
	atomic-waker@1.1.2
	atomic@0.5.3
	atspi-common@0.13.0
	atspi-proxies@0.13.0
	atspi@0.29.0
	autocfg@1.5.1
	av-scenechange@0.14.1
	av1-grain@0.2.5
	avif-serialize@0.8.9
	backtrace@0.3.76
	base16ct@1.0.0
	base64-simd@0.8.0
	base64@0.22.1
	base64ct@1.8.3
	bincode@1.3.3
	bindgen@0.72.1
	bit-set@0.11.1
	bit-set@0.8.0
	bit-set@0.9.1
	bit-vec@0.10.1
	bit-vec@0.8.0
	bit-vec@0.9.1
	bit_field@0.10.3
	bitflags@1.3.2
	bitflags@2.13.1
	bitstream-io@4.10.0
	block-buffer@0.10.4
	block-buffer@0.12.1
	block-padding@0.3.3
	block-padding@0.4.2
	block2@0.5.1
	block2@0.6.2
	block@0.1.6
	blocking@1.7.0
	borsh-derive@1.8.1
	borsh@1.8.1
	brotli-decompressor@5.0.3
	brotli@8.0.4
	built@0.8.1
	bumpalo@3.20.3
	bytemuck@1.25.2
	bytemuck_derive@1.12.0
	byteorder-lite@0.1.0
	byteorder@1.5.0
	bytes@1.12.1
	bzip2@0.6.1
	calloop-wayland-source@0.4.1
	calloop@0.14.4
	cap-primitives@4.0.3
	cap-std@4.0.3
	cbc@0.1.2
	cbc@0.2.1
	cbindgen@0.28.0
	cc@1.2.67
	cexpr@0.6.0
	cfg-if@1.0.4
	cfg_aliases@0.2.2
	cgl@0.3.2
	chacha20@0.10.2
	chrono@0.4.45
	cipher@0.4.4
	cipher@0.5.2
	clang-sys@1.9.1
	clap@4.6.7
	clap_builder@4.6.7
	clap_derive@4.6.7
	clap_lex@1.1.1
	cmov@0.5.4
	cobs@0.3.0
	cocoa-foundation@0.1.2
	cocoa-foundation@0.2.1
	cocoa@0.25.0
	cocoa@0.26.0
	codespan-reporting@0.13.1
	color_quant@1.1.0
	colorchoice@1.0.5
	compression-codecs@0.4.39
	compression-core@0.4.33
	concurrent-queue@2.5.0
	console_error_panic_hook@0.1.7
	const-oid@0.10.2
	const-random-macro@0.1.16
	const-random@0.1.18
	convert_case@0.10.0
	convert_case@0.11.0
	core-foundation-sys@0.8.7
	core-foundation@0.10.1
	core-foundation@0.9.4
	core-graphics-helmer-fork@0.24.0
	core-graphics-types@0.1.3
	core-graphics-types@0.2.0
	core-graphics2@0.5.2
	core-graphics@0.23.2
	core-graphics@0.24.0
	core-text@21.0.0
	core-video@0.5.2
	core_detect@1.0.0
	core_maths@0.1.1
	cosmic-text@0.19.0
	cpubits@0.1.1
	cpufeatures@0.2.17
	cpufeatures@0.3.1
	cranelift-bforest@0.116.1
	cranelift-bitset@0.116.1
	cranelift-codegen-meta@0.116.1
	cranelift-codegen-shared@0.116.1
	cranelift-codegen@0.116.1
	cranelift-control@0.116.1
	cranelift-entity@0.116.1
	cranelift-frontend@0.116.1
	cranelift-isle@0.116.1
	cranelift-module@0.116.1
	cranelift-native@0.116.1
	cranelift-object@0.116.1
	crc32c@0.6.8
	crc32fast@1.5.1
	crossbeam-deque@0.8.7
	crossbeam-epoch@0.9.20
	crossbeam-queue@0.3.13
	crossbeam-utils@0.8.22
	crunchy@0.2.4
	crypto-bigint@0.7.5
	crypto-common@0.1.7
	crypto-common@0.2.2
	crypto-primes@0.7.2
	ctor@1.0.13
	ctr@0.10.1
	ctrlc@3.5.2
	ctutils@0.4.2
	curve25519-dalek-derive@0.1.1
	curve25519-dalek@5.0.0
	data-encoding@2.11.1
	data-url@0.3.2
	der@0.8.1
	der_derive@0.8.0
	deranged@0.5.8
	derive_more-impl@2.1.1
	derive_more@2.1.1
	digest@0.10.7
	digest@0.11.3
	dirs-sys@0.4.1
	dirs@5.0.1
	dispatch2@0.3.1
	dispatch@0.2.0
	displaydoc@0.2.7
	dlib@0.5.3
	document-features@0.2.12
	downcast-rs@1.2.1
	dunce@1.0.5
	dwrote@0.11.5
	dyn-clone@1.0.20
	ecdsa@0.17.0
	ed25519-dalek@3.0.0
	ed25519@3.0.0
	either@1.18.0
	elliptic-curve@0.14.1
	embed-resource@3.0.11
	embedded-io@0.4.0
	embedded-io@0.6.1
	encoding_rs@0.8.35
	endi@1.1.1
	enumflags2@0.7.12
	enumflags2_derive@0.7.12
	enumn@0.1.14
	equator-macro@0.4.2
	equator@0.4.2
	equivalent@1.0.2
	erased-serde@0.4.10
	errno@0.3.14
	etagere@0.2.15
	euclid@0.22.14
	event-listener-strategy@0.5.4
	event-listener@5.4.2
	exr@1.74.2
	fallible-iterator@0.3.0
	fancy-regex@0.16.2
	fancy-regex@0.19.2
	fastrand@2.5.0
	fax@0.2.7
	fdeflate@0.3.7
	ff@0.14.0
	fiat-crypto@0.3.0
	filedescriptor@0.8.3
	filetime@0.2.29
	find-msvc-tools@0.1.11
	fixedbitset@0.5.7
	flate2@1.1.10
	float-cmp@0.10.0
	float-cmp@0.9.0
	float-ord@0.3.2
	float_next_after@1.0.0
	fluent-uri@0.1.4
	flume@0.12.0
	fnv@1.0.7
	foldhash@0.1.5
	foldhash@0.2.0
	font-types@0.11.3
	font-types@0.12.4
	fontconfig-parser@0.5.8
	fontdb@0.23.0
	foreign-types-macros@0.2.4
	foreign-types-shared@0.3.1
	foreign-types@0.5.0
	form_urlencoded@1.2.2
	freetype-sys@0.20.1
	fs-set-times@0.20.3
	fs2@0.4.3
	fsevent-sys@4.1.0
	futf@0.1.5
	futures-channel@0.3.34
	futures-concurrency@7.7.1
	futures-core@0.3.34
	futures-executor@0.3.34
	futures-io@0.3.34
	futures-lite@2.6.1
	futures-macro@0.3.34
	futures-sink@0.3.34
	futures-task@0.3.34
	futures-util@0.3.34
	futures@0.3.34
	generic-array@0.14.7
	gethostname@1.1.0
	getrandom@0.2.17
	getrandom@0.3.4
	getrandom@0.4.3
	ghash@0.6.0
	gif@0.14.2
	gimli@0.31.1
	gimli@0.32.3
	gl_generator@0.14.0
	glob@0.3.4
	glow@0.17.0
	glutin_wgl_sys@0.6.1
	gpu-allocator@0.28.0
	gpu-descriptor-types@0.2.0
	gpu-descriptor@0.3.2
	gpui-fast-macros@0.1.3
	gpui-fast@0.1.3
	gpui-pre-collections@0.3.8
	gpui-pre-derive-refineable@0.3.8
	gpui-pre-http-client@0.3.8
	gpui-pre-macros@0.3.8
	gpui-pre-perf@0.3.8
	gpui-pre-platform@0.3.8
	gpui-pre-refineable@0.3.8
	gpui-pre-reqwest@0.12.15
	gpui-pre-scheduler@0.3.8
	gpui-pre-shared-string@0.3.8
	gpui-pre-sum-tree@0.3.8
	gpui-pre-util-macros@0.3.8
	gpui-pre-util@0.3.8
	gpui-pre-web@0.3.8
	gpui-pre-zlog@0.3.8
	gpui-pre-ztracing-macro@0.3.8
	gpui-pre-ztracing@0.3.8
	group@0.14.0
	h2@0.4.19
	half@2.7.1
	halfbrown@0.4.0
	harfrust@0.5.2
	hash32@0.3.1
	hashbrown@0.14.5
	hashbrown@0.15.5
	hashbrown@0.16.1
	hashbrown@0.17.1
	hdrhistogram@7.6.0
	heapless@0.9.3
	heck@0.4.1
	heck@0.5.0
	hermit-abi@0.5.3
	hex-simd@0.8.0
	hex@0.4.3
	hexf-parse@0.2.1
	hkdf@0.12.4
	hkdf@0.13.0
	hmac@0.12.1
	hmac@0.13.0
	html5ever@0.27.0
	http-body-util@0.1.5
	http-body@1.1.0
	http@1.5.0
	httparse@1.10.1
	hybrid-array@0.4.14
	hyper-rustls@0.27.9
	hyper-util@0.1.20
	hyper@1.11.1
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.65
	icu_collections@2.3.0
	icu_locale_core@2.3.0
	icu_normalizer@2.3.0
	icu_normalizer_data@2.3.0
	icu_properties@2.3.0
	icu_properties_data@2.3.0
	icu_provider@2.3.1
	ident_case@1.0.1
	idna@1.1.0
	idna_adapter@1.2.2
	image-webp@0.2.4
	image@0.25.10
	imagesize@0.14.0
	imgref@1.12.3
	indexmap@2.14.1
	inotify-sys@0.1.8
	inotify@0.10.2
	inout@0.1.4
	inout@0.2.2
	instant@0.1.13
	interpolate_name@0.2.4
	inventory@0.3.24
	io-extras@0.19.0
	io-lifetimes@2.0.4
	io-lifetimes@3.0.1
	io-surface@0.16.1
	ipnet@2.12.1
	is-docker@0.2.0
	is-wsl@0.4.0
	is_terminal_polyfill@1.70.2
	itertools@0.13.0
	itertools@0.14.0
	itoa@1.0.18
	jni-sys-macros@0.4.1
	jni-sys@0.3.1
	jni-sys@0.4.1
	jobserver@0.1.35
	js-sys@0.3.98
	khronos-egl@6.0.0
	khronos_api@3.1.0
	kqueue-sys@1.1.2
	kqueue@1.2.1
	kurbo@0.13.1
	lazy_static@1.5.0
	leak@0.1.2
	leaky-cow@0.1.1
	lebe@0.5.3
	libbz2-rs-sys@0.2.5
	libc@0.2.189
	libfuzzer-sys@0.4.13
	libloading@0.8.9
	libm@0.2.16
	libredox@0.1.23
	linebender_resource_handle@0.1.1
	link-section@0.19.3
	linktime-proc-macro@0.2.3
	linux-raw-sys@0.12.1
	litemap@0.8.3
	litrs@1.0.0
	lock_api@0.4.14
	log@0.4.34
	loop9@0.1.5
	lru-slab@0.1.2
	lsp-types@0.97.0
	lyon@1.0.19
	lyon_algorithms@1.0.21
	lyon_geom@1.0.19
	lyon_path@1.0.19
	lyon_tessellation@1.0.21
	mac-notification-sys@0.6.15
	mac@0.1.1
	mach2@0.5.0
	malloc_buf@0.0.6
	markdown@1.0.0
	markup5ever@0.12.1
	markup5ever_rcdom@0.3.0
	matchers@0.2.0
	maybe-owned@0.3.4
	maybe-rayon@0.1.1
	md-5@0.10.6
	md-5@0.11.0
	memchr@2.8.3
	memmap2@0.9.11
	memoffset@0.9.1
	metal@0.33.0
	mime@0.3.17
	mime_guess@2.0.5
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	miniz_oxide@0.9.1
	mio@1.2.3
	moxcms@0.8.1
	naga@29.0.4
	ndk-sys@0.6.0+11769913
	new_debug_unreachable@1.0.6
	nix@0.31.3
	no_std_io2@0.9.4
	nom@7.1.3
	nom@8.0.0
	noop_proc_macro@0.3.0
	notify-rust@4.18.0
	notify-types@1.0.1
	notify@7.0.0
	ntapi@0.4.3
	nu-ansi-term@0.50.3
	num-bigint-dig@0.9.1
	num-bigint@0.4.8
	num-complex@0.4.6
	num-conv@0.2.2
	num-derive@0.4.2
	num-integer@0.1.47
	num-iter@0.1.46
	num-rational@0.4.2
	num-traits@0.2.19
	num@0.4.3
	num_cpus@1.17.0
	objc-foundation@0.1.1
	objc-sys@0.3.5
	objc2-app-kit@0.2.2
	objc2-app-kit@0.3.2
	objc2-cloud-kit@0.3.2
	objc2-core-audio-types@0.3.2
	objc2-core-audio@0.3.2
	objc2-core-data@0.2.2
	objc2-core-data@0.3.2
	objc2-core-foundation@0.3.2
	objc2-core-graphics@0.3.2
	objc2-core-image@0.2.2
	objc2-core-image@0.3.2
	objc2-core-location@0.3.2
	objc2-core-media@0.3.2
	objc2-core-text@0.3.2
	objc2-core-video@0.3.2
	objc2-encode@4.1.0
	objc2-foundation@0.2.2
	objc2-foundation@0.3.2
	objc2-io-kit@0.3.2
	objc2-io-surface@0.3.2
	objc2-metal@0.2.2
	objc2-metal@0.3.2
	objc2-quartz-core@0.2.2
	objc2-quartz-core@0.3.2
	objc2-screen-capture-kit@0.3.2
	objc2-user-notifications@0.3.2
	objc2@0.5.2
	objc2@0.6.4
	objc@0.2.7
	objc_exception@0.1.2
	objc_id@0.1.1
	object@0.36.7
	object@0.37.3
	once_cell@1.21.4
	once_cell_polyfill@1.70.2
	oo7@0.6.0
	open@5.4.3
	openssl-probe@0.2.1
	option-ext@0.2.0
	ordered-float@5.5.0
	ordered-stream@0.2.0
	outref@0.5.2
	p256@0.14.0
	p384@0.14.0
	p521@0.14.0
	parking@2.2.1
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	paste@1.0.15
	pastey@0.1.1
	pathfinder_geometry@0.5.1
	pathfinder_simd@0.5.6
	pbkdf2@0.12.2
	pbkdf2@0.13.0
	pem-rfc7468@1.0.0
	percent-encoding@2.3.2
	phf@0.11.3
	phf@0.13.1
	phf@0.14.0
	phf_codegen@0.11.3
	phf_generator@0.11.3
	phf_generator@0.13.1
	phf_generator@0.14.0
	phf_macros@0.13.1
	phf_macros@0.14.0
	phf_shared@0.11.3
	phf_shared@0.13.1
	phf_shared@0.14.0
	pico-args@0.5.0
	pin-project-internal@1.1.13
	pin-project-lite@0.2.17
	pin-project@1.1.13
	piper@0.2.5
	pkcs1@0.8.0-rc.4
	pkcs8@0.11.0
	pkg-config@0.3.34
	png@0.17.16
	png@0.18.1
	polling@3.11.0
	pollster@0.2.5
	pollster@0.4.0
	polycool@0.4.0
	polyval@0.7.3
	portable-atomic-util@0.2.7
	portable-atomic@1.15.0
	postage@0.5.0
	postcard@1.1.3
	potential_utf@0.1.6
	powerfmt@0.2.0
	ppv-lite86@0.2.21
	precomputed-hash@0.1.1
	presser@0.3.1
	prettyplease@0.2.37
	primefield@0.14.0
	primeorder@0.14.0
	proc-macro-crate@3.5.0
	proc-macro2@1.0.107
	profiling-procmacros@1.0.18
	profiling@1.0.18
	proptest-macro@0.6.0
	proptest@1.12.0
	pulp-wasm-simd-flag@0.1.1
	pulp@0.22.3
	pxfm@0.1.30
	qoi@0.4.1
	quick-error@1.2.3
	quick-error@2.0.1
	quick-xml@0.41.0
	quinn-proto@0.11.17
	quinn-udp@0.5.15
	quinn@0.11.11
	quote@1.0.47
	r-efi@5.3.0
	r-efi@6.0.0
	rand@0.10.2
	rand@0.8.8
	rand@0.9.5
	rand_chacha@0.3.1
	rand_chacha@0.9.0
	rand_core@0.10.1
	rand_core@0.6.4
	rand_core@0.9.5
	rand_pcg@0.10.2
	rand_xorshift@0.5.0
	range-alloc@0.1.5
	rangemap@1.8.0
	rav1e@0.8.1
	ravif@0.13.0
	raw-cpuid@11.6.0
	raw-window-handle@0.6.2
	raw-window-metal@1.1.0
	rayon-core@1.13.0
	rayon@1.12.0
	read-fonts@0.37.0
	read-fonts@0.41.0
	reborrow@0.5.5
	redox_syscall@0.5.18
	redox_users@0.4.6
	ref-cast-impl@1.0.27
	ref-cast@1.0.27
	regalloc2@0.11.2
	regex-automata@0.4.18
	regex-syntax@0.8.11
	regex@1.13.1
	relative-path@2.0.1
	renderdoc-sys@1.1.0
	resvg@0.46.0
	rfc6979@0.6.0
	rgb@0.8.53
	ring@0.17.14
	ropey@2.0.0-beta.1
	roxmltree@0.20.0
	roxmltree@0.21.1
	rsa@0.10.0-rc.18
	rustc-demangle@0.1.28
	rustc-hash@1.1.0
	rustc-hash@2.1.3
	rustc_version@0.4.1
	rustix-linux-procfs@0.1.1
	rustix@1.1.4
	rustls-native-certs@0.8.4
	rustls-pemfile@2.2.0
	rustls-pki-types@1.15.1
	rustls-webpki@0.103.15
	rustls@0.23.43
	rustversion@1.0.23
	rusty-fork@0.3.1
	rustybuzz@0.20.1
	ryu@1.0.23
	same-file@1.0.6
	schannel@0.1.29
	schemars@1.2.2
	schemars_derive@1.2.2
	scoped-tls@1.0.1
	scopeguard@1.2.0
	screencapturekit-sys@0.2.8
	screencapturekit@0.2.8
	seahash@4.1.0
	sec1@0.8.1
	security-framework-sys@2.17.0
	security-framework@3.7.0
	self_cell@1.3.0
	semver@1.0.28
	serde@1.0.229
	serde_bytes@0.11.19
	serde_core@1.0.229
	serde_derive@1.0.229
	serde_derive_internals@0.30.0
	serde_fmt@1.1.0
	serde_json@1.0.151
	serde_repr@0.1.21
	serde_spanned@0.6.9
	serde_spanned@1.1.1
	serde_urlencoded@0.7.1
	serde_yaml@0.9.34+deprecated
	serdect@0.4.3
	sha1@0.10.7
	sha1@0.11.0
	sha1_smol@1.0.1
	sha2@0.10.9
	sha2@0.11.0
	sharded-slab@0.1.7
	shlex@1.3.0
	shlex@2.0.1
	signal-hook-registry@1.4.8
	signature@3.0.0
	simd-adler32@0.3.10
	simd-json@0.18.1
	simd_helpers@0.1.0
	simdutf8@0.1.5
	simplecss@0.2.2
	siphasher@1.0.3
	skrifa@0.40.0
	skrifa@0.44.0
	slab@0.4.12
	slotmap@1.1.1
	smallvec@1.15.2
	smol@2.0.2
	smol_str@0.3.6
	socket2@0.6.5
	spin@0.10.1
	spin@0.9.9
	spirv@0.4.0+sdk-1.4.341.0
	spki@0.8.0
	stable_deref_trait@1.2.1
	static_assertions@1.1.0
	str_indices@0.4.4
	strict-num@0.1.1
	string_cache@0.8.9
	string_cache_codegen@0.5.4
	strsim@0.11.1
	strum@0.28.0
	strum_macros@0.28.0
	subtle@2.6.1
	sval@2.22.0
	sval_buffer@2.22.0
	sval_dynamic@2.22.0
	sval_fmt@2.22.0
	sval_json@2.22.0
	sval_nested@2.22.0
	sval_ref@2.22.0
	sval_serde@2.22.0
	svg_fmt@0.4.5
	svgtypes@0.16.1
	swash@0.2.10
	syn@2.0.119
	syn@3.0.4
	sync_wrapper@1.0.2
	synstructure@0.13.2
	syntect@5.3.0
	sys-locale@0.3.2
	sysinfo@0.31.4
	sysinfo@0.37.2
	system-configuration-sys@0.6.0
	system-configuration@0.6.1
	tao-core-video-sys@0.2.0
	target-lexicon@0.13.5
	tauri-winrt-notification@0.7.3
	tempfile@3.27.0
	tendril@0.4.3
	termcolor@1.4.1
	thiserror-impl@1.0.69
	thiserror-impl@2.0.20
	thiserror@1.0.69
	thiserror@2.0.20
	thread_local@1.1.10
	tiff@0.11.3
	time-core@0.1.9
	time@0.3.55
	tiny-keccak@2.0.2
	tiny-skia-path@0.11.4
	tiny-skia@0.11.4
	tinystr@0.8.4
	tinyvec@1.12.0
	tinyvec_macros@0.1.1
	tokio-macros@2.7.2
	tokio-rustls@0.26.4
	tokio-socks@0.5.3
	tokio-util@0.7.19
	tokio@1.53.1
	toml@0.8.23
	toml@1.1.5+spec-1.1.0
	toml_datetime@0.6.11
	toml_datetime@1.1.1+spec-1.1.0
	toml_edit@0.22.27
	toml_edit@0.25.13+spec-1.1.0
	toml_parser@1.1.3+spec-1.1.0
	toml_write@0.1.2
	toml_writer@1.1.2+spec-1.1.0
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.5.3
	tracing-attributes@0.1.31
	tracing-core@0.1.36
	tracing-log@0.2.0
	tracing-subscriber@0.3.23
	tracing@0.1.44
	try-lock@0.2.5
	ttf-parser@0.25.1
	tungstenite@0.29.0
	typeid@1.0.3
	typenum@1.20.1
	uds_windows@1.2.1
	unarray@0.1.4
	unicase@2.9.0
	unicode-bidi-mirroring@0.4.0
	unicode-bidi@0.3.18
	unicode-ccc@0.4.0
	unicode-id@0.3.6
	unicode-ident@1.0.24
	unicode-linebreak@0.1.5
	unicode-properties@0.1.3
	unicode-script@0.5.8
	unicode-segmentation@1.13.3
	unicode-vo@0.1.0
	unicode-width@0.2.2
	unicode-xid@0.2.6
	universal-hash@0.6.1
	unsafe-libyaml@0.2.11
	untrusted@0.9.0
	url@2.5.8
	usvg@0.46.0
	utf-8@0.7.6
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.26.0
	v_frame@0.3.9
	valuable@0.1.1
	value-bag-serde1@1.14.1
	value-bag-sval2@1.14.1
	value-bag@1.14.1
	value-trait@0.12.2
	version_check@0.9.5
	vsimd@0.8.0
	vswhom-sys@0.1.3
	vswhom@0.1.0
	wait-timeout@0.2.1
	waker-fn@1.2.0
	walkdir@2.5.0
	want@0.3.1
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.4+wasi-0.2.12
	wasm-bindgen-futures@0.4.71
	wasm-bindgen-macro-support@0.2.121
	wasm-bindgen-macro@0.2.121
	wasm-bindgen-shared@0.2.121
	wasm-bindgen@0.2.121
	wasm-streams@0.4.2
	wasm_thread@0.3.3
	wayland-backend@0.3.17
	wayland-client@0.31.15
	wayland-cursor@0.31.14
	wayland-protocols-plasma@0.3.12
	wayland-protocols-wlr@0.3.12
	wayland-protocols@0.32.13
	wayland-scanner@0.31.11
	wayland-sys@0.31.11
	web-sys@0.3.98
	web-time@1.1.0
	webpki-roots@0.26.11
	webpki-roots@1.0.10
	weezl@0.1.12
	wgpu-core-deps-apple@29.0.4
	wgpu-core-deps-emscripten@29.0.4
	wgpu-core-deps-wasm@29.0.4
	wgpu-core-deps-windows-linux-android@29.0.4
	wgpu-core@29.0.4
	wgpu-hal@29.0.4
	wgpu-naga-bridge@29.0.4
	wgpu-types@29.0.4
	wgpu@29.0.4
	which@8.0.6
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.11
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-capture@1.4.2
	windows-collections@0.2.0
	windows-collections@0.3.2
	windows-core@0.54.0
	windows-core@0.58.0
	windows-core@0.61.2
	windows-core@0.62.2
	windows-future@0.2.1
	windows-future@0.3.2
	windows-implement@0.58.0
	windows-implement@0.60.2
	windows-interface@0.58.0
	windows-interface@0.59.3
	windows-link@0.1.3
	windows-link@0.2.1
	windows-numerics@0.2.0
	windows-numerics@0.3.1
	windows-registry@0.4.0
	windows-registry@0.6.1
	windows-result@0.1.2
	windows-result@0.2.0
	windows-result@0.3.4
	windows-result@0.4.1
	windows-strings@0.1.0
	windows-strings@0.3.1
	windows-strings@0.4.2
	windows-strings@0.5.1
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-sys@0.60.2
	windows-sys@0.61.2
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows-targets@0.53.5
	windows-threading@0.1.0
	windows-threading@0.2.1
	windows-version@0.1.7
	windows@0.54.0
	windows@0.58.0
	windows@0.61.3
	windows@0.62.2
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_gnullvm@0.53.1
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_aarch64_msvc@0.53.1
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnu@0.53.1
	windows_i686_gnullvm@0.52.6
	windows_i686_gnullvm@0.53.1
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_i686_msvc@0.53.1
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnu@0.53.1
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_gnullvm@0.53.1
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	windows_x86_64_msvc@0.53.1
	winnow@0.7.15
	winnow@1.0.4
	winreg@0.55.0
	winresource@0.1.34
	winx@0.36.4
	wio@0.2.2
	wit-bindgen@0.57.1
	wnaf@0.14.0
	writeable@0.6.4
	x11@2.21.0
	x11rb-protocol@0.13.2
	x11rb@0.13.2
	x25519-dalek@3.0.0
	xcb@1.7.1
	xcursor@0.3.11
	xim-parser@0.2.2
	xkbcommon@0.8.0
	xkeysym@0.2.1
	xml-rs@0.8.29
	xml5ever@0.18.1
	xmlwriter@0.1.0
	y4m@0.8.0
	yazi@0.2.1
	yeslogic-fontconfig-sys@6.0.1
	yoke-derive@0.8.2
	yoke@0.8.3
	zbus-lockstep-macros@0.5.2
	zbus-lockstep@0.5.2
	zbus@5.19.0
	zbus_macros@5.19.0
	zbus_names@4.3.4
	zbus_xml@5.2.1
	zcheapstr@1.1.0
	zed-font-kit@0.14.1-zed
	zed-scap@0.0.8-zed
	zeno@0.3.3
	zerocopy-derive@0.8.56
	zerocopy@0.8.56
	zerofrom-derive@0.1.7
	zerofrom@0.1.8
	zeroize@1.9.0
	zeroize_derive@1.5.0
	zerotrie@0.2.5
	zerovec-derive@0.11.6
	zerovec@0.11.8
	zlib-rs@0.6.7
	zmij@1.0.23
	zstd-safe@7.2.4
	zstd-sys@2.0.16+zstd.1.5.7
	zstd@0.13.3
	zune-core@0.5.3
	zune-inflate@0.2.54
	zune-jpeg@0.5.15
	zvariant@5.15.0
	zvariant_derive@5.15.0
	zvariant_utils@4.2.0
"

declare -A GIT_CRATES=(
	[llrt_abort]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_abort'
	[llrt_async_hooks]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_async_hooks'
	[llrt_buffer]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_buffer'
	[llrt_build]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_build'
	[llrt_compression]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_compression'
	[llrt_context]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_context'
	[llrt_crypto]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_crypto'
	[llrt_encoding]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_encoding'
	[llrt_events]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_events'
	[llrt_exceptions]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_exceptions'
	[llrt_hooking]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_hooking'
	[llrt_json]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_json'
	[llrt_path]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_path'
	[llrt_stream_web]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_stream_web'
	[llrt_timers]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_timers'
	[llrt_url]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_url'
	[llrt_utils]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/libs/llrt_utils'
	[llrt_zlib]='https://github.com/awslabs/llrt;7b95c82a9b15e7ddfb2778eca4b5a63111e74f51;llrt-%commit%/modules/llrt_zlib'
	[quickjs-jit-core]='https://github.com/longbridge/quickjs-jit;96593cd7a54440ac060a391b8baea7e9a3cf1393;quickjs-jit-%commit%/core'
	[quickjs-jit-macro]='https://github.com/longbridge/quickjs-jit;96593cd7a54440ac060a391b8baea7e9a3cf1393;quickjs-jit-%commit%/macro'
	[quickjs-jit-stdlib]='https://github.com/longbridge/quickjs-jit;605da483611a3548edb8c33fdff602e3f5f42076;quickjs-jit-%commit%/stdlib'
	[quickjs-jit-sys]='https://github.com/longbridge/quickjs-jit;96593cd7a54440ac060a391b8baea7e9a3cf1393;quickjs-jit-%commit%/sys'
	[quickjs-jit]='https://github.com/longbridge/quickjs-jit;96593cd7a54440ac060a391b8baea7e9a3cf1393;quickjs-jit-%commit%'
)

inherit cargo desktop llvm-r2 xdg zig-utils

GHOSTTY_COMMIT="291fd050b9e9c293c8adb6a140742649b7e42d3a"
AROCC_COMMIT="f97cdfc3779aec4b242299e2fc9a1c828c3547c6"
ZIGIMG_COMMIT="d695acd97c02e57bb151e8f659d1280f5cd6ca70"
VAXIS_UUCODE_COMMIT="2826a37a4562284fdacd8fa029d49509cc9bffcd"
QUICKJS_COMMIT="fd0a0210b7be00957751871e7e01b8291268fc29"
QUICKJS_JIT_COMMIT="96593cd7a54440ac060a391b8baea7e9a3cf1393"
GHOSTTY_DEPS_URI="https://deps.files.ghostty.org"
PLASMA_WAYLAND_HASH="12207e0851c12acdeee0991e893e0132fc87bb763969a585dc16ecca33e88334c566"

DESCRIPTION="Desktop app for persistent terminals and coding agents"
HOMEPAGE="https://herdr.dev/ https://github.com/herdrdev/herdr-app"
SRC_URI="
	https://github.com/herdrdev/herdr-app/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/ghostty-org/ghostty/archive/${GHOSTTY_COMMIT}.tar.gz -> ${P}-ghostty.tar.gz
	https://github.com/quickjs-ng/quickjs/archive/${QUICKJS_COMMIT}.tar.gz -> ${P}-quickjs.tar.gz
	https://github.com/vancluever/arocc/archive/${AROCC_COMMIT}.tar.gz -> ${P}-arocc.tar.gz
	https://github.com/zigimg/zigimg/archive/${ZIGIMG_COMMIT}.tar.gz -> ${P}-zigimg.tar.gz
	https://github.com/jacobsandlund/uucode/archive/${VAXIS_UUCODE_COMMIT}.tar.gz
		-> ${P}-vaxis-uucode.tar.gz
	https://codeberg.org/vancluever/translate-c/archive/4e879eb8aba615de112eabd1231ea6e01920cead.tar.gz
		-> ${P}-4e879eb8aba615de112eabd1231ea6e01920cead.tar.gz
	${GHOSTTY_DEPS_URI}/DearBindings_v0.17_ImGui_v1.92.5-docking.tar.gz
		-> ${P}-DearBindings_v0.17_ImGui_v1.92.5-docking.tar.gz
	${GHOSTTY_DEPS_URI}/JetBrainsMono-2.304.tar.gz -> ${P}-JetBrainsMono-2.304.tar.gz
	${GHOSTTY_DEPS_URI}/N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI.tar.gz
		-> ${P}-N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI.tar.gz
	${GHOSTTY_DEPS_URI}/N-V-__8AAFdWDwA0ktbNUi9pFBHCRN4weXIgIfCrVjfGxqgA.tar.gz
		-> ${P}-N-V-__8AAFdWDwA0ktbNUi9pFBHCRN4weXIgIfCrVjfGxqgA.tar.gz
	${GHOSTTY_DEPS_URI}/NerdFontsSymbolsOnly-3.4.0.tar.gz -> ${P}-NerdFontsSymbolsOnly-3.4.0.tar.gz
	${GHOSTTY_DEPS_URI}/breakpad-b99f444ba5f6b98cac261cbb391d8766b34a5918.tar.gz
		-> ${P}-breakpad-b99f444ba5f6b98cac261cbb391d8766b34a5918.tar.gz
	${GHOSTTY_DEPS_URI}/freetype-1220b81f6ecfb3fd222f76cf9106fecfa6554ab07ec7fdc4124b9bb063ae2adf969d.tar.gz
		-> ${P}-freetype-1220b81f6ecfb3fd222f76cf9106fecfa6554ab07ec7fdc4124b9bb063ae2adf969d.tar.gz
	${GHOSTTY_DEPS_URI}/gettext-0.24.tar.gz -> ${P}-gettext-0.24.tar.gz
	${GHOSTTY_DEPS_URI}/ghostty-themes-release-20261005-151109-31756e7.tgz
		-> ${P}-ghostty-themes-release-20261005-151109-31756e7.tgz
	${GHOSTTY_DEPS_URI}/glslang-12201278a1a05c0ce0b6eb6026c65cd3e9247aa041b1c260324bf29cee559dd23ba1.tar.gz
		-> ${P}-glslang-12201278a1a05c0ce0b6eb6026c65cd3e9247aa041b1c260324bf29cee559dd23ba1.tar.gz
	${GHOSTTY_DEPS_URI}/gobject-2026-07-28-36-1.tar.zst -> ${P}-gobject-2026-07-28-36-1.tar.zst
	${GHOSTTY_DEPS_URI}/gtk4-layer-shell-1.1.0.tar.gz -> ${P}-gtk4-layer-shell-1.1.0.tar.gz
	${GHOSTTY_DEPS_URI}/harfbuzz-11.0.0.tar.xz -> ${P}-harfbuzz-11.0.0.tar.xz
	${GHOSTTY_DEPS_URI}/highway-66486a10623fa0d72fe91260f96c892e41aceb06.tar.gz
		-> ${P}-highway-66486a10623fa0d72fe91260f96c892e41aceb06.tar.gz
	${GHOSTTY_DEPS_URI}/libpng-1220aa013f0c83da3fb64ea6d327f9173fa008d10e28bc9349eac3463457723b1c66.tar.gz
		-> ${P}-libpng-1220aa013f0c83da3fb64ea6d327f9173fa008d10e28bc9349eac3463457723b1c66.tar.gz
	${GHOSTTY_DEPS_URI}/libxev-9ce8e8e6ff89e583258a7f8e7adeeeaeae8611bf.tar.gz
		-> ${P}-libxev-9ce8e8e6ff89e583258a7f8e7adeeeaeae8611bf.tar.gz
	${GHOSTTY_DEPS_URI}/libxml2-2.11.5.tar.gz -> ${P}-libxml2-2.11.5.tar.gz
	${GHOSTTY_DEPS_URI}/oniguruma-1220c15e72eadd0d9085a8af134904d9a0f5dfcbed5f606ad60edc60ebeccd9706bb.tar.gz
		-> ${P}-oniguruma-1220c15e72eadd0d9085a8af134904d9a0f5dfcbed5f606ad60edc60ebeccd9706bb.tar.gz
	${GHOSTTY_DEPS_URI}/pixels-12207ff340169c7d40c570b4b6a97db614fe47e0d83b5801a932dcd44917424c8806.tar.gz
		-> ${P}-pixels-12207ff340169c7d40c570b4b6a97db614fe47e0d83b5801a932dcd44917424c8806.tar.gz
	${GHOSTTY_DEPS_URI}/plasma_wayland_protocols-${PLASMA_WAYLAND_HASH}.tar.gz
		-> ${P}-plasma_wayland_protocols-12207e0851c12acdeee0991e893e0132fc87bb763969a585dc16ecca33e88334c566.tar.gz
	${GHOSTTY_DEPS_URI}/sentry-1220446be831adcca918167647c06c7b825849fa3fba5f22da394667974537a9c77e.tar.gz
		-> ${P}-sentry-1220446be831adcca918167647c06c7b825849fa3fba5f22da394667974537a9c77e.tar.gz
	${GHOSTTY_DEPS_URI}/spirv_cross-1220fb3b5586e8be67bc3feb34cbe749cf42a60d628d2953632c2f8141302748c8da.tar.gz
		-> ${P}-spirv_cross-1220fb3b5586e8be67bc3feb34cbe749cf42a60d628d2953632c2f8141302748c8da.tar.gz
	${GHOSTTY_DEPS_URI}/vaxis-1dbbe575dff4586fe51e3217aa5c3fecdcbb6089.tar.gz
		-> ${P}-vaxis-1dbbe575dff4586fe51e3217aa5c3fecdcbb6089.tar.gz
	${GHOSTTY_DEPS_URI}/wayland-0.6.0-lQa1kqz8AQADQmdNJsNhLoNHcnEGEUjrOaPV-dtEnEmX.tar.gz
		-> ${P}-wayland-0.6.0-lQa1kqz8AQADQmdNJsNhLoNHcnEGEUjrOaPV-dtEnEmX.tar.gz
	${GHOSTTY_DEPS_URI}/wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.gz
		-> ${P}-wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.gz
	${GHOSTTY_DEPS_URI}/wayland-protocols-258d8f88f2c8c25a830c6316f87d23ce1a0f12d9.tar.gz
		-> ${P}-wayland-protocols-258d8f88f2c8c25a830c6316f87d23ce1a0f12d9.tar.gz
	${GHOSTTY_DEPS_URI}/wuffs-7411f488fe2e2c205c3d3b3d28638b7356522930.tar.gz
		-> ${P}-wuffs-7411f488fe2e2c205c3d3b3d28638b7356522930.tar.gz
	${GHOSTTY_DEPS_URI}/z2d-7dbae85c81784dba9988320bf9543ed9a81350c8.tar.gz
		-> ${P}-z2d-7dbae85c81784dba9988320bf9543ed9a81350c8.tar.gz
	${GHOSTTY_DEPS_URI}/zf-c35c421f84895193246db06c40683c1a30e616ef.tar.gz
		-> ${P}-zf-c35c421f84895193246db06c40683c1a30e616ef.tar.gz
	${GHOSTTY_DEPS_URI}/zig_js-3c23860e47fdcdc5af805efb7fd0bdac5fd3e9bc.tar.gz
		-> ${P}-zig_js-3c23860e47fdcdc5af805efb7fd0bdac5fd3e9bc.tar.gz
	${GHOSTTY_DEPS_URI}/zig_objc-c8de82ff80281215ad92900866dab7103a8efa8b.tar.gz
		-> ${P}-zig_objc-c8de82ff80281215ad92900866dab7103a8efa8b.tar.gz
	${GHOSTTY_DEPS_URI}/zlib-1220fed0c74e1019b3ee29edae2051788b080cd96e90d56836eea857b0b966742efb.tar.gz
		-> ${P}-zlib-1220fed0c74e1019b3ee29edae2051788b080cd96e90d56836eea857b0b966742efb.tar.gz
	https://github.com/jacobsandlund/uucode/archive/9d55524551411b493cca41ca06363625d90aff1e.tar.gz
		-> ${P}-9d55524551411b493cca41ca06363625d90aff1e.tar.gz
	https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/2.18.3/fontconfig-2.18.3.tar.xz
		-> ${P}-fontconfig-2.18.3.tar.xz
	${CARGO_CRATE_URIS}
"

LICENSE="Apache-2.0"
# Dependent crate and vendored Ghostty licenses
LICENSE+="
	Apache-2.0-with-LLVM-exceptions BSD BSD-2 CC0-1.0 CDLA-Permissive-2.0
	FTL ISC MIT MPL-2.0 OFL-1.1 UoI-NCSA Unicode-3.0 ZLIB BZIP2 libpng
"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" # Upstream GUI tests need a headless Vulkan setup.

DEPEND="
	dev-libs/wayland
	media-libs/fontconfig
	media-libs/freetype
	media-libs/vulkan-loader
	x11-libs/libxcb
	x11-libs/libxkbcommon
"
RDEPEND="
	${DEPEND}
	>=app-misc/herdr-core-0.1.11
"
BDEPEND="
	dev-util/pkgconf
	$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}=')
	|| (
		=dev-lang/zig-0.16.0*[llvm(+)]
		=dev-lang/zig-bin-0.16.0*
	)
"

ZIG_DISTFILES=(
	"${P}-arocc.tar.gz"
	"${P}-zigimg.tar.gz"
	"${P}-vaxis-uucode.tar.gz"
	"${P}-4e879eb8aba615de112eabd1231ea6e01920cead.tar.gz"
	"${P}-DearBindings_v0.17_ImGui_v1.92.5-docking.tar.gz"
	"${P}-JetBrainsMono-2.304.tar.gz"
	"${P}-N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI.tar.gz"
	"${P}-N-V-__8AAFdWDwA0ktbNUi9pFBHCRN4weXIgIfCrVjfGxqgA.tar.gz"
	"${P}-NerdFontsSymbolsOnly-3.4.0.tar.gz"
	"${P}-breakpad-b99f444ba5f6b98cac261cbb391d8766b34a5918.tar.gz"
	"${P}-freetype-1220b81f6ecfb3fd222f76cf9106fecfa6554ab07ec7fdc4124b9bb063ae2adf969d.tar.gz"
	"${P}-gettext-0.24.tar.gz"
	"${P}-ghostty-themes-release-20261005-151109-31756e7.tgz"
	"${P}-glslang-12201278a1a05c0ce0b6eb6026c65cd3e9247aa041b1c260324bf29cee559dd23ba1.tar.gz"
	"${P}-gobject-2026-07-28-36-1.tar.zst"
	"${P}-gtk4-layer-shell-1.1.0.tar.gz"
	"${P}-harfbuzz-11.0.0.tar.xz"
	"${P}-highway-66486a10623fa0d72fe91260f96c892e41aceb06.tar.gz"
	"${P}-libpng-1220aa013f0c83da3fb64ea6d327f9173fa008d10e28bc9349eac3463457723b1c66.tar.gz"
	"${P}-libxev-9ce8e8e6ff89e583258a7f8e7adeeeaeae8611bf.tar.gz"
	"${P}-libxml2-2.11.5.tar.gz"
	"${P}-oniguruma-1220c15e72eadd0d9085a8af134904d9a0f5dfcbed5f606ad60edc60ebeccd9706bb.tar.gz"
	"${P}-pixels-12207ff340169c7d40c570b4b6a97db614fe47e0d83b5801a932dcd44917424c8806.tar.gz"
	"${P}-plasma_wayland_protocols-12207e0851c12acdeee0991e893e0132fc87bb763969a585dc16ecca33e88334c566.tar.gz"
	"${P}-sentry-1220446be831adcca918167647c06c7b825849fa3fba5f22da394667974537a9c77e.tar.gz"
	"${P}-spirv_cross-1220fb3b5586e8be67bc3feb34cbe749cf42a60d628d2953632c2f8141302748c8da.tar.gz"
	"${P}-vaxis-1dbbe575dff4586fe51e3217aa5c3fecdcbb6089.tar.gz"
	"${P}-wayland-0.6.0-lQa1kqz8AQADQmdNJsNhLoNHcnEGEUjrOaPV-dtEnEmX.tar.gz"
	"${P}-wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.gz"
	"${P}-wayland-protocols-258d8f88f2c8c25a830c6316f87d23ce1a0f12d9.tar.gz"
	"${P}-wuffs-7411f488fe2e2c205c3d3b3d28638b7356522930.tar.gz"
	"${P}-z2d-7dbae85c81784dba9988320bf9543ed9a81350c8.tar.gz"
	"${P}-zf-c35c421f84895193246db06c40683c1a30e616ef.tar.gz"
	"${P}-zig_js-3c23860e47fdcdc5af805efb7fd0bdac5fd3e9bc.tar.gz"
	"${P}-zig_objc-c8de82ff80281215ad92900866dab7103a8efa8b.tar.gz"
	"${P}-zlib-1220fed0c74e1019b3ee29edae2051788b080cd96e90d56836eea857b0b966742efb.tar.gz"
	"${P}-9d55524551411b493cca41ca06363625d90aff1e.tar.gz"
	"${P}-fontconfig-2.18.3.tar.xz"
)

pkg_setup() {
	llvm-r2_pkg_setup
	rust_pkg_setup
	zig-utils_setup
}

src_prepare() {
	default
	rm -r vendor/ghostty || die
	mv "${WORKDIR}/ghostty-${GHOSTTY_COMMIT}" vendor/ghostty || die
	rm -r "${WORKDIR}/quickjs-jit-${QUICKJS_JIT_COMMIT}/sys/quickjs" || die
	mv "${WORKDIR}/quickjs-${QUICKJS_COMMIT}" \
		"${WORKDIR}/quickjs-jit-${QUICKJS_JIT_COMMIT}/sys/quickjs" || die

	pushd vendor/ghostty >/dev/null || die
	local archive
	for archive in "${ZIG_DISTFILES[@]}"; do
		ZIG_GLOBAL_CACHE_DIR="${T}/zig-packages" \
			"${ZIG_EXE}" fetch --global-cache-dir "${T}/zig-packages" \
			"file://${DISTDIR}/${archive}" || die
	done
	popd >/dev/null || die
}

src_compile() {
	local -x ZIG="${ZIG_EXE}"
	local -x ZIG_GLOBAL_CACHE_DIR="${T}/zig-packages"
	local -x ZIG_LOCAL_CACHE_DIR="${T}/zig-local-cache"
	cargo_src_compile
}

src_install() {
	exeinto /usr/bin
	doexe "$(cargo_target_dir)/${PN}"
	newicon -s scalable assets/icons/herdr-ui-icon-clean.svg herdr-app.svg
	make_desktop_entry "${PN}" "Herdr" "herdr-app" "Development;"
	dodoc THIRD-PARTY-NOTICES
}