423 lines
14 KiB
Bash
423 lines
14 KiB
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CRATES="
|
|
adler2@2.0.1
|
|
android_system_properties@0.1.5
|
|
anyhow@1.0.103
|
|
arrayref@0.3.9
|
|
arrayvec@0.7.8
|
|
async-broadcast@0.7.2
|
|
async-channel@2.5.0
|
|
async-executor@1.14.1
|
|
async-io@2.6.0
|
|
async-lock@3.4.2
|
|
async-process@2.5.0
|
|
async-recursion@1.1.1
|
|
async-signal@0.2.14
|
|
async-task@4.7.1
|
|
async-trait@0.1.89
|
|
atomic-waker@1.1.2
|
|
atspi-common@0.13.0
|
|
atspi-connection@0.13.0
|
|
atspi-proxies@0.13.0
|
|
atspi@0.29.0
|
|
autocfg@1.5.0
|
|
axum-core@0.5.6
|
|
axum@0.8.9
|
|
base64@0.22.1
|
|
base64@0.23.1
|
|
bitflags@2.11.1
|
|
bitvec@1.0.1
|
|
block-buffer@0.12.1
|
|
blocking@1.6.2
|
|
bstr@1.13.1
|
|
bumpalo@3.20.2
|
|
bytemuck@1.25.0
|
|
bytemuck_derive@1.12.1
|
|
byteorder-lite@0.1.0
|
|
bytes@1.11.1
|
|
calloop-wayland-source@0.4.1
|
|
calloop@0.14.5
|
|
cc@1.2.62
|
|
cfg-if@1.0.4
|
|
cfg_aliases@0.2.1
|
|
chacha20@0.10.2
|
|
chrono@0.4.44
|
|
concurrent-queue@2.5.0
|
|
const-oid@0.10.2
|
|
core-foundation-sys@0.8.7
|
|
cosmic-protocols@0.2.0
|
|
cpufeatures@0.3.0
|
|
crc32fast@1.5.0
|
|
crossbeam-utils@0.8.21
|
|
crypto-common@0.2.2
|
|
cursor-icon@1.2.0
|
|
darling@0.24.1
|
|
darling_core@0.24.1
|
|
darling_macro@0.24.1
|
|
debug-fn@1.0.0
|
|
digest@0.11.3
|
|
downcast-rs@1.2.1
|
|
dyn-clone@1.0.20
|
|
endi@1.1.1
|
|
enumflags2@0.7.12
|
|
enumflags2_derive@0.7.12
|
|
equivalent@1.0.2
|
|
errno@0.3.14
|
|
evdev@0.13.2
|
|
event-listener-strategy@0.5.4
|
|
event-listener@5.4.2
|
|
fastrand@2.4.1
|
|
fdeflate@0.3.7
|
|
find-msvc-tools@0.1.9
|
|
flate2@1.1.9
|
|
foldhash@0.1.5
|
|
foldhash@0.2.0
|
|
font-types@0.11.3
|
|
funty@2.0.0
|
|
futures-channel@0.3.32
|
|
futures-core@0.3.32
|
|
futures-executor@0.3.32
|
|
futures-io@0.3.32
|
|
futures-lite@2.6.1
|
|
futures-macro@0.3.32
|
|
futures-sink@0.3.32
|
|
futures-task@0.3.32
|
|
futures-util@0.3.32
|
|
futures@0.3.32
|
|
gethostname@1.1.0
|
|
getrandom@0.4.2
|
|
hashbrown@0.15.5
|
|
hashbrown@0.17.1
|
|
heck@0.5.0
|
|
hermit-abi@0.5.2
|
|
hex@0.4.3
|
|
http-body-util@0.1.5
|
|
http-body@1.1.0
|
|
http@1.5.0
|
|
httparse@1.10.1
|
|
httpdate@1.0.3
|
|
hybrid-array@0.4.14
|
|
hyper-util@0.1.21
|
|
hyper@1.12.0
|
|
iana-time-zone-haiku@0.1.2
|
|
iana-time-zone@0.1.65
|
|
id-arena@2.3.0
|
|
ident_case@1.0.1
|
|
image@0.25.10
|
|
indexmap@2.14.0
|
|
isnt@0.2.0
|
|
itoa@1.0.18
|
|
js-sys@0.3.98
|
|
kbvm-proc@0.3.0
|
|
kbvm@0.2.0
|
|
leb128fmt@0.1.0
|
|
libc@0.2.186
|
|
libmimalloc-sys@0.1.49
|
|
linearize-derive@0.2.2
|
|
linearize@0.1.8
|
|
linux-raw-sys@0.12.1
|
|
log@0.4.29
|
|
matchit@0.8.4
|
|
memchr@2.8.0
|
|
memmap2@0.9.11
|
|
memoffset@0.9.1
|
|
mimalloc@0.1.52
|
|
mime@0.3.18
|
|
miniz_oxide@0.8.9
|
|
mio@1.2.0
|
|
moxcms@0.8.1
|
|
nix@0.29.0
|
|
num-traits@0.2.19
|
|
once_cell@1.21.4
|
|
ordered-stream@0.2.0
|
|
parking@2.2.1
|
|
pastey@0.2.2
|
|
percent-encoding@2.3.2
|
|
pin-project-lite@0.2.17
|
|
piper@0.2.5
|
|
pkg-config@0.3.33
|
|
png@0.18.1
|
|
polling@3.11.0
|
|
prettyplease@0.2.37
|
|
proc-macro-crate@3.5.0
|
|
proc-macro2@1.0.106
|
|
pxfm@0.1.29
|
|
quick-xml@0.39.4
|
|
quote@1.0.45
|
|
r-efi@6.0.0
|
|
radium@0.7.0
|
|
rand@0.10.3
|
|
rand_core@0.10.1
|
|
read-fonts@0.39.2
|
|
ref-cast-impl@1.0.25
|
|
ref-cast@1.0.25
|
|
reis@0.7.1
|
|
rmcp-macros@3.9.0
|
|
rmcp@3.9.0
|
|
rustix@1.1.6
|
|
rustversion@1.0.22
|
|
schemars@1.2.1
|
|
schemars_derive@1.2.1
|
|
secure-execution@0.1.0
|
|
semver@1.0.28
|
|
serde@1.0.228
|
|
serde_core@1.0.228
|
|
serde_derive@1.0.228
|
|
serde_derive_internals@0.29.1
|
|
serde_json@1.0.149
|
|
serde_repr@0.1.20
|
|
sha2@0.11.0
|
|
shlex@1.3.0
|
|
signal-hook-registry@1.4.8
|
|
simd-adler32@0.3.9
|
|
skrifa@0.42.1
|
|
slab@0.4.12
|
|
smallvec@1.15.1
|
|
smithay-client-toolkit@0.21.1
|
|
socket2@0.6.3
|
|
sse-stream@0.2.6
|
|
static_assertions@1.1.0
|
|
strict-num@0.1.1
|
|
strsim@0.11.1
|
|
syn@2.0.117
|
|
syn@3.0.6
|
|
sync_wrapper@1.0.2
|
|
tap@1.0.1
|
|
tempfile@3.27.0
|
|
thiserror-impl@2.0.18
|
|
thiserror@2.0.18
|
|
tiny-skia-path@0.12.0
|
|
tiny-skia@0.12.0
|
|
tokio-macros@2.7.0
|
|
tokio-stream@0.1.19
|
|
tokio-util@0.7.18
|
|
tokio@1.53.3
|
|
toml_datetime@1.1.1+spec-1.1.0
|
|
toml_edit@0.25.11+spec-1.1.0
|
|
toml_parser@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@0.1.44
|
|
typenum@1.20.1
|
|
uds_windows@1.2.1
|
|
unicode-ident@1.0.24
|
|
unicode-width@0.2.3
|
|
unicode-xid@0.2.6
|
|
uuid@1.23.1
|
|
version_check@0.9.5
|
|
wasi@0.11.1+wasi-snapshot-preview1
|
|
wasip2@1.0.3+wasi-0.2.9
|
|
wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06
|
|
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-encoder@0.244.0
|
|
wasm-metadata@0.244.0
|
|
wasmparser@0.244.0
|
|
wayland-backend@0.3.15
|
|
wayland-client@0.31.14
|
|
wayland-csd-frame@0.3.0
|
|
wayland-cursor@0.31.14
|
|
wayland-protocols-experimental@20251230.0.3
|
|
wayland-protocols-misc@0.3.12
|
|
wayland-protocols-wlr@0.3.12
|
|
wayland-protocols@0.32.12
|
|
wayland-scanner@0.31.10
|
|
wayland-sys@0.31.11
|
|
windows-core@0.62.2
|
|
windows-implement@0.60.2
|
|
windows-interface@0.59.3
|
|
windows-link@0.2.1
|
|
windows-result@0.4.1
|
|
windows-strings@0.5.1
|
|
windows-sys@0.61.2
|
|
winnow@1.0.2
|
|
wit-bindgen-core@0.51.0
|
|
wit-bindgen-rust-macro@0.51.0
|
|
wit-bindgen-rust@0.51.0
|
|
wit-bindgen@0.51.0
|
|
wit-bindgen@0.57.1
|
|
wit-component@0.244.0
|
|
wit-parser@0.244.0
|
|
wyz@0.5.1
|
|
x11rb-protocol@0.14.0
|
|
x11rb@0.14.0
|
|
xcursor@0.3.11
|
|
xkeysym@0.2.1
|
|
zbus-lockstep-macros@0.5.2
|
|
zbus-lockstep@0.5.2
|
|
zbus@5.15.0
|
|
zbus_macros@5.15.0
|
|
zbus_names@4.3.2
|
|
zbus_xml@5.1.1
|
|
zmij@1.0.21
|
|
zune-core@0.5.1
|
|
zune-jpeg@0.5.15
|
|
zvariant@5.11.0
|
|
zvariant_derive@5.11.0
|
|
zvariant_utils@3.3.1
|
|
"
|
|
|
|
# Cargo.toml rust-version, set by the kbvm dependency
|
|
RUST_MIN_VER="1.95.0"
|
|
|
|
inherit cargo optfeature
|
|
|
|
DESCRIPTION="MCP server for agent control of a Linux desktop"
|
|
HOMEPAGE="https://github.com/agent-sh/computer-use-linux"
|
|
SRC_URI="
|
|
https://github.com/agent-sh/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
|
${CARGO_CRATE_URIS}
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
# Dependent crate licenses
|
|
LICENSE+="
|
|
0BSD
|
|
Apache-2.0
|
|
Apache-2.0-with-LLVM-exceptions
|
|
BSD
|
|
BSD-2
|
|
GPL-3
|
|
LGPL-2.1+
|
|
MIT
|
|
Unicode-3.0
|
|
Unlicense
|
|
ZLIB
|
|
"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
# at-spi2-core provides the AT-SPI registry the accessibility tree reads.
|
|
RDEPEND="app-accessibility/at-spi2-core"
|
|
|
|
QA_FLAGS_IGNORED="usr/bin/computer-use-linux-cosmic usr/bin/computer-use-linux-indicator"
|
|
|
|
src_install() {
|
|
cargo_src_install
|
|
insinto /usr/share/${PN}
|
|
doins -r skills
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "keyboard and pointer input on X11" x11-misc/xdotool
|
|
optfeature "window management on X11" x11-misc/wmctrl x11-apps/xprop
|
|
optfeature "input synthesis through uinput on Wayland" x11-misc/ydotool
|
|
optfeature "enabling the accessibility setting through gsettings" dev-libs/glib
|
|
optfeature "completion notifications" x11-libs/libnotify
|
|
optfeature "screenshots on wlr-screencopy compositors and in the Hyprland background mode" gui-apps/grim
|
|
}
|
|
|
|
src_test() {
|
|
# Most of these bind Unix sockets under a temp dir whose name exceeds
|
|
# sun_path when TMPDIR is as long as portage's. The fixtures that spawn the
|
|
# server under a private D-Bus session fail in the build sandbox.
|
|
# dbus-daemon refuses socket paths over 99 bytes, so the private bus of the
|
|
# remote_desktop portal tests do not start under portage's TMPDIR.
|
|
# The stalled clipboard pipe test passes alone but fails when it runs in
|
|
# parallel with the rest of the suite.
|
|
local CARGO_SKIP_TESTS=(
|
|
app_state_refuses_unfocused_target_before_capture
|
|
cosmic_focus_protocol_regressions
|
|
gnome_indicator_capture_regressions
|
|
hyprland_background_mode_never_focuses_the_target
|
|
diagnostics_impl::tests::ydotool_socket_check_accepts_datagram_socket
|
|
diagnostics_impl::tests::ydotool_socket_check_rejects_legacy_stream_socket
|
|
indicator::tests::capture_release_unlocks_an_inherited_descriptor
|
|
indicator::tests::captures_fail_when_a_running_overlay_does_not_reply
|
|
indicator::tests::captures_fail_while_a_stalled_overlay_cannot_be_told_to_hide
|
|
indicator::tests::captures_fail_when_the_capture_lock_cannot_be_taken
|
|
indicator::tests::captures_fail_without_a_client_socket_in_a_live_runtime
|
|
indicator::tests::captures_hold_the_lock_without_an_overlay
|
|
indicator::tests::captures_wait_only_while_the_overlay_was_on_screen
|
|
indicator::tests::concurrent_captures_do_not_consume_each_others_replies
|
|
indicator::tests::disabled_servers_still_hold_captures
|
|
indicator::tests::keycaps_mask_secret_focus_and_the_hide_text_setting
|
|
indicator::tests::overlays_can_answer_the_client_socket
|
|
indicator::tests::set_values_are_masked_even_when_the_cached_role_was_public
|
|
remote_desktop::tests::only_a_running_bus_can_report_the_remote_desktop_portal_missing
|
|
remote_desktop::tests::portal_response_codes_separate_a_cancellation_from_a_portal_that_fails
|
|
remote_desktop::clipboard::tests::nonblocking_read_timeout_closes_stalled_pipe_immediately
|
|
server::app_state_pid_scope_tests::app_state_keeps_pid_scope_when_window_lookup_fails
|
|
server::type_text_atspi_fallback_tests::a_two_group_keymap_refusal_types_through_atspi
|
|
server::tests::element_calls_naming_a_replaced_snapshot_send_nothing
|
|
server::tests::pointer_coordinate_backend_dispatch_is_safe
|
|
server::tests::stale_uinput_pointer_is_replaced
|
|
server::tests::uinput_monitor_gap_coordinate_gets_a_note
|
|
server::tests::uinput_scroll_sends_kernel_signed_wheel_without_ydotool
|
|
server::tests::untargeted_scroll_keeps_portal_start_error
|
|
server::tests::x11_monitor_gap_coordinate_gets_a_note
|
|
windowing::backends::kwin::transaction_tests::duplicate_callback_path_fails_without_disturbing_its_owner
|
|
windowing::backends::kwin::transaction_tests::transaction_times_out_and_cleans_up_when_callback_never_arrives
|
|
windowing::backends::kwin::transaction_tests::transaction_times_out_and_cleans_up_when_load_script_never_replies
|
|
windowing::backends::kwin::transaction_tests::transaction_times_out_and_cleans_up_when_start_never_replies
|
|
windowing::backends::niri::tests::discovery_refuses_other_sessions_and_ambiguous_sockets
|
|
windowing::backends::niri::tests::socket_reads_a_complete_line_without_waiting_for_eof
|
|
windowing::backends::niri::tests::socket_rejects_truncated_and_oversized_replies
|
|
ydotool::tests::implicit_socket_rejects_shared_tmp_and_wrong_owner
|
|
ydotool::tests::implicit_socket_requires_private_runtime_directory_and_socket
|
|
atspi_tree_impl::tests::editable_text_exact_readback_accepts_empty_whitespace_and_trailing_newline
|
|
atspi_tree_impl::tests::editable_text_missing_text_and_read_errors_are_structured_outcomes
|
|
atspi_tree_impl::tests::editable_text_negative_counts_and_stalled_readback_are_structured_outcomes
|
|
atspi_tree_impl::tests::editable_text_non_bmp_matching_count_does_not_accept_different_content
|
|
atspi_tree_impl::tests::editable_text_non_bmp_readback_supports_scalar_and_utf16_peers
|
|
atspi_tree_impl::tests::editable_text_normalization_mismatch_is_not_verified
|
|
atspi_tree_impl::tests::editable_text_readback_chunks_utf16_without_splitting_non_bmp
|
|
atspi_tree_impl::tests::editable_text_readback_waits_for_async_publication
|
|
atspi_tree_impl::tests::editable_text_rejection_and_mutation_errors_remain_errors
|
|
atspi_tree_impl::tests::editable_text_true_without_publication_is_mismatch_and_mutates_once
|
|
atspi_tree_impl::tests::focused_field_insert_bounds_each_edit_call
|
|
atspi_tree_impl::tests::focused_field_insert_checks_the_untouched_text
|
|
atspi_tree_impl::tests::focused_field_insert_is_exact_under_qt_length_rules
|
|
atspi_tree_impl::tests::focused_field_insert_lands_at_the_caret_and_reads_back
|
|
atspi_tree_impl::tests::focused_field_insert_needs_a_focused_editable_field
|
|
atspi_tree_impl::tests::focused_field_insert_needs_the_toolkit_for_non_ascii_text
|
|
atspi_tree_impl::tests::focused_field_insert_replaces_the_selection
|
|
atspi_tree_impl::tests::focused_field_insert_reports_a_readback_mismatch
|
|
atspi_tree_impl::tests::focused_field_insert_skips_password_fields
|
|
atspi_tree_impl::tests::focused_field_insert_stays_in_the_target_window
|
|
atspi_tree_impl::tests::indexed_actions_bound_untrusted_counts_before_reading_indices
|
|
atspi_tree_impl::tests::indexed_actions_time_out_the_entire_read
|
|
atspi_tree_impl::tests::indexed_children_resolve_webkit_names_on_the_accessibility_bus
|
|
atspi_tree_impl::tests::numeric_value_dispatch_remains_isolated_from_editable_text
|
|
atspi_tree_impl::tests::password_text_is_unverifiable_even_when_requested_text_is_bullets
|
|
atspi_tree_impl::tests::pid_roots_keep_all_toolkits_and_a_missing_pid_stays_empty
|
|
atspi_tree_impl::tests::qt_action_names_do_not_depend_on_localized_names
|
|
atspi_tree_impl::tests::text_snapshot_reads_selections_through_get_n_selections
|
|
gnome_extension::tests::system_migration_keeps_reload_warning_until_shell_changes_loaded_path
|
|
remote_desktop::eis_tests::gnome_fractional_pointer_reaches_full_eis_region
|
|
test_sockets::tests::a_private_bus_keeps_its_socket_in_its_dir_and_removes_both
|
|
virtual_pen::tests::kwin_emulate_tablet_blocker_reads_systemd_service_over_dbus
|
|
virtual_pen::tests::kwin_environ_proc_fixture_covers_hidepid_nixos_and_ppid_mismatch
|
|
virtual_pen::tests::kwin_environ_reads_wrapper_parent_when_kwin_is_non_dumpable
|
|
virtual_pen::tests::kwin_environ_refuses_non_wrapper_parent_and_reads_xwayland_child
|
|
screenshot_impl::tests::portal_capture_cleans_same_tick_picture_and_preserves_existing_name
|
|
screenshot_impl::tests::portal_capture_removes_new_invalid_returned_path
|
|
screenshot_impl::tests::portal_capture_removes_new_returned_path
|
|
server::tree_spill_server_tests::max_tree_bytes_keeps_the_prefix_that_fits
|
|
server::tree_spill_server_tests::an_index_past_the_inline_prefix_resolves_against_the_cached_tree
|
|
server::tree_spill_server_tests::max_tree_bytes_omitted_or_above_the_budget_is_fit_tree
|
|
server::tree_spill_server_tests::max_tree_bytes_zero_returns_no_nodes_but_names_the_cached_tree
|
|
tree_spill::tests::a_directory_others_can_write_is_refused
|
|
tree_spill::tests::a_new_spill_replaces_the_previous_one_and_a_new_snapshot_removes_it
|
|
tree_spill::tests::large_trees_spill_whole_and_keep_a_prefix_that_fits
|
|
tree_spill::tests::sweep_keeps_live_servers_and_removes_gone_or_reused_pids
|
|
tree_spill::tests::sweep_removes_files_older_than_an_hour
|
|
windowing::wayland_session::tests::identifies_the_connected_peer_without_environment_guessing
|
|
x11_agent_master_types_and_clicks_without_moving_the_user_focus
|
|
background_text_and_keys_reach_a_browser_tab_over_devtools
|
|
background_text_and_keys_reach_a_terminal_program_by_its_tty
|
|
background_text_and_keys_reach_an_atspi_element_without_focus
|
|
reload_is_required_only_for_changes_gnome_shell_runs
|
|
)
|
|
cargo_src_test
|
|
}
|