1 |
Am Freitag, den 14.12.2012, 23:08 +0100 schrieb Michał Górny: |
2 |
> --- |
3 |
> gx86/dev-libs/boost/boost-1.52.0-r5.ebuild | 47 ++++++++++-------------------- |
4 |
> 1 file changed, 15 insertions(+), 32 deletions(-) |
5 |
> |
6 |
> diff --git a/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild b/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild |
7 |
> index 87c7561..10bd293 100644 |
8 |
> --- a/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild |
9 |
> +++ b/gx86/dev-libs/boost/boost-1.52.0-r5.ebuild |
10 |
> @@ -3,11 +3,9 @@ |
11 |
> # $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.52.0-r4.ebuild,v 1.1 2012/11/22 03:37:58 flameeyes Exp $ |
12 |
> |
13 |
> EAPI="5" |
14 |
> -PYTHON_DEPEND="python? *" |
15 |
> -SUPPORT_PYTHON_ABIS="1" |
16 |
> -RESTRICT_PYTHON_ABIS="*-jython *-pypy-*" |
17 |
> +PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} ) |
18 |
> |
19 |
> -inherit flag-o-matic multilib multiprocessing python toolchain-funcs versionator |
20 |
> +inherit flag-o-matic multilib multiprocessing python-r1 toolchain-funcs versionator |
21 |
> |
22 |
> MY_P=${PN}_$(replace_all_version_separators _) |
23 |
> |
24 |
> @@ -24,6 +22,7 @@ IUSE="debug doc icu +nls mpi python static-libs +threads tools" |
25 |
> RDEPEND="icu? ( >=dev-libs/icu-3.6:= ) |
26 |
> !icu? ( virtual/libiconv ) |
27 |
> mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) ) |
28 |
> + python? ( ${PYTHON_DEPS} ) |
29 |
> sys-libs/zlib |
30 |
> !app-admin/eselect-boost" |
31 |
> DEPEND="${RDEPEND} |
32 |
> @@ -50,7 +49,7 @@ create_user-config.jam() { |
33 |
> fi |
34 |
> |
35 |
> if use python; then |
36 |
> - python_configuration="using python : $(python_get_version) ;" |
37 |
> + python_configuration="using python : ${EPYTHON#python} ;" |
38 |
|
39 |
can you please repeat why there is no EPYTHONV variable? |
40 |
|
41 |
> fi |
42 |
> |
43 |
> cat > user-config.jam << __EOF__ |
44 |
> @@ -60,12 +59,6 @@ ${python_configuration} |
45 |
> __EOF__ |
46 |
> } |
47 |
> |
48 |
> -pkg_setup() { |
49 |
> - if use python; then |
50 |
> - python_pkg_setup |
51 |
> - fi |
52 |
> -} |
53 |
> - |
54 |
> src_prepare() { |
55 |
> epatch \ |
56 |
> "${FILESDIR}/${PN}-1.48.0-mpi_python3.patch" \ |
57 |
> @@ -129,7 +122,7 @@ src_compile() { |
58 |
> create_user-config.jam |
59 |
> |
60 |
> ejam ${OPTIONS} \ |
61 |
> - $(use python && echo --python-buildid=${PYTHON_ABI}) \ |
62 |
> + $(use python && echo --python-buildid=${EPYTHON#python}) \ |
63 |
> || die "Building of Boost libraries failed" |
64 |
> |
65 |
> if use python; then |
66 |
> @@ -143,7 +136,7 @@ src_compile() { |
67 |
> |
68 |
> local dir |
69 |
> for dir in ${PYTHON_DIRS}; do |
70 |
> - mv ${dir} ${dir}-${PYTHON_ABI} || die "Renaming of '${dir}' to '${dir}-${PYTHON_ABI}' failed" |
71 |
> + mv ${dir} ${dir}-${EPYTHON} || die |
72 |
|
73 |
Do we loose something by having an explicit error message? |
74 |
Please leave it there (dito for all the other cases) |
75 |
|
76 |
> done |
77 |
> |
78 |
> if use mpi; then |
79 |
> @@ -158,12 +151,12 @@ src_compile() { |
80 |
> fi |
81 |
> fi |
82 |
> |
83 |
> - mv stage/lib/mpi.so stage/lib/mpi.so-${PYTHON_ABI} || die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${PYTHON_ABI}' failed" |
84 |
> + mv stage/lib/mpi.so stage/lib/mpi.so-${EPYTHON} || die |
85 |
> fi |
86 |
> fi |
87 |
> } |
88 |
> if use python; then |
89 |
> - python_execute_function building |
90 |
> + python_foreach_impl building |
91 |
> else |
92 |
> building |
93 |
> fi |
94 |
> @@ -184,19 +177,19 @@ src_install () { |
95 |
> if use python; then |
96 |
> local dir |
97 |
> for dir in ${PYTHON_DIRS}; do |
98 |
> - cp -pr ${dir}-${PYTHON_ABI} ${dir} || die "Copying of '${dir}-${PYTHON_ABI}' to '${dir}' failed" |
99 |
> + cp -pr ${dir}-${EPYTHON} ${dir} || die |
100 |
> done |
101 |
> |
102 |
> if use mpi; then |
103 |
> - cp -p stage/lib/mpi.so-${PYTHON_ABI} "${MPI_PYTHON_MODULE}" || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to '${MPI_PYTHON_MODULE}' failed" |
104 |
> - cp -p stage/lib/mpi.so-${PYTHON_ABI} stage/lib/mpi.so || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to 'stage/lib/mpi.so' failed" |
105 |
> + cp -p stage/lib/mpi.so-${EPYTHON} "${MPI_PYTHON_MODULE}" || die |
106 |
> + cp -p stage/lib/mpi.so-${EPYTHON} stage/lib/mpi.so || die |
107 |
> fi |
108 |
> fi |
109 |
> |
110 |
> ejam ${OPTIONS} \ |
111 |
> --includedir="${D}usr/include" \ |
112 |
> --libdir="${D}usr/$(get_libdir)" \ |
113 |
> - $(use python && echo --python-buildid=${PYTHON_ABI}) \ |
114 |
> + $(use python && echo --python-buildid=${EPYTHON#python}) \ |
115 |
> install || die "Installation of Boost libraries failed" |
116 |
> |
117 |
> if use python; then |
118 |
> @@ -222,10 +215,12 @@ else: |
119 |
> del sys |
120 |
> EOF |
121 |
> fi |
122 |
> + |
123 |
> + python_optimize |
124 |
> fi |
125 |
> } |
126 |
> if use python; then |
127 |
> - python_execute_function installation |
128 |
> + python_foreach_impl installation |
129 |
> else |
130 |
> installation |
131 |
> fi |
132 |
> @@ -320,18 +315,6 @@ pkg_preinst() { |
133 |
> done |
134 |
> } |
135 |
> |
136 |
> -pkg_postinst() { |
137 |
> - if use mpi && use python; then |
138 |
> - python_mod_optimize boost |
139 |
> - fi |
140 |
> -} |
141 |
> - |
142 |
> -pkg_postrm() { |
143 |
> - if use mpi && use python; then |
144 |
> - python_mod_cleanup boost |
145 |
> - fi |
146 |
> -} |
147 |
> - |
148 |
> # the tests will never fail because these are not intended as sanity |
149 |
> # tests at all. They are more a way for upstream to check their own code |
150 |
> # on new compilers. Since they would either be completely unreliable |