summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Nelson <jnelson@gentoo.org>2002-08-02 00:46:54 +0000
committerJon Nelson <jnelson@gentoo.org>2002-08-02 00:46:54 +0000
commitfe6a91c2aeb4b0f0310831c2e4cc2e16cb863a3f (patch)
treeb4f6ea82fef78335e182e429e52e8fe4afa9fbba /eclass/distutils.eclass
parentVersion bump. (diff)
downloadgentoo-2-fe6a91c2aeb4b0f0310831c2e4cc2e16cb863a3f.tar.gz
gentoo-2-fe6a91c2aeb4b0f0310831c2e4cc2e16cb863a3f.tar.bz2
gentoo-2-fe6a91c2aeb4b0f0310831c2e4cc2e16cb863a3f.zip
add distutils.eclass
Diffstat (limited to 'eclass/distutils.eclass')
-rw-r--r--eclass/distutils.eclass25
1 files changed, 25 insertions, 0 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass
new file mode 100644
index 000000000000..c64f53aae919
--- /dev/null
+++ b/eclass/distutils.eclass
@@ -0,0 +1,25 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2
+# Author: Jon Nelson <jnelson@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.1 2002/08/02 00:46:54 jnelson Exp $
+# The distutils eclass is designed to allow easier installation of
+# distutils-based python modules, and their incorporation into
+# the Gentoo Linux system.
+
+ECLASS=distutils
+INHERITED="$INHERITED $ECLASS"
+
+EXPORT_FUNCTIONS src_compile src_install
+
+newdepend ">=dev-lang/python"
+
+distutils_src_compile() {
+ python setup.py build || die "compilation failed"
+}
+
+distutils_src_install() {
+ python setup.py install --root=${D} || die
+ dodoc CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS
+ dodoc CONTRIBUTORS LICENSE COPYING*
+ dodoc Change* MANIFEST* README* ${mydoc}
+}