2018-02-21 10:05:05 -08:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
DESCRIPTION="grml's zsh setup"
|
2018-11-21 02:57:00 -08:00
|
|
|
# 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"
|
2018-02-21 10:05:05 -08:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2019-04-01 20:14:12 -07:00
|
|
|
KEYWORDS="amd64 x86 arm"
|
2018-02-22 15:09:43 -08:00
|
|
|
IUSE="+doc"
|
2018-02-21 10:05:05 -08:00
|
|
|
|
2018-02-22 15:09:43 -08:00
|
|
|
DEPEND="doc? ( app-text/txt2tags )"
|
2018-02-21 10:05:05 -08:00
|
|
|
RDEPEND="${DEPEND}
|
2018-02-23 07:35:55 -08:00
|
|
|
app-shells/zsh
|
|
|
|
sys-process/procps
|
|
|
|
sys-apps/grep
|
|
|
|
sys-apps/coreutils
|
|
|
|
sys-apps/sed"
|
2018-02-21 10:05:05 -08:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd "${WORKDIR}"
|
|
|
|
mv grml-etc-core-"${PV}" "${P}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2018-02-23 07:35:55 -08:00
|
|
|
cd "${S}/doc"
|
2018-02-22 15:09:43 -08:00
|
|
|
use doc && make
|
2018-02-21 10:05:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2018-02-23 07:35:55 -08:00
|
|
|
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"
|
2018-02-21 10:05:05 -08:00
|
|
|
}
|