summaryrefslogtreecommitdiff
blob: a77ca116a3abae76b9448eee1227b53b50aaa1c1 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pexpect/pexpect-0.94.ebuild,v 1.8 2003/06/21 22:30:24 drobbins Exp $

IUSE=""

DESCRIPTION="Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output"
HOMEPAGE="http://pexpect.sourceforge.net/"
SRC_URI="mirror://sourceforge/pexpect/pexpect-0.94.tgz"
LICENSE="PYTHON"
SLOT="0"
KEYWORDS="x86 amd64 ppc ~alpha sparc"
DEPEND="dev-lang/python"

src_compile() {
    python -c 'import compileall; compileall.compile_dir(".",force=1)'
}

src_install () {
    local pv=`python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:'`
    insinto "/usr/lib/python${pv}/site-packages"

    doins pexpect.py*
    dodoc README.txt
}