commit: 772923c6077f36d7ecf079be06b9a8c72c1bf915
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Fri Jan 23 17:38:45 2015 +0000
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Fri Jan 23 17:38:45 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=772923c6
dev-python/bokeh: Replace pkg_postinst by readme.gentoo
---
dev-python/bokeh/bokeh-0.7.1.ebuild | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/dev-python/bokeh/bokeh-0.7.1.ebuild
b/dev-python/bokeh/bokeh-0.7.1.ebuild
index 88d4e69..63072d3 100644
--- a/dev-python/bokeh/bokeh-0.7.1.ebuild
+++ b/dev-python/bokeh/bokeh-0.7.1.ebuild
@@ -6,7 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
-inherit distutils-r1
+inherit distutils-r1 readme.gentoo
DESCRIPTION="Statistical and interactive HTML plots for Python"
HOMEPAGE="http://bokeh.pydata.org/"
@@ -59,6 +59,8 @@ PATCHES=( "${FILESDIR}"/${P}-setup.patch )
DISTUTILS_NO_PARALLEL_BUILD=1
python_prepare_all() {
+ DOC_CONTENTS="websockets work only with python2_7"
+
sed -i -e "s/jsbuild = get_user_jsargs()/jsbuild = False/g" setup.py ||
die
cd bokehjs || die
npm install ||die
@@ -69,6 +71,8 @@ python_prepare_all() {
}
python_install_all() {
+ readme.gentoo_create_doc
+
use examples && local EXAMPLES=( examples/. )
distutils-r1_python_install_all
@@ -82,15 +86,3 @@ python_test() {
-e usermodel_test \
|| die
}
-
-pkg_postinst() {
- elog "websockets work only with python2_7"
- local chaco_msg="chaco useflag doesn't affect python targets other than
python2_7"
- if use chaco; then
- if use python_targets_python2_7; then
- elog "${chaco_msg}"
- else
- ewarn "${chaco_msg}"
- fi
- fi
-}