diff options
Diffstat (limited to 'net-libs/rb_libtorrent/rb_libtorrent-0.12_rc2.ebuild')
-rw-r--r-- | net-libs/rb_libtorrent/rb_libtorrent-0.12_rc2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/net-libs/rb_libtorrent/rb_libtorrent-0.12_rc2.ebuild b/net-libs/rb_libtorrent/rb_libtorrent-0.12_rc2.ebuild new file mode 100644 index 000000000000..d0e6941203d6 --- /dev/null +++ b/net-libs/rb_libtorrent/rb_libtorrent-0.12_rc2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 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.12_rc2.ebuild,v 1.1 2007/04/03 16:43:55 armin76 Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" +inherit eutils autotools + +MY_P="${P/rb_/}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="BitTorrent library written in C++ for *nix." +HOMEPAGE="http://www.rasterbar.com/products/libtorrent/" +SRC_URI="http://www.libtorrent.org/${MY_P/_/}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="debug" + +DEPEND="dev-libs/boost + !net-libs/libtorrent" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P/_rc2/}" + +pkg_setup() { + # We need boost built with threads + if ! built_with_use "dev-libs/boost" threads; then + eerror "${PN} needs dev-libs/boost built with threads USE flag" + die "dev-libs/boost is built without threads USE flag" + fi +} + +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" + + econf $(use_enable debug) \ + ${BOOST_LIBS} \ + LDFLAGS="${LDFLAGS} -pthread" || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog AUTHORS NEWS README +} |