summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/openssl/openssl-0.9.8o-r2.ebuild')
-rw-r--r--dev-libs/openssl/openssl-0.9.8o-r2.ebuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/dev-libs/openssl/openssl-0.9.8o-r2.ebuild b/dev-libs/openssl/openssl-0.9.8o-r2.ebuild
index d970c57384b5..810bb85c8197 100644
--- a/dev-libs/openssl/openssl-0.9.8o-r2.ebuild
+++ b/dev-libs/openssl/openssl-0.9.8o-r2.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8o-r2.ebuild,v 1.2 2010/09/28 11:02:13 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8o-r2.ebuild,v 1.3 2010/10/08 18:44:37 vapier Exp $
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
-EAPI=1
+EAPI="1"
+
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
@@ -26,10 +27,11 @@ DEPEND="${RDEPEND}
test? ( sys-devel/bc )"
pkg_setup() {
- [[ -e ${ROOT}/usr/$(get_libdir)/libcrypto.so.0.9.8 ]] && \
- rm -f "${ROOT}"/usr/$(get_libdir)/libcrypto.so.0.9.8
- [[ -e ${ROOT}/usr/$(get_libdir)/libssl.so.0.9.8 ]] && \
- rm -f "${ROOT}"/usr/$(get_libdir)/libssl.so.0.9.8
+ # avoid collisions with openssl-1 (preserve lib)
+ if ! has_version dev-libs/openssl:${SLOT} ; then
+ ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1"
+ rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
+ fi
}
src_unpack() {