mirror of
https://github.com/TrentSPalmer/gentoo-overlay-trent.git
synced 2024-11-21 10:01:31 -08:00
add oh-my-zsh-20190410
This commit is contained in:
parent
cc007103dc
commit
7a4fb0c1eb
@ -1,4 +1,5 @@
|
||||
EBUILD oh-my-zsh-20190407.ebuild 2067 BLAKE2B 8e8341cae4535ff61e100f78ed4d628f2bf987a3f1b89a7de11ff8f4a0c7832ed749fd2a4683bf308e6e6d87b9ecf2c93341e685525e80a83052d4e2cd00b52f SHA512 5805ef5bc31cc2473c0b3f7cc11b54e7ef14bd489c10755805a8829f6430e4b415414104ed5f32c2e136277fa0a5b5ff04cb8ee628331fa68c6a61e5d9283cd3
|
||||
EBUILD oh-my-zsh-20190409.ebuild 2067 BLAKE2B b756e22f04f73808fa736051434a3c1c11b16a9d5a03b2d001b6086ae2b948a447ab5243092c42a17c87d1a2a085e180ec5426a3021a5aac3872d85b761fd853 SHA512 35fd81053034caf79c3a662d6c2a475ec4a73f8b46315c1c9a4110eac6d76f5153d22585648ff14538af9e5b5358052a18a25f476a0160c6f58d9d5516f63935
|
||||
EBUILD oh-my-zsh-20190410.ebuild 2067 BLAKE2B ad7c56e77d71a23f1c74d4ac1bc1a2d280768d402cfadf854bb912c4caa8c3bc6edfa9bc8ee2704afe77ea67847fd75b7b1386c0c03c1ccb04952eab4be7afbe SHA512 2aca62ed2c49c3ef7ab45fe89d26fcd0a12f5f49eb0e94c87d54dabd59ca8c08649e00e3e356329d597c27a11ccaa4af45cd00b21f1c529e3c0efb33fcd2c2cc
|
||||
MISC README.md 206 BLAKE2B b60e00695526573cb1231a568ebdcc79654043923e2f01f258d28f2b24db41cf3d48ea0354daaf0c28c154dcf64ba8ee28ce583dbae9beef01f702a7ee006a36 SHA512 4252c5f2f3d2b29f8e9ae11f66d9a8e7a99ce8522b50b89ccbd54d06bf73b50dc0b0c3b882c21431828da5bc3561b63fe62b9fac6570a55f792bd2abd202d0a8
|
||||
MISC metadata.xml 222 BLAKE2B f0ecd2d956de9c731b8a6b6860f8756cb8dba0591f73463ce32d2747a1aa21296886faea89feee2b208286bbcdfe8e2e0a64263a92e954615fa94e2852d933d5 SHA512 dad470f0096a4fb3af9eeb60dab3216ece032790f6c49a3b014799ee0c02dee96a67317a672344e32f5614c5e05419727cc99113c6ecc37ae594931dd6441eef
|
||||
|
67
app-shells/oh-my-zsh/oh-my-zsh-20190410.ebuild
Normal file
67
app-shells/oh-my-zsh/oh-my-zsh-20190410.ebuild
Normal 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="b57c0ac6e250aaf70eff28224c5edbbb79d05406"
|
||||
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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user