summaryrefslogtreecommitdiff
path: root/app-shells/silver/silver-2.0.0-r2.ebuild
blob: 5f4a3867c3c3682cf8f583ef3c3a0e739ee27251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.10

EAPI=8

CRATES="
	ahash@0.3.8
	aho-corasick@0.7.13
	anyhow@1.0.32
	arrayref@0.3.6
	arrayvec@0.5.1
	atty@0.2.14
	autocfg@1.0.0
	base64@0.11.0
	bitflags@1.2.1
	blake2b_simd@0.5.10
	cc@1.0.79
	cfg-if@0.1.10
	chrono@0.4.13
	clap@3.0.0-beta.2
	clap_derive@3.0.0-beta.2
	confy@0.4.0
	constant_time_eq@0.1.5
	crossbeam-deque@0.7.3
	crossbeam-epoch@0.8.2
	crossbeam-queue@0.2.3
	crossbeam-utils@0.7.2
	directories@2.0.2
	dirs-sys@0.3.5
	dirs@2.0.2
	dlv-list@0.2.2
	doc-comment@0.3.3
	either@1.5.3
	getrandom@0.1.14
	git2@0.13.8
	hashbrown@0.7.2
	hashbrown@0.9.1
	heck@0.3.1
	hermit-abi@0.1.15
	hostname@0.3.1
	humantime-serde@1.0.0
	humantime@2.0.1
	idna@0.2.0
	indexmap@1.6.0
	jobserver@0.1.21
	lazy_static@1.4.0
	libc@0.2.74
	libgit2-sys@0.12.9+1.0.1
	libssh2-sys@0.2.18
	libz-sys@1.0.25
	log@0.4.11
	match_cfg@0.1.0
	matches@0.1.8
	maybe-uninit@2.0.0
	memchr@2.3.3
	memoffset@0.5.5
	ntapi@0.3.4
	num-integer@0.1.43
	num-traits@0.2.12
	num_cpus@1.13.0
	once_cell@1.4.0
	openssl-probe@0.1.2
	openssl-sys@0.9.87
	ordered-multimap@0.2.4
	os_str_bytes@2.4.0
	percent-encoding@2.1.0
	pkg-config@0.3.18
	ppv-lite86@0.2.8
	proc-macro-error-attr@1.0.4
	proc-macro-error@1.0.4
	proc-macro2@1.0.19
	quote@1.0.7
	rand@0.7.3
	rand_chacha@0.2.2
	rand_core@0.5.1
	rand_hc@0.2.0
	rayon-core@1.7.1
	rayon@1.3.1
	redox_syscall@0.1.57
	redox_users@0.3.4
	regex-syntax@0.6.18
	regex@1.3.9
	rust-argon2@0.7.0
	rust-ini@0.15.3
	scopeguard@1.1.0
	serde@1.0.114
	serde_derive@1.0.114
	shellexpand@2.0.0
	strsim@0.10.0
	syn@1.0.37
	sysinfo@0.15.0
	termcolor@1.1.2
	textwrap@0.12.1
	thread_local@1.0.1
	time@0.1.43
	tinyvec@0.3.3
	toml@0.5.6
	unicode-bidi@0.3.4
	unicode-normalization@0.1.13
	unicode-segmentation@1.7.0
	unicode-width@0.1.8
	unicode-xid@0.2.1
	url@2.1.1
	users@0.10.0
	vcpkg@0.2.10
	vec_map@0.8.2
	version_check@0.9.2
	wasi@0.9.0+wasi-snapshot-preview1
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.5
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
"

inherit cargo

DESCRIPTION="A cross-shell customizable powerline-like prompt with icons"
HOMEPAGE="https://github.com/reujab/silver"
SRC_URI="
	https://github.com/reujab/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" BSD-2 CC0-1.0 MIT ZLIB"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="virtual/pkgconfig"
RDEPEND="
	>=dev-libs/libgit2-1.1.0:=[ssh,threads(+)]
	dev-libs/openssl:0=
"
DEPEND="${RDEPEND}"

DOCS="readme.md"

QA_FLAGS_IGNORED="usr/bin/silver"

PATCHES=(
	"${FILESDIR}"/"${PV}"-update-openssl-sys.patch
	"${FILESDIR}"/add-gentoo-support.patch

)

src_configure() {
	export LIBGIT2_SYS_USE_PKG_CONFIG=1
	export PKG_CONFIG_ALLOW_CROSS=1

	cargo_src_configure
}

src_install() {
	cargo_src_install

	einstalldocs
}

pkg_postinst() {
	elog
	elog "To use ${PN} with the custom icons (which are enable by default)"
	elog "you must patch your font or install a nerd font"
	elog "Visit https://www.nerdfonts.com/font-downloads to download one."
	elog
}