mirror of
https://github.com/TrentSPalmer/gentoo-overlay-trent.git
synced 2024-11-14 07:31:30 -08:00
42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
|
# Copyright 1999-2018 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
DESCRIPTION="grml's zsh setup"
|
||
|
# https://grml.org/zsh/
|
||
|
HOMEPAGE="https://github.com/grml/grml-etc-core"
|
||
|
# https://deb.grml.org/pool/main/g/grml-etc-core/grml-etc-core_${PV}.tar.gz -> ${P}.tar.gz
|
||
|
SRC_URI="https://github.com/grml/grml-etc-core/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86 arm"
|
||
|
IUSE="+doc"
|
||
|
|
||
|
DEPEND="doc? ( app-text/txt2tags )"
|
||
|
RDEPEND="${DEPEND}
|
||
|
app-shells/zsh
|
||
|
sys-process/procps
|
||
|
sys-apps/grep
|
||
|
sys-apps/coreutils
|
||
|
sys-apps/sed"
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
cd "${WORKDIR}"
|
||
|
mv grml-etc-core-"${PV}" "${P}"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
cd "${S}/doc"
|
||
|
use doc && make
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
install -D -m644 "${S}/etc/skel/.zshrc" "${D}/etc/skel/.zshrc"
|
||
|
install -D -m644 "${S}/etc/zsh/keephack" "${D}/etc/zsh/keephack"
|
||
|
install -D -m644 "${S}/etc/zsh/zshrc" "${D}/etc/zsh/zshrc"
|
||
|
use doc && install -D -m644 "${S}/doc/grmlzshrc.5" "${D}/usr/share/man/man5/grmlzshrc.5"
|
||
|
}
|