add oh-my-zsh-20190115

This commit is contained in:
layman 2019-01-15 11:02:32 -08:00
parent ac417a962a
commit 1a352f43b2
2 changed files with 68 additions and 0 deletions

View File

@ -1,4 +1,5 @@
EBUILD oh-my-zsh-20181128.ebuild 2067 BLAKE2B e4c6b2cec2e4e014eaaf8a9947e444f67a76f2e5da6c5dff5915cabcc98bc6dcb031171925bc3010c43df638a5528062c3fc5cac6245dfc25c8a86e9ab28e4e5 SHA512 f6e8898e7f3f9ca07b01ff7daea681b74f376c37f2a98c66d28c24b076fd82a1726eb3452b7f45af49a05e3b3b025790719b3b449a767993de1512977cfa0ab0
EBUILD oh-my-zsh-20190103.ebuild 2067 BLAKE2B 839b7b5165daeef24e87f8621582b0ad5ce49532c706f7a20ef85d791dcc3fb473fe858aaef280edc4f9f5f6558bf3373040636b3f079b7a5bd77c096f017753 SHA512 4aeec3e303f3862d3eaf36b9509bd836bd509b7f297bf9c85dd8b5c9d7330422b876e24fd0a9910eead839732798ce669bd79954c63d926d44dbb48922d31c82
EBUILD oh-my-zsh-20190115.ebuild 2067 BLAKE2B 7be7837dffc6803d107f51cd1016d0d5dd693c4310609493c435ecb76f968d0359811e58c30b25d40b04fed478f1bedac1fb52581bd14a1618608ab160c3caaa SHA512 308d15c5d58bd4c94854ae4f1e981f1f0b492e597eee316115458c63b714f3532e4e6eda8c89eecfe72c7e162bb5604bed5e59c9bc539146a1c8b1a901df81b3
MISC README.md 206 BLAKE2B b60e00695526573cb1231a568ebdcc79654043923e2f01f258d28f2b24db41cf3d48ea0354daaf0c28c154dcf64ba8ee28ce583dbae9beef01f702a7ee006a36 SHA512 4252c5f2f3d2b29f8e9ae11f66d9a8e7a99ce8522b50b89ccbd54d06bf73b50dc0b0c3b882c21431828da5bc3561b63fe62b9fac6570a55f792bd2abd202d0a8
MISC metadata.xml 222 BLAKE2B f0ecd2d956de9c731b8a6b6860f8756cb8dba0591f73463ce32d2747a1aa21296886faea89feee2b208286bbcdfe8e2e0a64263a92e954615fa94e2852d933d5 SHA512 dad470f0096a4fb3af9eeb60dab3216ece032790f6c49a3b014799ee0c02dee96a67317a672344e32f5614c5e05419727cc99113c6ecc37ae594931dd6441eef

View File

@ -0,0 +1,67 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGIT_REPO_URI="https://github.com/robbyrussell/oh-my-zsh.git"
EGIT_COMMIT="586ca16902d9dae4d95d5256a824572f60219c83"
inherit git-r3 readme.gentoo-r1
DESCRIPTION="A ready-to-use zsh configuration with plugins"
HOMEPAGE="https://github.com/robbyrussell/oh-my-zsh"
SRC_URI=""
LICENSE=MIT
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="+doc"
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!\(^export ZSH=.*$\)!# \1\nexport ZSH='"${ZSH_DEST}"'!' \
-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"
eapply_user
}
src_install() {
insinto "${ZSH_DEST}"
doins -r *
use doc && readme.gentoo_create_doc
use doc && dodoc CONTRIBUTING.md LICENSE.txt README.md
cd "${D}"
use doc || find -name README.md -exec rm -rf {} +
use doc || find -name README -exec rm -rf {} +
use doc || find -name README.txt -exec rm -rf {} +
use doc || find -name CONTRIBUTING.md -exec rm -rf {} +
use doc || find -name .git* -exec rm -rf {} +
}
pkg_postinst() {
use doc && readme.gentoo_print_elog
elog "${DOC_CONTENTS}"
}