| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.80 2011/04/12 18:49:03 arfrever Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.81 2012/01/01 05:02:27 floppym Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: distutils.eclass |
5 | # @ECLASS: distutils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Gentoo Python Project <python@gentoo.org> |
7 | # Gentoo Python Project <python@gentoo.org> |
| 8 | # @BLURB: Eclass for packages with build systems using Distutils |
8 | # @BLURB: Eclass for packages with build systems using Distutils |
| 9 | # @DESCRIPTION: |
9 | # @DESCRIPTION: |
| 10 | # The distutils eclass defines phase functions for packages with build systems using Distutils. |
10 | # The distutils eclass defines phase functions for packages with build systems using Distutils. |
| 11 | |
11 | |
|
|
12 | if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then |
|
|
13 | inherit python |
|
|
14 | fi |
|
|
15 | |
| 12 | inherit multilib python |
16 | inherit multilib |
| 13 | |
17 | |
| 14 | case "${EAPI:-0}" in |
18 | case "${EAPI:-0}" in |
| 15 | 0|1) |
19 | 0|1) |
| 16 | EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm |
20 | EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm |
| 17 | ;; |
21 | ;; |