1 # Copyright 2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.10
15 android_system_properties@0.1.5
42 brotli-decompressor@2.3.4
60 cocoa-foundation@0.1.1
65 concurrent-queue@2.2.0
67 core-foundation-sys@0.8.4
69 core-graphics-types@0.1.1
73 crossbeam-channel@0.5.8
74 crossbeam-utils@0.8.15
76 cssparser-macros@0.6.0
89 detect-desktop-environment@0.2.0
104 enumflags2_derive@0.7.7
105 errno-dragonfly@0.1.2
115 foreign-types-shared@0.1.1
117 form_urlencoded@1.1.0
119 futures-channel@0.3.28
121 futures-executor@0.3.28
129 gdk-pixbuf-sys@0.15.10
133 gdkwayland-sys@0.15.3
166 iana-time-zone-haiku@0.1.2
167 iana-time-zone@0.1.56
180 javascriptcore-rs-sys@0.4.0
181 javascriptcore-rs@0.16.0
188 libappindicator-sys@0.7.3
189 libappindicator@0.7.1
206 minisign-verify@0.2.1
213 new_debug_unreachable@1.0.4
222 num_enum_derive@0.5.11
224 objc-foundation@0.1.1
234 ordered-multimap@0.4.3
243 parking_lot_core@0.9.7
245 percent-encoding@2.2.0
255 pin-project-lite@0.2.9
262 precomputed-hash@0.1.1
263 proc-macro-crate@1.3.1
264 proc-macro-error-attr@1.0.4
265 proc-macro-error@1.0.4
266 proc-macro-hack@0.5.20+deprecated
278 raw-window-handle@0.5.0
282 regex-automata@0.1.10
298 security-framework-sys@2.9.0
299 security-framework@2.9.0
307 serde_urlencoded@0.7.1
309 serde_with_macros@2.3.3
310 serialize-to-javascript-impl@0.1.1
311 serialize-to-javascript@0.1.1
317 signal-hook-registry@1.4.1
326 stable_deref_trait@1.2.0
328 static_assertions@1.1.0
330 string_cache_codegen@0.5.2
339 target-lexicon@0.12.7
343 tauri-runtime-wry@0.13.0
351 thiserror-impl@1.0.40
358 tokio-native-tls@0.3.1
366 tracing-attributes@0.1.24
369 tracing-subscriber@0.3.17
377 unicode-normalization@0.1.22
378 unicode-segmentation@1.10.1
384 value-bag@1.0.0-alpha.9
386 version-compare@0.0.11
387 version-compare@0.1.1
394 wasi@0.11.0+wasi-snapshot-preview1
395 wasi@0.9.0+wasi-snapshot-preview1
396 wasm-bindgen-backend@0.2.86
397 wasm-bindgen-futures@0.4.36
398 wasm-bindgen-macro-support@0.2.86
399 wasm-bindgen-macro@0.2.86
400 wasm-bindgen-shared@0.2.86
403 webkit2gtk-sys@0.18.0
405 webview2-com-macros@0.6.0
406 webview2-com-sys@0.19.0
408 winapi-i686-pc-windows-gnu@0.4.0
410 winapi-x86_64-pc-windows-gnu@0.4.0
412 windows-bindgen@0.39.0
413 windows-implement@0.39.0
414 windows-metadata@0.39.0
418 windows-targets@0.42.2
419 windows-targets@0.48.0
420 windows-tokens@0.39.0
424 windows_aarch64_gnullvm@0.42.2
425 windows_aarch64_gnullvm@0.48.0
426 windows_aarch64_msvc@0.37.0
427 windows_aarch64_msvc@0.39.0
428 windows_aarch64_msvc@0.42.2
429 windows_aarch64_msvc@0.48.0
430 windows_i686_gnu@0.37.0
431 windows_i686_gnu@0.39.0
432 windows_i686_gnu@0.42.2
433 windows_i686_gnu@0.48.0
434 windows_i686_msvc@0.37.0
435 windows_i686_msvc@0.39.0
436 windows_i686_msvc@0.42.2
437 windows_i686_msvc@0.48.0
438 windows_x86_64_gnu@0.37.0
439 windows_x86_64_gnu@0.39.0
440 windows_x86_64_gnu@0.42.2
441 windows_x86_64_gnu@0.48.0
442 windows_x86_64_gnullvm@0.42.2
443 windows_x86_64_gnullvm@0.48.0
444 windows_x86_64_msvc@0.37.0
445 windows_x86_64_msvc@0.39.0
446 windows_x86_64_msvc@0.42.2
447 windows_x86_64_msvc@0.48.0
461 zvariant_derive@3.14.0
465 declare -A GIT_CRATES
=(
466 [tauri-plugin-autostart
]='https://github.com/lencx/tauri-plugins-workspace;bec9f6091a5a5233bc464754ebb215d07363b747;tauri-plugins-workspace-%commit%/plugins/autostart'
467 [tauri-plugin-log
]='https://github.com/lencx/tauri-plugins-workspace;bec9f6091a5a5233bc464754ebb215d07363b747;tauri-plugins-workspace-%commit%/plugins/log'
468 [tauri-plugin-positioner
]='https://github.com/lencx/tauri-plugins-workspace;bec9f6091a5a5233bc464754ebb215d07363b747;tauri-plugins-workspace-%commit%/plugins/positioner'
469 [tauri-plugin-window-state
]='https://github.com/lencx/tauri-plugins-workspace;bec9f6091a5a5233bc464754ebb215d07363b747;tauri-plugins-workspace-%commit%/plugins/window-state'
472 inherit cargo xdg desktop toolchain-funcs
475 DESCRIPTION
="ChatGPT Desktop Application"
478 https://github.com/lencx/ChatGPT
481 https://github.com/lencx/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
485 https://github.com/liuyujielol/gentoo-go-deps/releases/download/${P}/${P}-node_modules.tar.xz
489 # Dependent crate licenses
491 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0
497 RESTRICT
="mirror strip"
500 net-libs/webkit-gtk:4
501 x11-misc/appmenu-gtk-module
505 dev-libs/libayatana-appindicator
510 >=dev-util/tauri-cli-1.3.1
511 <dev-util/tauri-cli-2
516 S
="${WORKDIR}/${MY_PN}-${PV}"
519 ln -sv "${WORKDIR}/node_modules" "${S}/node_modules" || die
520 mkdir
-v "${S}/dist" || die
525 debug-print-function
${FUNCNAME} "$@"
527 [[ ${_CARGO_GEN_CONFIG_HAS_RUN} ]] ||
528 die
"FATAL: please call cargo_gen_config before using ${FUNCNAME}"
530 tc-export AR CC CXX PKG_CONFIG
532 set -- cargo tauri build
--bundles app $
(usex debug
--debug "") ${ECARGO_ARGS[@]} "$@"
534 "${@}" || die
"cargo build failed"
538 newbin
"${S}/target/$(usex debug debug release)/chat-gpt" "${PN}"
540 newicon
-s 256 "${S}/src-tauri/icons/128x128@2x.png" "${PN}.png"
541 newicon
-s 128 "${S}/src-tauri/icons/128x128.png" "${PN}.png"
542 newicon
-s 32 "${S}/src-tauri/icons/32x32.png" "${PN}.png"
544 make_desktop_entry
"${PN}" "ChatGPT Desktop" "${PN}" "Development;"