diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-01-27 16:37:28 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-01-27 16:37:28 +0000 |
commit | a74ab90b54156b5ce87eed5daf415f5689cae688 (patch) | |
tree | 7455fd2272197afc94b8e50e526a0b62ec2939aa /eclass | |
parent | Introduce run_in_build_dir() function as used by GNOME ebuilds. (diff) | |
download | gentoo-2-a74ab90b54156b5ce87eed5daf415f5689cae688.tar.gz gentoo-2-a74ab90b54156b5ce87eed5daf415f5689cae688.tar.bz2 gentoo-2-a74ab90b54156b5ce87eed5daf415f5689cae688.zip |
Support making dependency and phase function enforcement optional.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/distutils-r1.eclass | 24 |
2 files changed, 24 insertions, 5 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 273524cf2821..3b2f22e9855c 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.648 2013/01/27 16:36:21 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.649 2013/01/27 16:37:28 mgorny Exp $ + + 27 Jan 2013; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass: + Support making dependency and phase function enforcement optional. 27 Jan 2013; Michał Górny <mgorny@gentoo.org> python-r1.eclass: Introduce run_in_build_dir() function as used by GNOME ebuilds. diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index d1d99780f6be..b5ab8e2570ff 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.46 2013/01/20 21:41:08 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.47 2013/01/27 16:37:28 mgorny Exp $ # @ECLASS: distutils-r1 # @MAINTAINER: @@ -54,18 +54,34 @@ case "${EAPI:-0}" in ;; esac +# @ECLASS-VARIABLE: DISTUTILS_OPTIONAL +# @DEFAULT_UNSET +# @DESCRIPTION: +# If set to a non-null value, distutils part in the ebuild will +# be considered optional. No dependencies will be added and no phase +# functions will be exported. +# +# If you enable DISTUTILS_OPTIONAL, you have to set proper dependencies +# for your package (using ${PYTHON_DEPS}) and to either call +# distutils-r1 default phase functions or call the build system +# manually. + if [[ ! ${_DISTUTILS_R1} ]]; then inherit eutils multiprocessing python-r1 fi -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install +if [[ ! ${DISTUTILS_OPTIONAL} ]]; then + EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install +fi if [[ ! ${_DISTUTILS_R1} ]]; then -RDEPEND=${PYTHON_DEPS} -DEPEND=${PYTHON_DEPS} +if [[ ! ${DISTUTILS_OPTIONAL} ]]; then + RDEPEND=${PYTHON_DEPS} + DEPEND=${PYTHON_DEPS} +fi # @ECLASS-VARIABLE: DISTUTILS_JOBS # @DEFAULT_UNSET |