--- rb_libtorrent-0.15.5.ebuild~ 2011-02-14 19:31:19.000000000 +0100 +++ rb_libtorrent-0.15.5.ebuild 2011-02-25 21:02:06.000000000 +0100 @@ -3,7 +3,10 @@ # $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.15.5.ebuild,v 1.3 2011/02/14 18:16:39 phajdan.jr Exp $ EAPI="2" -inherit eutils versionator +PYTHON_DEPEND="python? 2:2.6" +PYTHON_USE_WITH="threads" + +inherit eutils versionator python MY_P=${P/rb_/} MY_P=${MY_P/torrent/torrent-rasterbar} @@ -20,9 +23,7 @@ RESTRICT="test" DEPEND=">=dev-libs/boost-1.36 - python? ( >=dev-libs/boost-1.36[python] - || ( dev-lang/python:2.6[threads] - dev-lang/python:2.7[threads] ) ) + python? ( >=dev-libs/boost-1.36[python] ) >=sys-devel/libtool-2.2 sys-libs/zlib examples? ( !net-p2p/mldonkey ) @@ -30,6 +31,14 @@ RDEPEND="${DEPEND}" +pkg_setup() { + use python && python_set_active_version 2 +} + +src_prepare() { + use python && python_convert_shebangs -r 2 . +} + src_configure() { # use multi-threading versions of boost libs local BOOST_LIBS="--with-boost-system=boost_system-mt \