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

Contents of /eclass/distutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 2 01:44:05 2002 UTC (11 years, 11 months ago) by jnelson
Branch: MAIN
Changes since 1.1: +2 -2 lines
fix STUPID depends of ">=dev-lang/python"

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 jnelson 1.2 # $Header: /home/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.1 2002/08/02 00:46:54 jnelson Exp $
5 jnelson 1.1 # 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 jnelson 1.2 newdepend "virtual/python"
15 jnelson 1.1
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