1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.2
20 android_system_properties@0.1.5
29 arg_enum_proc_macro@0.3.4
68 brotli-decompressor@2.5.1
76 bzip2-sys@0.1.11+1.0.8
96 cocoa-foundation@0.1.2
103 concurrent-queue@2.4.0
104 constant_time_eq@0.1.5
106 core-foundation-sys@0.8.6
107 core-foundation@0.9.4
108 core-graphics-types@0.1.3
114 crossbeam-channel@0.5.12
115 crossbeam-deque@0.8.5
116 crossbeam-epoch@0.9.18
117 crossbeam-utils@0.8.19
120 cssparser-macros@0.6.1
157 enumflags2_derive@0.7.9
160 event-listener-strategy@0.4.0
161 event-listener-strategy@0.5.1
167 fast_image_resize@3.0.4
179 foreign-types-macros@0.2.3
180 foreign-types-shared@0.1.1
181 foreign-types-shared@0.3.1
184 form_urlencoded@1.2.1
187 futures-channel@0.3.30
189 futures-executor@0.3.30
199 gdk-pixbuf-sys@0.15.10
203 gdkwayland-sys@0.15.3
248 iana-time-zone-haiku@0.1.2
249 iana-time-zone@0.1.60
265 interpolate_name@0.2.4
275 javascriptcore-rs-sys@0.4.0
276 javascriptcore-rs@0.16.0
288 lexical-parse-float@0.8.5
289 lexical-parse-integer@0.8.6
291 lexical-write-float@0.8.5
292 lexical-write-integer@0.8.5
293 libappindicator-sys@0.7.3
294 libappindicator@0.7.1
300 librocksdb-sys@0.16.0+8.10.0
303 linked-hash-map@0.5.6
312 mac-notification-sys@0.6.1
327 minimal-lexical@0.2.1
328 minisign-verify@0.2.1
337 new_debug_unreachable@1.0.6
344 noop_proc_macro@0.3.0
358 num_enum_derive@0.5.11
359 objc-foundation@0.1.1
373 openssl-src@300.2.3+3.2.1
386 parking_lot_core@0.9.9
392 percent-encoding@2.3.1
412 pin-project-internal@1.1.5
413 pin-project-lite@0.2.14
425 precomputed-hash@0.1.1
426 proc-macro-crate@1.3.1
427 proc-macro-error-attr@1.0.4
428 proc-macro-error@1.0.4
429 proc-macro-hack@0.5.20+deprecated
431 profiling-procmacros@1.0.15
448 raw-window-handle@0.5.2
449 raw-window-handle@0.6.0
456 regex-automata@0.1.10
471 rust-i18n-macro@3.0.0
472 rust-i18n-support@3.0.1
474 rustc-demangle@0.1.23
481 rustls-webpki@0.101.7
490 security-framework-sys@2.10.0
491 security-framework@2.10.0
503 serde_urlencoded@0.7.1
505 serde_with_macros@3.7.0
507 serde_yaml@0.9.34+deprecated
508 serialize-to-javascript-impl@0.1.1
509 serialize-to-javascript@0.1.1
518 signal-hook-registry@1.4.1
524 single-instance@0.3.3
528 smithay-client-toolkit@0.18.1
535 stable_deref_trait@1.2.0
537 static_assertions@1.1.0
539 string_cache_codegen@0.5.2
548 system-configuration-sys@0.5.0
549 system-configuration@0.5.1
555 target-lexicon@0.12.14
559 tauri-runtime-wry@0.14.5
563 tauri-winrt-notification@0.1.3
571 thiserror-impl@1.0.58
583 tokio-native-tls@0.3.1
585 tokio-tungstenite@0.21.0
595 tracing-appender@0.2.3
596 tracing-attributes@0.1.27
599 tracing-futures@0.2.5
602 tracing-subscriber@0.3.18
614 unicode-normalization@0.1.23
615 unicode-segmentation@1.11.0
616 unsafe-libyaml@0.2.11
626 version-compare@0.0.11
627 version-compare@0.2.0
636 wasi@0.11.0+wasi-snapshot-preview1
637 wasi@0.9.0+wasi-snapshot-preview1
638 wasm-bindgen-backend@0.2.92
639 wasm-bindgen-futures@0.4.42
640 wasm-bindgen-macro-support@0.2.92
641 wasm-bindgen-macro@0.2.92
642 wasm-bindgen-shared@0.2.92
645 wayland-backend@0.3.3
646 wayland-client@0.31.2
647 wayland-csd-frame@0.3.0
648 wayland-cursor@0.31.1
649 wayland-protocols-wlr@0.2.0
650 wayland-protocols@0.31.2
651 wayland-scanner@0.31.1
654 webkit2gtk-sys@0.18.0
657 webview2-com-macros@0.6.0
658 webview2-com-sys@0.19.0
665 winapi-i686-pc-windows-gnu@0.4.0
667 winapi-x86_64-pc-windows-gnu@0.4.0
670 window-vibrancy@0.5.0
671 windows-bindgen@0.39.0
675 windows-implement@0.39.0
676 windows-metadata@0.39.0
682 windows-targets@0.42.2
683 windows-targets@0.48.5
684 windows-targets@0.52.4
685 windows-tokens@0.39.0
686 windows-version@0.1.0
693 windows_aarch64_gnullvm@0.42.2
694 windows_aarch64_gnullvm@0.48.5
695 windows_aarch64_gnullvm@0.52.4
696 windows_aarch64_msvc@0.37.0
697 windows_aarch64_msvc@0.39.0
698 windows_aarch64_msvc@0.42.2
699 windows_aarch64_msvc@0.48.5
700 windows_aarch64_msvc@0.52.4
701 windows_i686_gnu@0.37.0
702 windows_i686_gnu@0.39.0
703 windows_i686_gnu@0.42.2
704 windows_i686_gnu@0.48.5
705 windows_i686_gnu@0.52.4
706 windows_i686_msvc@0.37.0
707 windows_i686_msvc@0.39.0
708 windows_i686_msvc@0.42.2
709 windows_i686_msvc@0.48.5
710 windows_i686_msvc@0.52.4
711 windows_x86_64_gnu@0.37.0
712 windows_x86_64_gnu@0.39.0
713 windows_x86_64_gnu@0.42.2
714 windows_x86_64_gnu@0.48.5
715 windows_x86_64_gnu@0.52.4
716 windows_x86_64_gnullvm@0.42.2
717 windows_x86_64_gnullvm@0.48.5
718 windows_x86_64_gnullvm@0.52.4
719 windows_x86_64_msvc@0.37.0
720 windows_x86_64_msvc@0.39.0
721 windows_x86_64_msvc@0.42.2
722 windows_x86_64_msvc@0.48.5
723 windows_x86_64_msvc@0.52.4
742 zerocopy-derive@0.7.32
746 zstd-safe@5.0.2+zstd.1.5.2
747 zstd-sys@2.0.10+zstd.1.5.6
748 zstd@0.11.2+zstd.1.5.2
753 zvariant_derive@3.15.2
757 declare -A GIT_CRATES
=(
758 [gunzip
]='https://github.com/TechHara/gunzip;adfed97f7fa4ad705364e7fc151eaaf0950cd6ba;gunzip-%commit%'
761 inherit cargo desktop xdg
763 DESCRIPTION
="Clash GUI based on tauri"
764 HOMEPAGE
="https://github.com/LibNyanpasu/clash-nyanpasu"
766 https://github.com/LibNyanpasu/clash-nyanpasu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
769 SRC_URI
+="https://github.com/liuyujielol/gentoo-go-deps/releases/download/${P}/${P}-node_modules-pnpm.tar.xz"
772 # Dependent crate licenses
774 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC MIT
775 MPL-2.0 Unicode-DFS-2016 WTFPL-2
779 IUSE
="clash-rs +mihomo"
781 || ( clash-rs mihomo )
785 app-alternatives/v2ray-geoip
786 app-alternatives/v2ray-geosite
789 dev-libs/libayatana-appindicator
791 net-libs/webkit-gtk:4=
793 x11-libs/gdk-pixbuf:2
798 clash-rs? ( net-proxy/clash-rs )
799 mihomo? ( net-proxy/mihomo )
802 <dev-util/tauri-cli-2.0.0_alpha1
811 ln -sv "${WORKDIR}/node_modules" "${S}/node_modules" || die
812 # pretend we have prebuilt binaries
813 mkdir
-pv "${S}/backend/tauri/"{sidecar
,resources
} || die
814 touch "${S}/backend/tauri/sidecar/clash-x86_64-unknown-linux-gnu"
815 touch "${S}/backend/tauri/sidecar/clash-rs-x86_64-unknown-linux-gnu"
816 touch "${S}/backend/tauri/sidecar/mihomo-x86_64-unknown-linux-gnu"
817 touch "${S}/backend/tauri/sidecar/mihomo-alpha-x86_64-unknown-linux-gnu"
818 touch "${S}/backend/tauri/resources/Country.mmdb"
820 jq
'del(.scripts.prepare)' package.json|sponge package.json
822 # only build the excutable
823 jq
'.tauri.bundle.active = false' tauri.conf.json|sponge tauri.conf.json
825 jq
'.tauri.updater.active = false' tauri.conf.json|sponge tauri.conf.json
831 cargo-tauri build $
(usex debug
"-d" "") || die
"cargo-tauri build failed"
836 dobin backend
/target
/$
(usex debug
"debug" "release")/clash-nyanpasu
838 newicon
-s 32 backend
/tauri
/icons
/32x32.png clash-nyanpasu.png
839 newicon
-s 128 backend
/tauri
/icons
/128x128.png clash-nyanpasu.png
840 newicon
-s 256 backend
/tauri
/icons
/128x128@
2x.png clash-nyanpasu.png
841 newicon
-s scalable src
/assets
/image
/logo.svg clash-nyanpasu.svg
843 make_desktop_entry clash-nyanpasu clash-nyanpasu clash-nyanpasu
'Network;Development' 'Terminal=false'
845 dosym
-r "/usr/share/v2ray/geosite.dat" "/usr/lib/${PN}/resources/geosite.dat"
846 dosym
-r "/usr/share/v2ray/geoip.dat" "/usr/lib/${PN}/resources/geoip.dat"