--- rb_libtorrent-0.14.10.ebuild 2010-04-10 17:29:18.000000000 +0200 +++ rb_libtorrent-0.14.10.ebuild 2010-04-12 10:08:21.000000000 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2010 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.14.10.ebuild,v 1.1 2010/04/10 15:29:18 yngwin Exp $ +# $Header: $ EAPI="2" inherit autotools eutils flag-o-matic versionator @@ -16,7 +16,7 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" -IUSE="debug doc examples python test" +IUSE="debug doc examples python test static-libs" RESTRICT="test" DEPEND="|| ( >=dev-libs/boost-1.35 @@ -60,6 +60,7 @@ $(use_enable test tests) \ $(use_enable examples) \ $(use_enable python python-binding) \ + $(use_enable static-libs static) \ --with-zlib=system \ --with-asio=system \ ${LOGGING} \ @@ -74,4 +75,8 @@ if use doc ; then dohtml docs/* || die "Could not install HTML documentation" fi + + # remove useless .a/.la files (only for non static compilation) + use static-libs || \ + find "${D}" \( -name '*.a' -or -name '*.la' \) -delete }