Contents of /trunk/include/python3.sminc
Parent Directory | Revision Log
Revision 29784 -
(show annotations)
(download)
Wed Oct 11 11:03:08 2017 UTC (6 years, 11 months ago) by niro
File size: 2337 byte(s)
Wed Oct 11 11:03:08 2017 UTC (6 years, 11 months ago) by niro
File size: 2337 byte(s)
-pathtrough python_docompile and python_doinstall arguments
1 | # $Id$ |
2 | |
3 | MAGE_PYTHON3_EXEC="/usr/bin/python3" |
4 | MAGE_PYTHON3_SRCSUBDIR="${BUILDDIR}/python3" |
5 | #SRCSUBDIR="${MAGE_PYTHON2_SRCSUBDIR}" |
6 | export MAGE_PYTHON_EXEC="${MAGE_PYTHON3_EXEC}" |
7 | export PYTHON="${MAGE_PYTHON3_EXEC}" |
8 | |
9 | SDEPEND="${SDEPEND} |
10 | >= dev-lang/python3-3.6" |
11 | |
12 | sminclude python |
13 | |
14 | python3_docompile() |
15 | { |
16 | MAGE_PYTHON_EXEC="${MAGE_PYTHON3_EXEC}" python_docompile $@ |
17 | } |
18 | |
19 | python3_doinstall() |
20 | { |
21 | MAGE_PYTHON_EXEC="${MAGE_PYTHON3_EXEC}" python_doinstall $@ |
22 | } |
23 | |
24 | python3_src_prepare() |
25 | { |
26 | python_src_prepare || die |
27 | install -d ${MAGE_PYTHON3_SRCSUBDIR} |
28 | mv ${SRCDIR} ${MAGE_PYTHON3_SRCSUBDIR}/ || die |
29 | } |
30 | |
31 | python3_multilib_src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | for abi in ${MULTILIB_ABIS} |
35 | do |
36 | install -d ${MAGE_PYTHON3_SRCSUBDIR} |
37 | mv ${SRCDIR}-${abi} ${MAGE_PYTHON3_SRCSUBDIR}/ || die |
38 | done |
39 | } |
40 | |
41 | python3_src_compile() |
42 | { |
43 | local saved_SRCDIR="${SRCDIR}" |
44 | SRCDIR="${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${saved_SRCDIR})" |
45 | |
46 | cd ${SRCDIR} |
47 | python3_docompile $@ || die |
48 | SRCDIR="${saved_SRCDIR}" |
49 | } |
50 | |
51 | python3_multilib_src_compile() |
52 | { |
53 | local abi |
54 | local saved_SRCDIR="${SRCDIR}" |
55 | |
56 | for abi in ${MULTILIB_ABIS} |
57 | do |
58 | SRCDIR="${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${saved_SRCDIR}-${abi})" |
59 | cd ${SRCDIR} |
60 | abi-${abi} python3_docompile $@ || die |
61 | done |
62 | SRCDIR="${saved_SRCDIR}" |
63 | } |
64 | |
65 | python3_src_check() |
66 | { |
67 | return 0 |
68 | } |
69 | |
70 | python3_src_install() |
71 | { |
72 | local saved_SRCDIR="${SRCDIR}" |
73 | SRCDIR="${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${saved_SRCDIR})" |
74 | |
75 | cd ${SRCDIR} |
76 | python3_doinstall $@ || die |
77 | |
78 | local i |
79 | for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
80 | FAQ LICENSE NEWS README TODO |
81 | do |
82 | if [ -f ${SRCDIR}/${i} ] |
83 | then |
84 | minstalldocs ${i} || die |
85 | fi |
86 | done |
87 | SRCDIR="${saved_SRCDIR}" |
88 | } |
89 | |
90 | python3_multilib_src_install() |
91 | { |
92 | local abi |
93 | local saved_SRCDIR="${SRCDIR}" |
94 | |
95 | for abi in ${MULTILIB_ABIS} |
96 | do |
97 | SRCDIR="${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${saved_SRCDIR}-${abi})" |
98 | cd ${SRCDIR} |
99 | abi-${abi} python3_doinstall $@ || die |
100 | |
101 | local i |
102 | for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
103 | FAQ LICENSE NEWS README TODO |
104 | do |
105 | if [ -f ${SRCDIR}/${i} ] |
106 | then |
107 | oldminstalldocs ${i} || die |
108 | fi |
109 | done |
110 | done |
111 | SRCDIR="${saved_SRCDIR}" |
112 | } |
113 | |
114 | export_inherits python3 src_check |
115 | if [[ ${MULTILIB_BUILD} = true ]] |
116 | then |
117 | export_inherits python3_multilib src_prepare src_compile src_install |
118 | else |
119 | export_inherits python3 src_prepare src_compile src_install |
120 | fi |