aboutsummaryrefslogtreecommitdiff
blob: 9ee5eaef511b8ec5d8ad7057bbe5be2f79789222 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

NEED_PYTHON=2.3

inherit distutils eutils

DESCRIPTION="Python library that creates call graphs for Python programs."
HOMEPAGE="http://pycallgraph.slowchop.com/"
SRC_URI="http://${PN}.slowchop.com/files/download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

DEPEND=""
RDEPEND="media-gfx/graphviz"

src_install() {
	distutils_src_install

	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins -r examples/*
	fi

	edos2unix "${D}"/usr/bin/*
	sed -i \
		-e '1 s:\(.*\):#!/usr/bin/env python\n\1:g' \
		"${D}"/usr/bin/pycallgraph-dot.py \
		|| die
}