Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/castor/
Date: Mon, 01 Jun 2020 10:59:22
Message-Id: 1591008572.628b7c5a7e163918264d0edcbd271b9a892ebd82.tastytea@gentoo
1 commit: 628b7c5a7e163918264d0edcbd271b9a892ebd82
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Mon Jun 1 10:48:22 2020 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Mon Jun 1 10:49:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=628b7c5a
7
8 net-misc/castor: Version bump 0.8.12.
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 net-misc/castor/Manifest | 1 +
13 net-misc/castor/castor-0.8.12.ebuild | 151 +++++++++++++++++++++++++++++++++++
14 2 files changed, 152 insertions(+)
15
16 diff --git a/net-misc/castor/Manifest b/net-misc/castor/Manifest
17 index f00666c..a1200ba 100644
18 --- a/net-misc/castor/Manifest
19 +++ b/net-misc/castor/Manifest
20 @@ -11,6 +11,7 @@ DIST blake2b_simd-0.5.10.crate 34093 BLAKE2B 6e725c9399714d1e199277e3f9882d636c1
21 DIST cairo-rs-0.8.1.crate 46018 BLAKE2B f3879b08d404495a401df205a4e51c67caa36722e0661b6eb3bc6c1dc830d52b01149d4cb27ad2c40b4870771f9f5f356ed1cd02c879dcce3bba5e18fd81b7a8 SHA512 33ec3b7b1069934aae88b76c11a6be76974fdc6d2eedee3e6d20328a4a2df7d248960a3fa4de7deb696f6c0dd332f77f9d8004cdf0bc36be1187cbb5ccf9b682
22 DIST cairo-sys-rs-0.9.2.crate 11650 BLAKE2B ac664b7976de57907ae543c1afc2fd8fe166b2a147e1be31d6f60aec0b08949bb53b9f59c16e02f33a299a225f8e8202c5d7ad744c6aa8c5f03ec421a773ff33 SHA512 cab877b76951212710c7e668093fda218ac9c7e1e26fcffc448d759a3f968a7faeeea347025189a1aee7579b15916c141d0d727f986bb7061183a695b52bf39b
23 DIST castor-0.8.11.tar.gz 91340 BLAKE2B d7ea232ca841a75039f6f38c82e7268388d35dfe622864cad19b6056d1ed568e9d9ed3cbbe9c471eb82187d1a2d22f7cb836a245fe33a2366aeeddfb0493de60 SHA512 ae150f83a4f2a4959cbd3575cc252e0d68e8a3311b84c3f446e1a9efd31add5c1190707038353f169f90ac8246f5e8e8005eb62eebb9a7ead33417652d72ecce
24 +DIST castor-0.8.12.tar.gz 91403 BLAKE2B 486f235efe1a03a16a784903cccc1c832a9cffbc9409653c3002685f1cad005229939233999254e4488654552bf54a346054aab1e572e026adc6290b66fb8f27 SHA512 95449344540eda24639d49c4a4eb02c408a065c4b6700d5267dc01fd5495c3757fb95b3635f29ea5e57c2abcd97565f6a0b93498b76f47bea8030cd110ff8468
25 DIST cc-1.0.52.crate 51006 BLAKE2B a19083042845bc1fcead482b1e644ce09701fc97aad60afc0750d7ee191e26257e5c926fb5a70bef8cc5a37a694581e6098a29c56e63868d67302bb270a8f8f8 SHA512 50558f9b76748298568a1e010ab85b0a0e1cf47d6f8589de718aac0afc130158b092e1be11b73bb1ff51d3a281c5e6ad72ecad5bce9dbff90b4c330c8d95dd90
26 DIST cfg-if-0.1.10.crate 7933 BLAKE2B 063a96ed176f34f788666b40adc483d147fc011dee941ab60569ddd0e57502b5dd06ed71090f4e14ce005d06e240500a286f74652615e9d068fba649610d8cf8 SHA512 9d22616bfb4a75770a828a0a3cddac6787297a5fdc53eb17e25811cc94de717f2de8bd66d53c5d65ba1c83d8892aefee5ae758cf56a1ef0a0c3120f70b244339
27 DIST constant_time_eq-0.1.5.crate 4936 BLAKE2B 882dbf33f20954205fcc5b6e39863db8969d184b697fd51ef462f6890c1a754e3fae67bcc7db685d8cc26abe6e3871d3b80aa542489ba9551a0c95a49f7a6dc2 SHA512 a4e0155a7ad72babcfd418d832d362b3fca7333aaaf36c246b00e948983837c3c93378b86e37c5fa7626fe137e3b6d77276ccc61624a7f4ab914605905a88a01
28
29 diff --git a/net-misc/castor/castor-0.8.12.ebuild b/net-misc/castor/castor-0.8.12.ebuild
30 new file mode 100644
31 index 0000000..5122aff
32 --- /dev/null
33 +++ b/net-misc/castor/castor-0.8.12.ebuild
34 @@ -0,0 +1,151 @@
35 +# Copyright 2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +# NOTE: Generate new list with `cargo-ebuild ebuild` on every bump.
41 +CRATES="
42 + aho-corasick-0.7.10
43 + ansi-parser-0.6.5
44 + arrayref-0.3.6
45 + arrayvec-0.5.1
46 + atk-0.8.0
47 + atk-sys-0.9.1
48 + autocfg-1.0.0
49 + base64-0.11.0
50 + bitflags-1.2.1
51 + blake2b_simd-0.5.10
52 + cairo-rs-0.8.1
53 + cairo-sys-rs-0.9.2
54 + cc-1.0.52
55 + cfg-if-0.1.10
56 + constant_time_eq-0.1.5
57 + core-foundation-0.7.0
58 + core-foundation-sys-0.7.0
59 + crossbeam-utils-0.7.2
60 + dirs-2.0.2
61 + dirs-sys-0.3.4
62 + foreign-types-0.3.2
63 + foreign-types-shared-0.1.1
64 + futures-channel-0.3.5
65 + futures-core-0.3.5
66 + futures-executor-0.3.5
67 + futures-io-0.3.5
68 + futures-macro-0.3.5
69 + futures-task-0.3.5
70 + futures-util-0.3.5
71 + gdk-0.12.1
72 + gdk-pixbuf-0.8.0
73 + gdk-pixbuf-sys-0.9.1
74 + gdk-sys-0.9.1
75 + getrandom-0.1.14
76 + gio-0.8.1
77 + gio-sys-0.9.1
78 + glib-0.9.3
79 + glib-sys-0.9.1
80 + gobject-sys-0.9.1
81 + gtk-0.8.1
82 + gtk-sys-0.9.2
83 + idna-0.2.0
84 + lazy_static-1.4.0
85 + libc-0.2.70
86 + log-0.4.8
87 + matches-0.1.8
88 + memchr-2.3.3
89 + native-tls-0.2.4
90 + nom-4.2.3
91 + once_cell-1.4.0
92 + open-1.4.0
93 + openssl-0.10.29
94 + openssl-probe-0.1.2
95 + openssl-sys-0.9.56
96 + pango-0.8.0
97 + pango-sys-0.9.1
98 + percent-encoding-2.1.0
99 + pin-project-0.4.16
100 + pin-project-internal-0.4.16
101 + pin-utils-0.1.0
102 + pkg-config-0.3.17
103 + ppv-lite86-0.2.6
104 + proc-macro-hack-0.5.15
105 + proc-macro-nested-0.1.4
106 + proc-macro2-1.0.12
107 + quote-1.0.5
108 + rand-0.7.3
109 + rand_chacha-0.2.2
110 + rand_core-0.5.1
111 + rand_hc-0.2.0
112 + redox_syscall-0.1.56
113 + redox_users-0.3.4
114 + regex-1.3.7
115 + regex-syntax-0.6.17
116 + remove_dir_all-0.5.2
117 + rust-argon2-0.7.0
118 + schannel-0.1.19
119 + security-framework-0.4.4
120 + security-framework-sys-0.4.3
121 + serde-1.0.110
122 + serde_derive-1.0.110
123 + slab-0.4.2
124 + smallvec-1.4.0
125 + syn-1.0.21
126 + tempfile-3.1.0
127 + thread_local-1.0.1
128 + toml-0.5.6
129 + unicode-bidi-0.3.4
130 + unicode-normalization-0.1.12
131 + unicode-xid-0.2.0
132 + url-2.1.1
133 + vcpkg-0.2.8
134 + version_check-0.1.5
135 + wasi-0.9.0+wasi-snapshot-preview1
136 + winapi-0.3.8
137 + winapi-i686-pc-windows-gnu-0.4.0
138 + winapi-x86_64-pc-windows-gnu-0.4.0
139 +"
140 +
141 +inherit cargo desktop xdg
142 +
143 +DESCRIPTION="A graphical browser for plain-text protocols"
144 +HOMEPAGE="https://git.sr.ht/~julienxx/castor"
145 +SRC_URI="
146 + https://git.sr.ht/~julienxx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
147 + $(cargo_crate_uris ${CRATES})
148 +"
149 +
150 +LICENSE="Apache-2.0 BSD-2 CC0-1.0 MIT MPL-2.0"
151 +SLOT="0"
152 +KEYWORDS="~amd64"
153 +
154 +RDEPEND="
155 + dev-libs/openssl
156 + x11-libs/gtk+:3
157 +"
158 +DEPEND="${RDEPEND}"
159 +
160 +src_prepare() {
161 + xdg_src_prepare
162 +
163 + # Upstream uses forks to support LibreSSL. We revert to official sources.
164 + sed -Ei 's/(native-tls|openssl(-sys)?) = \{.+/\1 = "*"/' Cargo.toml || die
165 +}
166 +
167 +src_test() {
168 + # FIXME: test absolute_url::test_make_absolute_just_path fails without this,
169 + # but I couldn't reproduce it.
170 + RUST_BACKTRACE=1 cargo_src_test
171 +}
172 +
173 +src_install() {
174 + cargo_src_install
175 +
176 + einstalldocs
177 + newdoc data/castor_settings.toml.example settings.toml.example
178 +
179 + doicon data/org.typed-hole.castor.svg
180 + for icon in data/org.typed-hole.castor-*.png; do
181 + local size=$(grep -Eo '[0-9]{2,3}' <<<${icon})
182 + newicon --size ${size} ${icon} $(basename ${icon/-${size}/})
183 + done
184 + domenu data/Castor.desktop
185 +}