summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2012-08-27 08:11:30 +0000
committerTiziano Müller <dev-zero@gentoo.org>2012-08-27 08:11:30 +0000
commit8004dee5976b7a6342103a9d72cb3be81f0bb2ce (patch)
treea93dc8888b24cab6d944b11b0e2ba8a8ac53636d /dev-libs/boost/boost-1.50.0-r2.ebuild
parentRemove old patch files (diff)
downloadhistorical-8004dee5976b7a6342103a9d72cb3be81f0bb2ce.tar.gz
historical-8004dee5976b7a6342103a9d72cb3be81f0bb2ce.tar.bz2
historical-8004dee5976b7a6342103a9d72cb3be81f0bb2ce.zip
Remove symlinks in platform-specific libdirs and not only lib64 (thanks to Freundlich).
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/boost/boost-1.50.0-r2.ebuild')
-rw-r--r--dev-libs/boost/boost-1.50.0-r2.ebuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev-libs/boost/boost-1.50.0-r2.ebuild b/dev-libs/boost/boost-1.50.0-r2.ebuild
index 4c52248b2eb4..e936858e78e3 100644
--- a/dev-libs/boost/boost-1.50.0-r2.ebuild
+++ b/dev-libs/boost/boost-1.50.0-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.50.0-r2.ebuild,v 1.1 2012/08/24 09:46:08 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.50.0-r2.ebuild,v 1.2 2012/08/27 08:11:30 dev-zero Exp $
EAPI="4"
PYTHON_DEPEND="python? *"
@@ -553,11 +553,11 @@ pkg_postinst() {
fi
done
- pushd "${ROOT}/usr/lib64" 1>/dev/null
+ pushd "${ROOT}/usr/$(get_libdir)" 1>/dev/null
local lib
for lib in libboost_*.{a,so} ; do
[[ -L "${lib}" && "${lib}" != libboost_*[[:digit:]]_[[:digit:]][[:digit:]]@(${_suffices}).@(a|so) ]] || continue
- rm "${lib}" || die -q "Unable to remove \"/usr/lib64/${lib}\" symlink"
+ rm "${lib}" || die -q "Unable to remove \"/usr/$(get_libdir)/${lib}\" symlink"
done
popd 1>/dev/null
@@ -570,7 +570,7 @@ pkg_postinst() {
local python_module python_module_dir
for python_module in mpi.py mpi_debug.py ; do
- for python_module_dir in "${ROOT}"usr/lib64/python*/site-packages ; do
+ for python_module_dir in "${ROOT}"usr/$(get_libdir)/python*/site-packages ; do
if [[ -e "${python_module_dir}/${python_module}" ]] ; then
rm "${python_module_dir}/${python_module}" || die -q "Unable to remove \"${python_module_dir}/${python_module}\""
fi
@@ -579,7 +579,7 @@ pkg_postinst() {
# Deprecated code for older versions of Boost.
local mod="mpi.so"
- for moddir in "${ROOT}"/usr/lib64/python*/site-packages ; do
+ for moddir in "${ROOT}"/usr/$(get_libdir)/python*/site-packages ; do
if [ -L "${moddir}/${mod}" ] ; then
rm "${moddir}/${mod}" || die -q "Unable to remove \"${moddir}/${mod}\" symlink"
else