Remove Gentoo ebuild and reference raiagent overlay

This commit is contained in:
ZyX 2013-12-01 14:23:29 +04:00
parent db80fc95ed
commit ccf070cbcd
3 changed files with 1 additions and 141 deletions

View File

@ -13,7 +13,7 @@ still skim through this guide so you know how the plugin works.
* `Arch Linux (AUR), Python 2 version <https://aur.archlinux.org/packages/python2-powerline-git/>`_
* `Arch Linux (AUR), Python 3 version <https://aur.archlinux.org/packages/python-powerline-git/>`_
* Gentoo Live ebuild (:file:`packages/gentoo/app-misc/powerline/`)
* Gentoo Live ebuild in `raiagent <https://github.com/leycec/raiagent>`_ overlay
If you're running a distribution without an official package you'll have to
follow the installation guide below:

View File

@ -1 +0,0 @@
EBUILD powerline-9999.ebuild 4107 SHA256 721f3360196aa4caa3656ff6e051add2c70cbfc37e965fce9830ecb668148b81 SHA512 27660689e5a0cf86d17268a18fdd917abfb8b2d88b33049fe66f3394c9a85211f24e50af8df1f39d93d11e8bfd442e4636ed92821441daddb56ae9d34162296a WHIRLPOOL 602a2d0d36b1e80da9d1f00c019872369010cd413c4761c1f92a8f53ee5bfb63122d8c13e896700406bf71d99db5994bcd3c7ae46c07218d173bd7084f1a13f1

View File

@ -1,139 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-9999.ebuild,v 1.1 2013/01/11 09:59:31 mgorny Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
#if LIVE
EGIT_REPO_URI="https://github.com/Lokaltog/${PN}"
EGIT_BRANCH="develop"
inherit git
#endif
inherit distutils-r1 eutils font
DESCRIPTION="The ultimate statusline/prompt utility."
HOMEPAGE="http://github.com/Lokaltog/powerline"
SRC_URI=""
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="vim zsh doc awesome tmux bash ipython test git"
#if LIVE
SRC_URI=
KEYWORDS=
#endif
S="${WORKDIR}/${PN}"
COMMON_DEPEND="
virtual/python-argparse
"
RDEPEND="
${COMMON_DEPEND}
vim? ( || ( app-editors/vim[python] app-editors/gvim[python] ) )
awesome? ( >=x11-wm/awesome-3.5 )
git? ( || ( >=dev-vcs/git-1.7.2 >=dev-python/pygit2-0.17 ) )
"
DEPEND="
${COMMON_DEPEND}
doc? ( dev-python/sphinx dev-python/docutils )
test? (
python_targets_python2_6? ( virtual/python-unittest2 )
|| ( >=dev-vcs/git-1.7.2 >=dev-python/pygit2-0.17 )
python_targets_python2_6? (
dev-vcs/mercurial
dev-vcs/bzr
)
python_targets_python2_7? (
dev-vcs/mercurial
dev-vcs/bzr
)
)
"
FONT_SUFFIX="otf"
FONT_S="${S}/font"
FONT_CONF=(
"${FONT_S}/10-powerline-symbols.conf"
)
python_test() {
PYTHON="${PYTHON}" tests/test.sh || die "Tests fail with ${EPYTHON}"
}
src_compile() {
distutils-r1_src_compile
if use doc ; then
einfo "Generating documentation"
sphinx-build -b html docs/source docs_output
fi
}
src_install() {
unset DOCS
font_src_install
if use vim ; then
insinto /usr/share/vim/vimfiles/plugin
# Don't do sys.path.append, it points to wrong location
sed -i -e '/sys\.path\.append/d' powerline/bindings/vim/plugin/powerline.vim
doins powerline/bindings/vim/plugin/powerline.vim
fi
rm powerline/bindings/vim/plugin/powerline.vim
if use zsh ; then
insinto /usr/share/zsh/site-contrib
doins powerline/bindings/zsh/powerline.zsh
elog ""
elog "To enable powerline prompt in zsh add"
elog " . /usr/share/zsh/site-contrib/powerline.zsh"
elog "to your .zshrc."
fi
rm powerline/bindings/zsh/powerline.zsh
if use awesome ; then
elog ""
elog "To enable powerline statusline in awesome add"
elog " require(\"powerline\")"
elog "and"
elog " right_layout:add(powerline_widget)"
elog "to your .config/awesome/rc.lua. Assuming you were using"
elog "/etc/xdg/awesome/rc.lua as a template for you own configuration."
insinto /usr/share/awesome/lib/powerline
mv powerline/bindings/awesome/powerline.lua init.lua
doins init.lua
rm init.lua
exeinto /usr/share/awesome/lib/powerline
doexe powerline/bindings/awesome/powerline-awesome.py
else
rm powerline/bindings/awesome/powerline.lua
fi
rm powerline/bindings/awesome/powerline-awesome.py
# There are no standard location for this, thus using /usr/share/powerline
if use tmux ; then
elog ""
elog "To enable powerline statusline in tmux add"
elog " source /usr/share/powerline/tmux/powerline.conf"
elog "to your .tmux.conf."
insinto /usr/share/powerline/tmux
doins powerline/bindings/tmux/powerline.conf
fi
rm powerline/bindings/tmux/powerline.conf
if use bash ; then
insinto /usr/share/powerline/bash
doins powerline/bindings/bash/powerline.sh
elog ""
elog "To enable powerline prompt in bash add"
elog " . /usr/share/powerline/bash/powerline.sh"
elog "to your .bashrc/.profile."
fi
rm powerline/bindings/bash/powerline.sh
elog ""
insinto /etc/xdg/powerline
doins -r powerline/config_files/*
rm -r powerline/config_files
sed -i -e "/DEFAULT_SYSTEM_CONFIG_DIR/ s@None@'/etc/xdg'@" powerline/__init__.py
distutils-r1_src_install
use doc && dohtml -r docs_output/*
}