# ChangeLog for dev-cpp/asio
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/asio/ChangeLog,v 1.5 2006/10/18 21:44:45 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/asio/ChangeLog,v 1.6 2006/11/16 17:16:48 dev-zero Exp $
+
+ 16 Nov 2006; Tiziano Müller <dev-zero@gentoo.org>
+ +files/asio-0.3.7-recursive_init.patch, -asio-0.3.4.ebuild,
+ asio-0.3.7.ebuild:
+ Added recursive-init patch, bug #153514 - thanks to Jack Lloyd. Dropped old
+ version.
18 Oct 2006; Tiziano Müller <dev-zero@gentoo.org> ChangeLog:
Version bump.
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-cpp/asio/asio-0.3.7.ebuild,v 1.1 2006/10/18 21:44:45 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-cpp/asio/asio-0.3.7.ebuild,v 1.2 2006/11/16 17:16:48 dev-zero Exp $
+
+inherit eutils
+
+KEYWORDS="~x86"
DESCRIPTION="asynchronous network library"
HOMEPAGE="http://asio.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
LICENSE="Boost-1.0"
SLOT="0"
-KEYWORDS="~x86"
-IUSE="doc ssl test"
+IUSE="doc ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )
+ >=dev-libs/boost-1.33.0"
+RDEPEND="${DEPEND}"
-DEPEND=">=dev-libs/boost-1.33.0
- test? ( ssl? ( dev-libs/openssl ) )"
-RDEPEND=""
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-recursive_init.patch"
+}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
--- /dev/null
+--- ./include/asio/ssl/detail/openssl_init.hpp.orig 2006-11-15 00:10:08.000000000 +0100
++++ ./include/asio/ssl/detail/openssl_init.hpp 2006-11-15 00:10:38.000000000 +0100
+@@ -45,13 +45,13 @@
+ {
+ ::SSL_library_init();
+ ::SSL_load_error_strings();
++ ::OpenSSL_add_ssl_algorithms();
+
+ mutexes_.resize(::CRYPTO_num_locks());
+ for (size_t i = 0; i < mutexes_.size(); ++i)
+ mutexes_[i].reset(new asio::detail::mutex);
+ ::CRYPTO_set_locking_callback(&do_init::openssl_locking_func);
+
+- ::OpenSSL_add_ssl_algorithms();
+ }
+ }
+