diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-08-18 16:47:06 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-08-18 16:47:06 +0000 |
commit | b0c94236daaae94d028d9ffa9c8ae6ce8944cb81 (patch) | |
tree | 0bc01707f41548bf6f2167d8fab5a4a59c70e7a4 /dev-python/ipython/ipython-0.10.ebuild | |
parent | resurrect gtkhtml-3.12.3.ebuild which is still used (diff) | |
download | gentoo-2-b0c94236daaae94d028d9ffa9c8ae6ce8944cb81.tar.gz gentoo-2-b0c94236daaae94d028d9ffa9c8ae6ce8944cb81.tar.bz2 gentoo-2-b0c94236daaae94d028d9ffa9c8ae6ce8944cb81.zip |
Now installs doc and examples properly, fixing bug #280279
(Portage version: 2.2_rc38/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/ipython/ipython-0.10.ebuild')
-rw-r--r-- | dev-python/ipython/ipython-0.10.ebuild | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/dev-python/ipython/ipython-0.10.ebuild b/dev-python/ipython/ipython-0.10.ebuild index 40a35d42746f..18d4ad9404ae 100644 --- a/dev-python/ipython/ipython-0.10.ebuild +++ b/dev-python/ipython/ipython-0.10.ebuild @@ -1,10 +1,10 @@ # 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.10.ebuild,v 1.1 2009/08/17 14:53:32 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-0.10.ebuild,v 1.2 2009/08/18 16:47:06 bicatali Exp $ NEED_PYTHON=2.4 - -inherit distutils elisp-common +EAPI=2 +inherit eutils distutils elisp-common DESCRIPTION="An advanced interactive shell for Python." HOMEPAGE="http://ipython.scipy.org/" @@ -30,17 +30,22 @@ DEPEND="${CDEPEND} PYTHON_MODNAME="IPython" SITEFILE="62ipython-gentoo.el" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${PN}-0.9.1-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() { @@ -67,21 +72,8 @@ src_test() { 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 |