summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-08-18 16:47:06 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-08-18 16:47:06 +0000
commit7715b6e16255282bc37200edd469b59193e8ee9d (patch)
treeacc77392b509c7f0f997d7e44e271c33aeec6854 /dev-python/ipython/ipython-0.9.1.ebuild
parentresurrect gtkhtml-3.12.3.ebuild which is still used (diff)
downloadhistorical-7715b6e16255282bc37200edd469b59193e8ee9d.tar.gz
historical-7715b6e16255282bc37200edd469b59193e8ee9d.tar.bz2
historical-7715b6e16255282bc37200edd469b59193e8ee9d.zip
Now installs doc and examples properly, fixing bug #280279
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
Diffstat (limited to 'dev-python/ipython/ipython-0.9.1.ebuild')
-rw-r--r--dev-python/ipython/ipython-0.9.1.ebuild35
1 files changed, 15 insertions, 20 deletions
diff --git a/dev-python/ipython/ipython-0.9.1.ebuild b/dev-python/ipython/ipython-0.9.1.ebuild
index 083754f2ff53..6d537a550a9e 100644
--- a/dev-python/ipython/ipython-0.9.1.ebuild
+++ b/dev-python/ipython/ipython-0.9.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-0.9.1.ebuild,v 1.10 2009/08/01 12:18:05 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-0.9.1.ebuild,v 1.11 2009/08/18 16:47:06 bicatali Exp $
NEED_PYTHON=2.4
@@ -34,13 +34,20 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-globalpath.patch
-
sed -i \
- -e '/examfiles)/d' \
- -e '/manfiles)/d' \
- -e '/manstatic)/d' \
- -e 's/^docfiles.*/docfiles=""/' \
- setup.py || die "sed failed"
+ -e "s:share/doc/ipython:share/doc/${PF}:" \
+ setupbase.py || die "sed failed"
+ if ! use doc; then
+ sed -i \
+ -e '/extensions/d' \
+ -e 's/+ manual_files//' \
+ setupbase.py || die "sed failed"
+ fi
+ if ! use examples; then
+ sed -i \
+ -e 's/+ example_files//' \
+ setupbase.py || die "sed failed"
+ fi
}
src_compile() {
@@ -68,20 +75,8 @@ src_install() {
DOCS="docs/source/changes.txt"
distutils_src_install
- cd docs
- insinto "/usr/share/doc/${PF}"
-
- if use doc; then
- doins -r dist/* || die "doc install failed"
- doins "${S}"/IPython/Extensions/igrid_help* || die
- fi
-
- if use examples ; then
- doins -r examples || die "examples install failed"
- fi
-
if use emacs ; then
- pushd emacs
+ pushd docs/emacs
elisp-install ${PN} ${PN}.el* || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
popd