blob: 3a3e3d3dbc98f3db874fe06b25c13d93d507d41e (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/happydoc/happydoc-3.1.ebuild,v 1.1 2009/02/25 20:59:37 neurogeek Exp $
inherit distutils versionator
MY_PN="HappyDoc"
MY_PV=$(replace_all_version_separators "_" ${PV})
MY_V=$(get_major_version ${PV})
DESCRIPTION="tool for extracting documentation from Python sourcecode"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}_r${MY_PV}.tar.gz"
HOMEPAGE="http://happydoc.sourceforge.net/"
SLOT="0"
LICENSE="as-is"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND="virtual/python"
# the tests need extra data not present in the release tarball
RESTRICT=test
S="${WORKDIR}/${MY_PN}${MY_V}-r${MY_PV}"
src_unpack() {
unpack ${A}
cd "${S}"
cp "${FILESDIR}/${P}-setup.py" "${S}/setup.py" || die "setup.py file not found"
}
src_install() {
distutils_src_install
if use doc; then
dohtml -r "srcdocs/${MY_PN}${MY_V}-r${MY_PV}"/*
fi
}
|