/[gentoo-x86]/eclass/distutils.eclass
Gentoo

Contents of /eclass/distutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Aug 2 00:46:54 2002 UTC (12 years, 2 months ago) by jnelson
Branch: MAIN
add distutils.eclass

1 jnelson 1.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.16 2002/07/29 17:34:12 seemant 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 ">=dev-lang/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     }

  ViewVC Help
Powered by ViewVC 1.1.20