1 |
# Copyright 2002 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License, v2 |
3 |
# Author: Jon Nelson <jnelson@gentoo.org> |
4 |
# $Header: /home/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.1 2002/08/02 00:46:54 jnelson Exp $ |
5 |
# The distutils eclass is designed to allow easier installation of |
6 |
# distutils-based python modules, and their incorporation into |
7 |
# the Gentoo Linux system. |
8 |
|
9 |
ECLASS=distutils |
10 |
INHERITED="$INHERITED $ECLASS" |
11 |
|
12 |
EXPORT_FUNCTIONS src_compile src_install |
13 |
|
14 |
newdepend "virtual/python" |
15 |
|
16 |
distutils_src_compile() { |
17 |
python setup.py build || die "compilation failed" |
18 |
} |
19 |
|
20 |
distutils_src_install() { |
21 |
python setup.py install --root=${D} || die |
22 |
dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS |
23 |
dodoc CONTRIBUTORS LICENSE COPYING* |
24 |
dodoc Change* MANIFEST* README* ${mydoc} |
25 |
} |