Loading

Paste #plwlepco7

  1. # Copyright 1999-2019 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=7
  5.  
  6. CRATES="
  7. adler32-1.0.3
  8. aho-corasick-0.6.10
  9. argon2rs-0.2.5
  10. arrayref-0.3.5
  11. arrayvec-0.4.10
  12. atk-0.6.0
  13. atk-sys-0.8.0
  14. atty-0.2.11
  15. autocfg-0.1.2
  16. backtrace-0.3.14
  17. backtrace-sys-0.1.28
  18. base64-0.10.1
  19. bincode-1.1.2
  20. bitflags-0.7.0
  21. bitflags-1.0.4
  22. blake2-rfc-0.2.18
  23. block-buffer-0.3.3
  24. build_const-0.2.1
  25. byte-tools-0.2.0
  26. bytecount-0.4.0
  27. byteorder-1.3.1
  28. cairo-rs-0.6.0
  29. cairo-sys-rs-0.8.0
  30. cargo-husky-1.3.0
  31. cc-1.0.32
  32. cfg-if-0.1.7
  33. cloudabi-0.0.3
  34. constant_time_eq-0.1.3
  35. crc-1.8.1
  36. crc32fast-1.2.0
  37. crossbeam-0.5.0
  38. crossbeam-channel-0.3.8
  39. crossbeam-deque-0.6.3
  40. crossbeam-deque-0.7.1
  41. crossbeam-epoch-0.6.1
  42. crossbeam-epoch-0.7.1
  43. crossbeam-utils-0.6.5
  44. digest-0.7.6
  45. dirs-1.0.5
  46. env_logger-0.6.1
  47. failure-0.1.5
  48. failure_derive-0.1.5
  49. fake-simd-0.1.2
  50. filetime-0.2.4
  51. flate2-1.0.7
  52. fnv-1.0.6
  53. fragile-0.3.0
  54. fsevent-0.2.17
  55. fsevent-sys-0.1.6
  56. fuchsia-cprng-0.1.1
  57. fuchsia-zircon-0.3.3
  58. fuchsia-zircon-sys-0.3.3
  59. gdk-0.10.0
  60. gdk-pixbuf-0.6.0
  61. gdk-pixbuf-sys-0.8.0
  62. gdk-sys-0.8.0
  63. generic-array-0.9.0
  64. gettext-rs-0.4.1
  65. gettext-sys-0.19.8
  66. gio-0.6.0
  67. gio-sys-0.8.0
  68. glib-0.7.1
  69. glib-sys-0.8.0
  70. gobject-sys-0.8.0
  71. gtk-0.6.0
  72. gtk-sys-0.8.0
  73. gxi-0.6.2
  74. human-panic-1.0.1
  75. humantime-1.2.0
  76. inotify-0.6.1
  77. inotify-sys-0.1.3
  78. iovec-0.1.2
  79. itoa-0.4.3
  80. kernel32-sys-0.2.2
  81. lazy_static-0.2.11
  82. lazy_static-1.3.0
  83. lazycell-1.2.1
  84. libc-0.2.51
  85. line-wrap-0.1.1
  86. linked-hash-map-0.5.2
  87. locale_config-0.2.2
  88. lock_api-0.1.5
  89. log-0.4.6
  90. memchr-2.2.0
  91. memoffset-0.2.1
  92. miniz-sys-0.1.11
  93. miniz_oxide-0.2.1
  94. miniz_oxide_c_api-0.2.1
  95. mio-0.6.16
  96. mio-extras-2.0.5
  97. miow-0.2.1
  98. net2-0.2.33
  99. nodrop-0.1.13
  100. notify-4.0.10
  101. num_cpus-1.10.0
  102. onig-4.3.2
  103. onig_sys-69.1.0
  104. os_type-2.2.0
  105. owning_ref-0.4.0
  106. pango-0.6.0
  107. pango-sys-0.8.0
  108. pangocairo-0.7.0
  109. pangocairo-sys-0.9.0
  110. parking_lot-0.6.4
  111. parking_lot_core-0.3.1
  112. pkg-config-0.3.14
  113. plist-0.4.1
  114. proc-macro2-0.4.27
  115. quick-error-1.2.2
  116. quote-0.6.11
  117. rand-0.4.6
  118. rand-0.5.6
  119. rand-0.6.5
  120. rand_chacha-0.1.1
  121. rand_core-0.3.1
  122. rand_core-0.4.0
  123. rand_hc-0.1.0
  124. rand_isaac-0.1.1
  125. rand_jitter-0.1.3
  126. rand_os-0.1.3
  127. rand_pcg-0.1.2
  128. rand_xorshift-0.1.1
  129. rdrand-0.4.0
  130. redox_syscall-0.1.51
  131. redox_termios-0.1.1
  132. redox_users-0.3.0
  133. regex-0.2.11
  134. regex-1.1.2
  135. regex-syntax-0.5.6
  136. regex-syntax-0.6.5
  137. remove_dir_all-0.5.1
  138. rustc-demangle-0.1.13
  139. rustc_version-0.2.3
  140. ryu-0.2.7
  141. safemem-0.3.0
  142. same-file-1.0.4
  143. scoped_threadpool-0.1.9
  144. scopeguard-0.3.3
  145. semver-0.9.0
  146. semver-parser-0.7.0
  147. serde-1.0.89
  148. serde_derive-1.0.89
  149. serde_json-1.0.39
  150. sha2-0.7.1
  151. slab-0.4.2
  152. smallvec-0.6.9
  153. stable_deref_trait-1.1.1
  154. syn-0.15.29
  155. synstructure-0.10.1
  156. syntect-3.2.0
  157. tempdir-0.3.7
  158. tempfile-3.0.7
  159. termcolor-0.3.6
  160. termcolor-1.0.4
  161. termion-1.5.1
  162. thread_local-0.3.6
  163. time-0.1.42
  164. toml-0.4.10
  165. toml-0.5.0
  166. typenum-1.10.0
  167. ucd-util-0.1.3
  168. unicode-segmentation-1.2.1
  169. unicode-xid-0.1.0
  170. utf8-ranges-1.0.2
  171. uuid-0.6.5
  172. walkdir-2.2.7
  173. winapi-0.2.8
  174. winapi-0.3.6
  175. winapi-build-0.1.1
  176. winapi-i686-pc-windows-gnu-0.4.0
  177. winapi-util-0.1.2
  178. winapi-x86_64-pc-windows-gnu-0.4.0
  179. wincolor-0.1.6
  180. wincolor-1.0.1
  181. ws2_32-sys-0.2.1
  182. xi-core-lib-0.2.0
  183. xi-rope-0.3.0
  184. xi-rpc-0.2.0
  185. xi-trace-0.1.0
  186. xi-unicode-0.1.0
  187. xml-rs-0.8.0
  188. yaml-rust-0.4.3
  189. "
  190.  
  191. inherit cargo meson git-r3 xdg
  192.  
  193. DESCRIPTION="GTK frontend, written in Rust, for the xi editor"
  194. HOMEPAGE="https://github.com/Cogitri/gxi"
  195. EGIT_REPO_URI="https://github.com/Cogitri/${PN}.git"
  196.  
  197. if [[ ${PV} == 9999 ]]; then
  198.     KEYWORDS=""
  199.     RESTRICT="network-sandbox"
  200. else
  201.     EGIT_COMMIT="${MY_PV}"
  202.     SRC_URI="$(cargo_crate_uris ${CRATES})"
  203.     KEYWORDS="~amd64 ~x86"
  204. fi
  205.  
  206. LICENSE="MIT"
  207. SLOT="0"
  208. IUSE=""
  209.  
  210. RDEPEND="
  211.     >=dev-libs/glib-2.38
  212.     x11-libs/cairo
  213.     >=x11-libs/gtk+-3.20.0
  214.     >=x11-libs/pango-1.38"
  215. DEPEND="${DEPEND}
  216.     virtual/cargo"
  217.  
  218. src_compile() {
  219.     export CARGO_HOME="${ECARGO_HOME}"
  220.  
  221.     meson_src_compile
  222. }
  223.  
  224. src_install() {
  225.     meson_src_install
  226. }
  227.  
  228. src_test() {
  229.     meson_src_test
  230. }