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

Contents of /eclass/distutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Feb 16 04:26:21 2003 UTC (11 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.4: +4 -2 lines
header fixes

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

  ViewVC Help
Powered by ViewVC 1.1.20