summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-12-27 19:00:10 +0000
committerMichał Górny <mgorny@gentoo.org>2014-12-27 19:00:10 +0000
commit4ff5fc01875a84782cc4fa855a09f3bb39163159 (patch)
treefe4e59e6dcb6f72c78bafc2d4bdc94c6caa06199 /eclass
parentConvert to distutils-r1. (diff)
downloadhistorical-4ff5fc01875a84782cc4fa855a09f3bb39163159.tar.gz
historical-4ff5fc01875a84782cc4fa855a09f3bb39163159.tar.bz2
historical-4ff5fc01875a84782cc4fa855a09f3bb39163159.zip
Add die-replacements for distutils.eclass functions, to help finding mistakes in conversions.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/distutils-r1.eclass36
2 files changed, 40 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index c1d6d54979cf..615d9f62f8a5 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1476 2014/12/27 18:26:21 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1477 2014/12/27 19:00:10 mgorny Exp $
+
+ 27 Dec 2014; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
+ Add die-replacements for distutils.eclass functions, to help finding mistakes
+ in conversions.
27 Dec 2014; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass:
Add die-replacements for python.eclass functions, to help finding mistakes in
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 6efa82874e38..c532c152ed1c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.106 2014/12/11 18:32:30 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.107 2014/12/27 19:00:10 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -750,5 +750,39 @@ distutils-r1_src_install() {
fi
}
+# -- distutils.eclass functions --
+
+distutils_get_intermediate_installation_image() {
+ die "${FUNCNAME}() is invalid for distutils-r1"
+}
+
+distutils_src_unpack() {
+ die "${FUNCNAME}() is invalid for distutils-r1, and you don't want it in EAPI ${EAPI} anyway"
+}
+
+distutils_src_prepare() {
+ die "${FUNCNAME}() is invalid for distutils-r1, you probably want: ${FUNCNAME/_/-r1_}"
+}
+
+distutils_src_compile() {
+ die "${FUNCNAME}() is invalid for distutils-r1, you probably want: ${FUNCNAME/_/-r1_}"
+}
+
+distutils_src_test() {
+ die "${FUNCNAME}() is invalid for distutils-r1, you probably want: ${FUNCNAME/_/-r1_}"
+}
+
+distutils_src_install() {
+ die "${FUNCNAME}() is invalid for distutils-r1, you probably want: ${FUNCNAME/_/-r1_}"
+}
+
+distutils_pkg_postinst() {
+ die "${FUNCNAME}() is invalid for distutils-r1, and pkg_postinst is unnecessary"
+}
+
+distutils_pkg_postrm() {
+ die "${FUNCNAME}() is invalid for distutils-r1, and pkg_postrm is unnecessary"
+}
+
_DISTUTILS_R1=1
fi