alpha-quadrant/dev-vcs/gitui/gitui-0.22.1.ebuild

276 lines
5.2 KiB
Bash
Raw Normal View History

2022-11-24 14:35:06 +01:00
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
addr2line-0.17.0
adler-1.0.2
ahash-0.7.6
aho-corasick-0.7.20
android_system_properties-0.1.5
anyhow-1.0.66
arrayvec-0.7.2
atty-0.2.14
autocfg-1.1.0
backtrace-0.3.66
base64-0.13.1
bincode-1.3.3
bit-set-0.5.3
bit-vec-0.6.3
bitflags-1.3.2
bugreport-0.5.0
bumpalo-3.11.1
bytemuck-1.12.3
bytesize-1.1.0
cassowary-0.3.0
cc-1.0.77
cfg-if-1.0.0
chrono-0.4.23
clap-4.0.26
clap_lex-0.3.0
codespan-reporting-0.11.1
core-foundation-sys-0.8.3
cpp_demangle-0.4.0
crc32fast-1.3.2
crossbeam-channel-0.5.6
crossbeam-deque-0.8.2
crossbeam-epoch-0.9.13
crossbeam-utils-0.8.14
crossterm-0.25.0
crossterm_winapi-0.9.0
ctor-0.1.26
cxx-1.0.82
cxx-build-1.0.82
cxxbridge-flags-1.0.82
cxxbridge-macro-1.0.82
dashmap-5.4.0
debugid-0.8.0
diff-0.1.13
dirs-4.0.0
dirs-next-2.0.0
dirs-sys-0.3.7
dirs-sys-next-0.1.2
easy-cast-0.5.1
either-1.8.0
env_logger-0.9.3
fancy-regex-0.7.1
fastrand-1.8.0
filetime-0.2.18
findshlibs-0.10.2
flate2-1.0.24
fnv-1.0.7
form_urlencoded-1.1.0
fsevent-sys-4.1.0
futures-0.3.25
futures-channel-0.3.25
futures-core-0.3.25
futures-executor-0.3.25
futures-io-0.3.25
futures-sink-0.3.25
futures-task-0.3.25
futures-util-0.3.25
fuzzy-matcher-0.3.7
getrandom-0.2.8
gh-emoji-1.0.7
gimli-0.26.2
git-version-0.3.5
git-version-macro-0.3.5
git2-0.15.0
hashbrown-0.12.3
hermit-abi-0.1.19
humantime-2.1.0
iana-time-zone-0.1.53
iana-time-zone-haiku-0.1.1
idna-0.3.0
indexmap-1.9.2
inferno-0.11.12
inotify-0.9.6
inotify-sys-0.1.5
instant-0.1.12
itertools-0.10.5
itoa-1.0.4
jobserver-0.1.25
js-sys-0.3.60
kqueue-1.0.7
kqueue-sys-1.0.3
lazy_static-1.4.0
libc-0.2.137
libgit2-sys-0.14.0+1.5.0
libssh2-sys-0.2.23
libz-sys-1.1.8
link-cplusplus-1.0.7
lock_api-0.4.9
log-0.4.17
memchr-2.5.0
memmap2-0.5.8
memoffset-0.7.1
miniz_oxide-0.5.4
mio-0.8.5
nix-0.24.2
notify-5.0.0
notify-debouncer-mini-0.2.1
num-format-0.4.3
num-integer-0.1.45
num-traits-0.2.15
num_cpus-1.14.0
object-0.29.0
once_cell-1.16.0
onig-6.4.0
onig_sys-69.8.1
openssl-probe-0.1.5
openssl-src-111.24.0+1.1.1s
openssl-sys-0.9.77
os_str_bytes-6.4.1
output_vt100-0.1.3
parking_lot-0.12.1
parking_lot_core-0.9.4
percent-encoding-2.2.0
phf-0.11.1
phf_shared-0.11.1
pin-project-lite-0.2.9
pin-utils-0.1.0
pkg-config-0.3.26
pprof-0.11.0
pretty_assertions-1.3.0
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro-hack-0.5.19
proc-macro2-1.0.47
quick-xml-0.23.1
quote-1.0.21
rayon-core-1.10.1
redox_syscall-0.2.16
redox_users-0.4.3
regex-1.7.0
regex-syntax-0.6.28
remove_dir_all-0.5.3
rgb-0.8.34
ron-0.8.0
rustc-demangle-0.1.21
ryu-1.0.11
same-file-1.0.6
scopeguard-1.1.0
scratch-1.0.2
serde-1.0.147
serde_derive-1.0.147
serde_json-1.0.89
serial_test-0.9.0
serial_test_derive-0.9.0
shell-escape-0.1.5
shellexpand-2.1.2
signal-hook-0.3.14
signal-hook-mio-0.2.3
signal-hook-registry-1.4.0
simplelog-0.12.0
siphasher-0.3.10
slab-0.4.7
smallvec-1.10.0
smawk-0.3.1
stable_deref_trait-1.2.0
str_stack-0.1.0
strsim-0.10.0
symbolic-common-10.1.3
symbolic-demangle-10.1.3
syn-1.0.103
syntect-5.0.0
sys-info-0.9.1
tempfile-3.3.0
termcolor-1.1.3
textwrap-0.16.0
thiserror-1.0.37
thiserror-impl-1.0.37
thread_local-1.1.4
time-0.3.17
time-core-0.1.0
time-macros-0.2.6
tinyvec-1.6.0
tinyvec_macros-0.1.0
tui-0.19.0
unicode-bidi-0.3.8
unicode-ident-1.0.5
unicode-linebreak-0.1.4
unicode-normalization-0.1.22
unicode-segmentation-1.10.0
unicode-truncate-0.2.0
unicode-width-0.1.10
url-2.3.1
uuid-1.2.2
vcpkg-0.2.15
version_check-0.9.4
walkdir-2.3.2
wasi-0.11.0+wasi-snapshot-preview1
wasm-bindgen-0.2.83
wasm-bindgen-backend-0.2.83
wasm-bindgen-macro-0.2.83
wasm-bindgen-macro-support-0.2.83
wasm-bindgen-shared-0.2.83
which-4.3.0
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.5
winapi-x86_64-pc-windows-gnu-0.4.0
windows-sys-0.42.0
windows_aarch64_gnullvm-0.42.0
windows_aarch64_msvc-0.42.0
windows_i686_gnu-0.42.0
windows_i686_msvc-0.42.0
windows_x86_64_gnu-0.42.0
windows_x86_64_gnullvm-0.42.0
windows_x86_64_msvc-0.42.0
yansi-0.5.1
"
inherit cargo
DESCRIPTION="Blazing fast terminal-ui for git"
HOMEPAGE="https://github.com/extrawurst/gitui"
SRC_URI="$(cargo_crate_uris)
https://github.com/extrawurst/${PN}/archive/refs/tags/v${PV}.tar.gz
"
LICENSE="BSD Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="trace-libgit"
RDEPEND="
>=dev-libs/libgit2-1.4.0:=
trace-libgit? ( dev-libs/libgit2[trace(+)] )
dev-libs/openssl
"
DEPEND="${RDEPEND}"
RESTRICT="mirror"
src_prepare() {
cd "${S}"
sed -i -e 's!git2 = "0.13"!git2 = "0.14"!g' asyncgit/Cargo.toml
filter-flags -flto* # building fails when compiling with LTO
use trace-libgit || {
sed -i src/main.rs \
-e '/register_tracing_logging/d' \
|| die
}
default
}
src_install() {
local DOCS=( {README,KEY_CONFIG,THEMES}.md )
dobin "target/release/${PN}"
insinto "/usr/share/${P}/examples"
doins vim_style_key_config.ron
einstalldocs
}
pkg_postinst() {
einfo "Example of vim keybindings config stored in '/usr/share/${P}/examples'"
einfo 'to use it put example config in `$XDG_CONFIG_HOME/gitui/key_config.ron`'
}