summaryrefslogtreecommitdiff
path: root/sys-apps/shellrc/shellrc-0.1-r2.ebuild
blob: 9f32ce6b8d1cc542e32dded3a847f0d7bdee256a (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
EAPI=6

DESCRIPTION="Shell initialization files"
HOMEPAGE="https://git.cynerd.cz/shellrc/"
SRC_URI="https://git.cynerd.cz/shellrc/snapshot/${P}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3.0+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="desktop +zsh +bash"

DEPEND="zsh? ( app-shells/zsh )
        bash? ( app-shells/bash )
        desktop? ( x11-misc/xclip media-gfx/imagemagick )
"
RDEPEND="${DEPEND}"

src_install() {
	dodir /etc
	insinto /etc
	doins -r "${S}/shellrc.d"

	if use bash; then
		dodir /etc/bash/bashrc.d
		insinto /etc/bash
		doins -r "${S}/bashrc.d"
		dodir /usr/share/bash-completion/completions
		insinto /usr/share/bash-completion/completions
		doins -r "${S}"/bash-completion/*
	fi

	if use zsh; then
		dodir /etc/zsh
		insinto /etc/zsh
		doins "${S}/zshrc"
		doins -r "${S}/zshrc.d"
		dodir /usr/share/zsh/site-functions
		insinto /usr/share/zsh/site-functions
		doins -r "${S}"/zsh-completion/*
	fi
}