Add Gentoo live ebuild

Still needed to push this ebuild to some overlay or main tree; otherwise
it requires more effort to use.

Users need to use

    eselect fontconfig enable 10-powerline-symbols.conf

to actually use the fontconfig file (should be added to the docs).
Ebuild itself installs the file, but doesn't enable it.
This commit is contained in:
ZyX 2013-01-19 16:24:53 +04:00 committed by Kim Silkebækken
parent 7d668de169
commit 41da160339
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD powerline-9999.ebuild 1443 SHA256 e89bb14e6d1e6e99318bbfbbcda46ed69f5589b3e472a37de30a04a1ba72fb49 SHA512 b1da8c33b1886b697d80f9969417a93a2fcdd4e6601d71c35d18f85bc0cbb161981374c10446dc5a9ccf0fd9a244d8389e294f5d6a97f714b401bce1f03ac844 WHIRLPOOL 2b5706b9113deff373adb384e92d42a697338e75b09bb8bdc6339f6d8aaaa4fb8452dac313d8b7e9e3012acc2a694a9cc0266a4b2a232ab7f1f4616af46e8460

View File

@ -0,0 +1,54 @@
# 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=( python2_7 )
#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="CC-Attribution-ShareAlike-3.0"
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 doc"
#if LIVE
SRC_URI=
KEYWORDS=
#endif
S="${WORKDIR}/${PN}"
RDEPEND="vim? ( || ( app-editors/vim[python] app-editors/gvim[python] ) )"
DEPEND="doc? ( dev-python/sphinx dev-python/docutils )"
FONT_SUFFIX="otf"
FONT_S="${S}/font"
FONT_CONF=(
"${FONT_S}/10-powerline-symbols.conf"
)
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
distutils-r1_src_install
use doc && dohtml -r docs_output/*
}