1 |
--- |
2 |
gx86/eclass/python-utils-r1.eclass | 29 +++++++++++++++++++++++++++++ |
3 |
1 file changed, 29 insertions(+) |
4 |
|
5 |
diff --git a/gx86/eclass/python-utils-r1.eclass b/gx86/eclass/python-utils-r1.eclass |
6 |
index 474ac08..4c616e1 100644 |
7 |
--- a/gx86/eclass/python-utils-r1.eclass |
8 |
+++ b/gx86/eclass/python-utils-r1.eclass |
9 |
@@ -618,5 +618,34 @@ python_domodule() { |
10 |
python_optimize "${ED}/${d}" |
11 |
} |
12 |
|
13 |
+# @FUNCTION: python_doheader |
14 |
+# @USAGE: <files>... |
15 |
+# @DESCRIPTION: |
16 |
+# Install the given headers into the implementation-specific include |
17 |
+# directory. This function is unconditionally recursive, i.e. you can |
18 |
+# pass directories instead of files. |
19 |
+# |
20 |
+# Example: |
21 |
+# @CODE |
22 |
+# src_install() { |
23 |
+# python_foreach_impl python_doheader foo.h bar.h |
24 |
+# } |
25 |
+# @CODE |
26 |
+python_doheader() { |
27 |
+ debug-print-function ${FUNCNAME} "${@}" |
28 |
+ |
29 |
+ [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).' |
30 |
+ |
31 |
+ local d PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} |
32 |
+ [[ ${PYTHON_INCLUDEDIR} ]] || python_export PYTHON_INCLUDEDIR |
33 |
+ |
34 |
+ d=${PYTHON_INCLUDEDIR#${EPREFIX}} |
35 |
+ |
36 |
+ local INSDESTTREE |
37 |
+ |
38 |
+ insinto "${d}" |
39 |
+ doins -r "${@}" || die |
40 |
+} |
41 |
+ |
42 |
_PYTHON_UTILS_R1=1 |
43 |
fi |
44 |
-- |
45 |
1.8.1.1 |