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