blob: 2c4a7577b00aae12a3387d962a0c6775e4f77539 (
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
|
# Copyright 2017-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
inherit cargo readme.gentoo-r1
DESCRIPTION="Context-aware bash history search replacement (ctrl-r)"
HOMEPAGE="https://github.com/cantino/mcfly"
SRC_URI="https://github.com/cantino/mcfly/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
SRC_URI+="https://dev.gentoo.org/~arthurzam/distfiles/app-shells/${PN}/${P}-crates.tar.xz"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB
|| ( Apache-2.0 Boost-1.0 )
"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/bin/mcfly"
src_install() {
cargo_src_install
insinto /usr/share/${PN}
doins ${PN}.{bash,fish,zsh}
# create README.gentoo
local DISABLE_AUTOFORMATTING="yes"
local DOC_CONTENTS=\
"To start using ${PN}, add the following to your shell:
~/.bashrc
eval \"\$(mcfly init bash)\"
~/.config/fish/config.fish
mcfly init fish | source
~/.zsh
eval \"\$(mcfly init zsh)\""
readme.gentoo_create_doc
einstalldocs
}
pkg_postinst() {
readme.gentoo_print_elog
}
|