diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2012-08-24 09:46:08 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2012-08-24 09:46:08 +0000 |
commit | 033be3d5c0c041ff7c17a0ba6bdc4f942403b0eb (patch) | |
tree | 287fca9ef4770cfbdfb558cb6c44a75043c88c06 /dev-libs/boost | |
parent | Bump to EAPI 4. Shorten the description. Use kde4 eclass specific var for han... (diff) | |
download | gentoo-2-033be3d5c0c041ff7c17a0ba6bdc4f942403b0eb.tar.gz gentoo-2-033be3d5c0c041ff7c17a0ba6bdc4f942403b0eb.tar.bz2 gentoo-2-033be3d5c0c041ff7c17a0ba6bdc4f942403b0eb.zip |
Remove symlinks created by eselect-boost.
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/boost')
-rw-r--r-- | dev-libs/boost/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.50.0-r2.ebuild (renamed from dev-libs/boost/boost-1.50.0-r1.ebuild) | 62 |
2 files changed, 68 insertions, 2 deletions
diff --git a/dev-libs/boost/ChangeLog b/dev-libs/boost/ChangeLog index daba9d24c347..a7acbd6353cc 100644 --- a/dev-libs/boost/ChangeLog +++ b/dev-libs/boost/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/boost # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.256 2012/08/20 21:55:03 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.257 2012/08/24 09:46:08 dev-zero Exp $ + +*boost-1.50.0-r2 (24 Aug 2012) + + 24 Aug 2012; Tiziano Müller <dev-zero@gentoo.org> +boost-1.50.0-r2.ebuild, + -boost-1.50.0-r1.ebuild: + Remove symlinks created by eselect-boost. *boost-1.50.0-r1 (20 Aug 2012) diff --git a/dev-libs/boost/boost-1.50.0-r1.ebuild b/dev-libs/boost/boost-1.50.0-r2.ebuild index a63a6e5f488d..4c52248b2eb4 100644 --- a/dev-libs/boost/boost-1.50.0-r1.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-r1.ebuild,v 1.1 2012/08/20 21:55:03 dev-zero Exp $ +# $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 $ EAPI="4" PYTHON_DEPEND="python? *" @@ -533,3 +533,63 @@ __EOF__ testing fi } + +pkg_postinst() { + # mostly copy/paste from eselect-boost + + _boost_tools="bcp bjam compiler_status inspect library_status process_jam_log quickbook wave" + + # ... meaning: <none> and -debug: + _suffices="|-debug" + + einfo "Removing symlinks from old version" + + local link + for link in "${ROOT}/usr/include/boost" "${ROOT}/usr/share/boostbook" ; do + if [[ -L "${link}" ]] ; then + rm "${link}" || die -q "Couldn't remove \"${link}\" symlink" + else + [[ -e "${link}" ]] && die -q "\"${link}\" exists and isn't a symlink" + fi + done + + pushd "${ROOT}/usr/lib64" 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" + done + popd 1>/dev/null + + pushd "${ROOT}"/usr/bin 1>/dev/null + local tool + for tool in ${_boost_tools} ; do + [[ -L "${tool}" ]] && ( rm "${tool}" || die -q "Unable to remove \"/usr/bin/${tool}\" symlink" ) + done + popd 1>/dev/null + + 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 + 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 + done + done + + # Deprecated code for older versions of Boost. + local mod="mpi.so" + for moddir in "${ROOT}"/usr/lib64/python*/site-packages ; do + if [ -L "${moddir}/${mod}" ] ; then + rm "${moddir}/${mod}" || die -q "Unable to remove \"${moddir}/${mod}\" symlink" + else + [[ -e "${moddir}/${mod}" ]] && die -q "\"${moddir}/${mod}\" exists and isn't a symlink" + fi + done + + if [ -L "${ROOT}/etc/eselect/boost/active" ] ; then + rm "${ROOT}/etc/eselect/boost/active" || die -q "Unable to remove \"${ROOT}/etc/eselect/boost/active\" symlink" + else + [[ -e "${ROOT}/etc/eselect/boost/active" ]] && die -q "\"${ROOT}/etc/eselect/boost/active\" exists and isn't a symlink" + fi +} |