1 |
scarabeus 11/01/24 14:04:39 |
2 |
|
3 |
Modified: waf-utils.eclass |
4 |
Log: |
5 |
Drop pkg_setup phase since operations done inside of that phase were supposed to be done in the src_configure. |
6 |
|
7 |
Revision Changes Path |
8 |
1.4 eclass/waf-utils.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/waf-utils.eclass?rev=1.4&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/waf-utils.eclass?rev=1.4&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/waf-utils.eclass?r1=1.3&r2=1.4 |
13 |
|
14 |
Index: waf-utils.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v |
17 |
retrieving revision 1.3 |
18 |
retrieving revision 1.4 |
19 |
diff -u -r1.3 -r1.4 |
20 |
--- waf-utils.eclass 16 Jan 2011 08:36:35 -0000 1.3 |
21 |
+++ waf-utils.eclass 24 Jan 2011 14:04:39 -0000 1.4 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2010 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.3 2011/01/16 08:36:35 scarabeus Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.4 2011/01/24 14:04:39 scarabeus Exp $ |
27 |
|
28 |
# @ECLASS: waf-utils.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -19,31 +19,20 @@ |
31 |
inherit base eutils multilib |
32 |
|
33 |
case ${EAPI:-0} in |
34 |
- 4|3|2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile src_install ;; |
35 |
+ 4|3) EXPORT_FUNCTIONS src_configure src_compile src_install ;; |
36 |
*) die "EAPI=${EAPI} is not supported" ;; |
37 |
esac |
38 |
|
39 |
# @FUNCTION: waf-utils_src_configure |
40 |
# @DESCRIPTION: |
41 |
# General function for configuring with waf. |
42 |
-waf-utils_pkg_setup() { |
43 |
+waf-utils_src_configure() { |
44 |
debug-print-function ${FUNCNAME} "$@" |
45 |
|
46 |
# @ECLASS-VARIABLE: WAF_BINARY |
47 |
# @DESCRIPTION: |
48 |
# Eclass can use different waf executable. Usually it is located in "${S}/waf". |
49 |
: ${WAF_BINARY:="${S}/waf"} |
50 |
-} |
51 |
- |
52 |
-# @FUNCTION: waf-utils_src_configure |
53 |
-# @DESCRIPTION: |
54 |
-# General function for configuring with waf. |
55 |
-waf-utils_src_configure() { |
56 |
- debug-print-function ${FUNCNAME} "$@" |
57 |
- |
58 |
- # sometimes people forget to run pkg_setup from this eclass |
59 |
- # instead of having the variable empty lets try to get it once more |
60 |
- : ${WAF_BINARY:="${S}/waf"} |
61 |
|
62 |
echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=/usr --libdir=/usr/$(get_libdir) $@ configure" |
63 |
|
64 |
@@ -71,7 +60,6 @@ |
65 |
waf-utils_src_install() { |
66 |
debug-print-function ${FUNCNAME} "$@" |
67 |
|
68 |
- has ${EAPI:-0} 2 && ! use prefix && ED="${D}" |
69 |
echo "\"${WAF_BINARY}\" --destdir=\"${ED}\" install" |
70 |
"${WAF_BINARY}" --destdir="${ED}" install || die "Make install failed" |