Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 441806
Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +18 lines)
Line  Link Here
0
-- boost-1.51.0-r1.ebuild
0
++ boost-1.51.0-r1.ebuild
Lines 247-257 Link Here
247
		if use python; then
247
		if use python; then
248
			rm -r ${PYTHON_DIRS} || die
248
			rm -r ${PYTHON_DIRS} || die
249
249
250
			# Move mpi.so Python module to Python site-packages directory and make sure it is slotted.
250
			# Move mpi.so Python module to Python site-packages directory.
251
			# https://svn.boost.org/trac/boost/ticket/2838
251
			if use mpi; then
252
			if use mpi; then
252
				mkdir -p "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
253
				dodir $(python_get_sitedir)/boost
253
				mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
254
				mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost" || die
254
				cat << EOF > "${D}$(python_get_sitedir)/boost_${MAJOR_PV}/__init__.py" || die
255
				cat << EOF > "${D}$(python_get_sitedir)/boost/__init__.py" || die
255
import sys
256
import sys
256
if sys.platform.startswith('linux'):
257
if sys.platform.startswith('linux'):
257
	import DLFCN
258
	import DLFCN
Lines 424-429 Link Here
424
	fi
425
	fi
425
}
426
}
426
427
428
pkg_postinst() {
429
	if use mpi && use python; then
430
		python_mod_optimize boost
431
	fi
432
}
433
434
pkg_postrm() {
435
	if use mpi && use python; then
436
		python_mod_cleanup boost
437
	fi
438
}
439
427
# the tests will never fail because these are not intended as sanity
440
# the tests will never fail because these are not intended as sanity
428
# tests at all. They are more a way for upstream to check their own code
441
# tests at all. They are more a way for upstream to check their own code
429
# on new compilers. Since they would either be completely unreliable
442
# on new compilers. Since they would either be completely unreliable

Return to bug 441806