--- /usr/portage/net-libs/rb_libtorrent/rb_libtorrent-0.13.1.ebuild 2008-07-05 21:14:17.000000000 +0200 +++ rb_libtorrent-0.14.ebuild 2008-11-05 20:09:14.000000000 +0100 @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.13.1.ebuild,v 1.1 2008/07/05 19:14:17 armin76 Exp $ +# $Header: $ -inherit eutils autotools +inherit eutils MY_P=${P/rb_/} MY_P=${MY_P/torrent/torrent-rasterbar} @@ -18,7 +18,8 @@ IUSE="debug" -DEPEND="dev-libs/boost +DEPEND="|| ( ( !>=dev-libs/boost-1.35 dev-cpp/asio ) + ( >=dev-libs/boost-1.35 ) ) !net-libs/libtorrent" RDEPEND="${DEPEND}" @@ -31,15 +32,20 @@ } src_compile() { - BOOST_LIBS="--with-boost-date-time=boost_date_time-mt \ - --with-boost-filesystem=boost_filesystem-mt \ - --with-boost-thread=boost_thread-mt \ - --with-boost-regex=boost_regex-mt \ - --with-boost-program_options=boost_program_options-mt" + #use multi-threading versions of boost libs + BOOST_LIBS=" + --with-boost-system=boost_system-mt \ + --with-boost-asio=boost_system-mt + --with-boost-filesystem=boost_filesystem-mt \ + --with-boost-thread=boost_thread-mt \ + --with-boost-regex=boost_regex-mt \ + --with-boost-program_options=boost_program_options-mt" econf $(use_enable debug) \ - ${BOOST_LIBS} \ - LDFLAGS="${LDFLAGS} -pthread" || die "econf failed" + --with-asio=system \ + ${BOOST_LIBS} \ + || die "econf failed" + emake || die "emake failed" }