From 1072ce13180e66f5fe13d9964aced9c292d50027 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 10 Oct 2017 11:39:06 +0200 Subject: [PATCH] rename over-prompt -> over-env, version bump --- app-shells/over-env/over-env-9999.ebuild | 67 ++++++++++++++++++ .../over-prompt/over-prompt-9999-r1.ebuild | 70 ------------------- 2 files changed, 67 insertions(+), 70 deletions(-) create mode 100644 app-shells/over-env/over-env-9999.ebuild delete mode 100644 app-shells/over-prompt/over-prompt-9999-r1.ebuild diff --git a/app-shells/over-env/over-env-9999.ebuild b/app-shells/over-env/over-env-9999.ebuild new file mode 100644 index 0000000..de08856 --- /dev/null +++ b/app-shells/over-env/over-env-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit git-2 + +DESCRIPTION="A collection of zsh settings and scripts, including a nonintrusive and informative zsh prompt." + +HOMEPAGE="https://git.covalent.cz/overwatch/over-prompt" +SRC_URI="" +EGIT_REPO_URI="https://git.covalent.cz/overwatch/over-prompt.git" + +LICENSE="AO-JSL" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="+tools +prompt +locale +screen" + +RDEPEND=" + tools? ( dev-python/psutil )" + +src_compile() { + if use prompt; then + ewarn "This is a prototype written in Python. Expect lower performance." + fi +} + +src_install() { + if use tools; then + for b in bin/* + do + dobin "${b}" + done + + for sb in sbin/* + do + dosbin "${sb}" + done + fi + + if use prompt; then + /bin/bash install.sh ${D} + fi + + insopts -m644 + insinto /etc/ + doins etc/over-env + doins etc/zsh + + if use screen; then + doins etc/screenrc + doins etc/screenrc.over + fi + + if use locale; then + insinto /usr/share/i18n/locales/ + doins locale/en_OV + fi +} + +pkg_postinst() { + if use prompt; then + einfo "Source /usr/lib/over/env/prompt-init to enable the prompt." + einfo "The config file is in /etc/over-env/." + fi +} diff --git a/app-shells/over-prompt/over-prompt-9999-r1.ebuild b/app-shells/over-prompt/over-prompt-9999-r1.ebuild deleted file mode 100644 index d783db7..0000000 --- a/app-shells/over-prompt/over-prompt-9999-r1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit git-2 - -DESCRIPTION="A nonintrusive zsh prompt that provides useful data like pwd, git info and system stats to the user." - -HOMEPAGE="https://git.covalent.cz/overwatch/over-prompt" -SRC_URI="" -EGIT_REPO_URI="https://git.covalent.cz/overwatch/over-prompt.git" - -LICENSE="AOJSL" -SLOT="0" -KEYWORDS="x86 amd64" -IUSE="+dotfiles +tools" - -RDEPEND=" - tools? ( dev-python/psutil )" - -src_compile() { - ewarn "This is a prototype written in Python. Expect lower performance." - #g++ -ansi -Wall -o data data.cpp -} - -src_install() { - if use tools; then - for b in bin/* - do - dobin "${b}" - done - - for sb in sbin/* - do - dosbin "${sb}" - done - fi - - insopts -m755 - - insinto /usr/libexec/ - newins libexec/render.py ${PN}.py - - insinto /usr/share/${PN}/ - doins share/zsh-init - - if use dotfiles; then - pushd dotfiles > /dev/null - - einfo "Installing dotfiles." - zsh deploy-dotfiles.zsh system "${D}" - - popd > /dev/null - fi - - insopts -m644 - - insinto /etc/${PN}/ - doins cfg/main.cfg - - insinto /usr/share/i18n/locales/ - doins locale/en_OV -} - -pkg_postinst() { - einfo "Source /usr/share/${PN}/zsh-init to enable the prompt." - einfo "The config file is in /etc/${PN}/." -}