blob: 8be4e805497f4549866c2b6a78db18d56205eda8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/epydoc/epydoc-3.0.1-r1.ebuild,v 1.2 2010/02/08 08:50:03 pva Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit eutils distutils
DESCRIPTION="Tool for generating API documentation for Python modules, based on their docstrings"
HOMEPAGE="http://epydoc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="doc latex X"
DEPEND=""
RDEPEND="dev-python/docutils
latex? ( virtual/latex-base
|| ( dev-texlive/texlive-latexextra app-text/ptex )
)
X? ( dev-lang/python[tk] )"
RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
# bug #287546, thanks to Engelbert Gruber <grubert@users.sourceforge.net>
# and Martin von Gagern <Martin.vGagern@gmx.net>
epatch "${FILESDIR}"/${PN}-docutils-0.6.patch
# bug #288273, thanks to Andre Malo <nd@perlig.de>
epatch "${FILESDIR}"/${PN}-python-2.6.patch
}
src_install() {
[[ -z ${ED} ]] && local ED=${D}
distutils_src_install
doman man/*
use doc && dohtml -r doc/*
use X || rm -f "${ED}usr/bin/epydocgui"
}
|