# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="Matrix group messaging app" HOMEPAGE="https://wiki.gnome.org/Apps/Fractal" CRATES=" adler32-1.0.3 aho-corasick-0.6.9 ammonia-1.2.0 ansi_term-0.11.0 argon2rs-0.2.5 arrayref-0.3.5 arrayvec-0.4.9 atk-sys-0.7.0 atty-0.2.11 autocfg-0.1.1 backtrace-0.3.13 backtrace-sys-0.1.26 base64-0.9.3 bincode-1.0.1 bitflags-1.0.4 blake2-rfc-0.2.18 block-0.1.6 block-buffer-0.3.3 byte-tools-0.2.0 byteorder-1.2.7 bytes-0.4.11 cairo-rs-0.5.0 cairo-sys-rs-0.7.0 cc-1.0.28 cfg-if-0.1.6 chrono-0.4.6 clap-2.32.0 cloudabi-0.0.3 comrak-0.4.0 constant_time_eq-0.1.3 core-foundation-0.5.1 core-foundation-sys-0.5.1 crc32fast-1.1.2 crossbeam-deque-0.6.3 crossbeam-epoch-0.7.0 crossbeam-utils-0.6.3 dbus-0.2.3 dbus-0.6.3 digest-0.7.6 dirs-1.0.4 dtoa-0.4.3 either-1.5.0 encoding_rs-0.8.13 entities-1.0.1 error-chain-0.10.0 error-chain-0.12.0 failure-0.1.3 failure_derive-0.1.3 fake-simd-0.1.2 fixedbitset-0.1.9 fnv-1.0.6 foreign-types-0.3.2 foreign-types-shared-0.1.1 fragile-0.3.0 fuchsia-zircon-0.3.3 fuchsia-zircon-sys-0.3.3 futf-0.1.4 futures-0.1.25 futures-cpupool-0.1.8 gcc-0.3.55 gdk-0.9.0 gdk-pixbuf-0.5.0 gdk-pixbuf-sys-0.7.0 gdk-sys-0.7.0 generic-array-0.9.0 gettext-rs-0.4.1 gettext-sys-0.19.8 gio-0.5.1 gio-sys-0.7.0 glib-0.6.1 glib-sys-0.7.0 gobject-sys-0.7.0 gstreamer-0.12.2 gstreamer-base-0.12.2 gstreamer-base-sys-0.6.2 gstreamer-player-0.12.2 gstreamer-player-sys-0.6.2 gstreamer-sys-0.6.2 gstreamer-video-0.12.2 gstreamer-video-sys-0.6.2 gtk-0.5.0 gtk-source-sys-0.7.0 gtk-sys-0.7.0 h2-0.1.14 html2pango-0.1.0 html5ever-0.22.5 http-0.1.14 httparse-1.3.3 hyper-0.12.19 hyper-tls-0.3.1 idna-0.1.5 indexmap-1.0.2 iovec-0.1.2 itertools-0.8.0 itoa-0.4.3 kernel32-sys-0.2.2 lazy_static-0.2.11 lazy_static-1.2.0 lazycell-1.2.1 letter-avatar-1.0.2 libc-0.2.45 libdbus-sys-0.1.4 libflate-0.1.19 libhandy-0.2.0 linkify-0.3.1 lmdb-0.8.0 lmdb-sys-0.8.0 locale_config-0.2.2 lock_api-0.1.5 log-0.4.6 mac-0.1.1 mac-notification-sys-0.1.3 malloc_buf-0.0.6 maplit-1.0.1 markup5ever-0.7.5 matches-0.1.8 md5-0.6.1 mdl-1.0.4 memchr-2.1.2 memoffset-0.2.1 mime-0.3.12 mime_guess-2.0.0-alpha.6 mio-0.6.16 mio-uds-0.6.7 miow-0.2.1 muldiv-0.2.0 native-tls-0.2.2 net2-0.2.33 new_debug_unreachable-1.0.1 nodrop-0.1.13 nom-2.2.1 notify-rust-3.5.0 num-0.1.42 num-bigint-0.1.44 num-complex-0.1.43 num-integer-0.1.39 num-iter-0.1.37 num-rational-0.1.42 num-rational-0.2.1 num-traits-0.2.6 num_cpus-1.9.0 objc-0.2.5 objc-foundation-0.1.1 objc_id-0.1.1 openssl-0.10.16 openssl-probe-0.1.2 openssl-sys-0.9.40 ordermap-0.3.5 owning_ref-0.3.3 owning_ref-0.4.0 pango-0.5.0 pango-sys-0.7.0 pangocairo-0.6.0 pangocairo-sys-0.8.0 parking_lot-0.4.8 parking_lot-0.6.4 parking_lot_core-0.2.14 parking_lot_core-0.3.1 percent-encoding-1.0.1 pest-2.1.0 pest_derive-2.1.0 pest_generator-2.1.0 pest_meta-2.1.0 petgraph-0.4.13 phf-0.7.23 phf_codegen-0.7.23 phf_generator-0.7.23 phf_shared-0.7.23 pkg-config-0.3.14 precomputed-hash-0.1.1 proc-macro2-0.4.24 quote-0.6.10 rand-0.3.22 rand-0.4.3 rand-0.5.5 rand-0.6.1 rand_chacha-0.1.0 rand_core-0.2.2 rand_core-0.3.0 rand_hc-0.1.0 rand_isaac-0.1.1 rand_pcg-0.1.1 rand_xorshift-0.1.0 redox_syscall-0.1.44 redox_termios-0.1.1 redox_users-0.2.0 regex-0.2.11 regex-1.1.0 regex-syntax-0.5.6 regex-syntax-0.6.4 remove_dir_all-0.5.1 reqwest-0.9.5 rust-crypto-0.2.36 rust-gmp-0.3.2 rustc-demangle-0.1.11 rustc-serialize-0.3.24 rustc_version-0.2.3 ryu-0.2.7 safemem-0.3.0 schannel-0.1.14 scoped_threadpool-0.1.9 scopeguard-0.3.3 secret-service-0.4.0 security-framework-0.2.1 security-framework-sys-0.2.1 semver-0.9.0 semver-parser-0.7.0 serde-1.0.82 serde_derive-1.0.82 serde_json-1.0.33 serde_urlencoded-0.5.4 sha-1-0.7.0 siphasher-0.2.3 slab-0.4.1 smallvec-0.6.7 sourceview-0.5.0 stable_deref_trait-1.1.1 string-0.1.2 string_cache-0.7.3 string_cache_codegen-0.4.2 string_cache_shared-0.3.0 strsim-0.7.0 syn-0.15.23 synstructure-0.10.1 tempfile-3.0.5 tendril-0.4.1 termion-1.5.1 textwrap-0.10.0 thread_local-0.3.6 time-0.1.41 tokio-0.1.13 tokio-codec-0.1.1 tokio-current-thread-0.1.4 tokio-executor-0.1.5 tokio-fs-0.1.4 tokio-io-0.1.10 tokio-reactor-0.1.7 tokio-tcp-0.1.2 tokio-threadpool-0.1.9 tokio-timer-0.2.8 tokio-udp-0.1.3 tokio-uds-0.2.4 tree_magic-0.2.1 try-lock-0.2.2 twoway-0.1.8 typed-arena-1.4.1 typenum-1.10.0 ucd-trie-0.1.1 ucd-util-0.1.3 unicase-1.4.2 unicase-2.2.0 unicode-bidi-0.3.4 unicode-normalization-0.1.7 unicode-segmentation-1.2.1 unicode-width-0.1.5 unicode-xid-0.1.0 unicode_categories-0.1.1 unreachable-1.0.0 url-1.7.2 urlencoding-1.0.0 utf-8-0.7.4 utf8-ranges-1.0.2 uuid-0.7.1 vcpkg-0.2.6 vec_map-0.8.1 version_check-0.1.5 void-1.0.2 want-0.0.6 winapi-0.2.8 winapi-0.3.6 winapi-build-0.1.1 winapi-i686-pc-windows-gnu-0.4.0 winapi-x86_64-pc-windows-gnu-0.4.0 ws2_32-sys-0.2.1 " #handy-sys-0.2.0 inherit meson xdg-utils cargo SRC_URI="https://gitlab.gnome.org/GNOME/${PN}/-/archive/${PV}/${P}.tar.gz http://liftm.de/Misc/fractal-deps-not-crates.io/fractal-4.0.0-git-deps-vendored.txz $(cargo_crate_uris ${CRATES}) " # ${CARGO_DEPS[@]} #" KEYWORDS="~amd64 ~x86" LICENSE="GPL-3" SLOT="0" IUSE="" RDEPEND=" >=app-text/gspell-1.8.1 >=x11-libs/cairo-1.16.0 x11-libs/gtksourceview dev-libs/libhandy" #>=virtual/rust-1.31.1 DEPEND="${RDEPEND}" BDEPEND="dev-util/ninja dev-util/meson" src_prepare() { mkdir -p .cargo touch .cargo/config cat "${FILESDIR}/cargo-config-vendored" >>.cargo/config ln -s ../vendored/ vendor default } src_test() { cargo test || die "tests failed" } src_install() { ln -s "$S"/.cargo/ "${BUILD_DIR}/.cargo" ln -s ../vendored/ "${BUILD_DIR}/vendor" meson_src_install }