Commit da8ae44a authored by Root's avatar Root

Add oh-my-zsh

parent 7bd969f4
EBUILD oh-my-zsh-9999.ebuild 1305 SHA256 0a4e28b28eee2cb259b3dcee5b96c3aec23b2bd01e59841f6abbf209483ebf36 SHA512 a6fc403c8c295515e2310e5caa274a89bbd669c4753ce0391dd3d9e8f524c365062393768da4158276d06f973337e450d90553b6e85cd7bb3faf1bf31372fc2e WHIRLPOOL ab6db55febcb99eabc67e634b375c998ee2d8b9915fcd8826cc3007047dcf98cebd7ba0e10aac7ab27c9c96e54de1c3220e2fefac4bc20d02bd27e0b3234b5b8
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
EGIT_REPO_URI="git://github.com/robbyrussell/${PN}.git"
inherit eutils git-r3 readme.gentoo
DESCRIPTION="A ready-to-use zsh configuration with plugins"
HOMEPAGE="https://github.com/robbyrussell/oh-my-zsh"
SRC_URI=""
LICENSE="ZSH"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
PROPERTIES="live"
RDEPEND="app-shells/zsh"
ZSH_DEST="/usr/share/zsh/site-contrib/${PN}"
ZSH_EDEST="${EPREFIX}${ZSH_DEST}"
ZSH_TEMPLATE="templates/zshrc.zsh-template"
DISABLE_AUTOFORMATTING="true"
DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add to your ~/.zshrc
source '${ZSH_DEST}/${ZSH_TEMPLATE}'
or copy a modification of that file to your ~/.zshrc
If you just want to try, enter the above command in your zsh."
src_prepare() {
local i
for i in "${S}"/tools/*install* "${S}"/tools/*upgrade*
do test -f "${i}" && : >"${i}"
done
sed -i -e 's!^ZSH=.*$!ZSH='"${ZSH_EDEST}"'!' \
-e 's!~/.oh-my-zsh!'"${ZSH_EDEST}"'!' "${S}/${ZSH_TEMPLATE}"
sed -i -e 's!~/.oh-my-zsh!'"${ZSH_EDEST}"'!' \
"${S}/plugins/dirpersist/dirpersist.plugin.zsh"
sed -i -e '/zstyle.*cache/d' "${S}/lib/completion.zsh"
epatch_user
}
src_install() {
insinto "${ZSH_DEST}"
doins -r *
readme.gentoo_create_doc
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment