summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-25 11:57:27 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-25 11:57:27 +0000
commit7aba73b58cd775235105b78aa6c2ab17a5354a69 (patch)
treeee56e56cd904f5abc5b7fdb9c76650fe98c92410 /net-libs/libtorrent
parentadded ~ppc64 (diff)
downloadhistorical-7aba73b58cd775235105b78aa6c2ab17a5354a69.tar.gz
historical-7aba73b58cd775235105b78aa6c2ab17a5354a69.tar.bz2
historical-7aba73b58cd775235105b78aa6c2ab17a5354a69.zip
Added Gentoo/FreeBSD compatibility patch, now libtorrent compile and works there.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'net-libs/libtorrent')
-rw-r--r--net-libs/libtorrent/ChangeLog7
-rw-r--r--net-libs/libtorrent/Manifest15
-rw-r--r--net-libs/libtorrent/files/libtorrent-0.6.2-fbsd.patch39
-rw-r--r--net-libs/libtorrent/libtorrent-0.6.2.ebuild13
4 files changed, 70 insertions, 4 deletions
diff --git a/net-libs/libtorrent/ChangeLog b/net-libs/libtorrent/ChangeLog
index ce36768e0856..c910f25274d5 100644
--- a/net-libs/libtorrent/ChangeLog
+++ b/net-libs/libtorrent/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-libs/libtorrent
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/ChangeLog,v 1.7 2005/05/05 11:35:33 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/ChangeLog,v 1.8 2005/05/25 11:57:27 flameeyes Exp $
+
+ 25 May 2005; Diego Pettenò <flameeyes@gentoo.org>
+ +files/libtorrent-0.6.2-fbsd.patch, libtorrent-0.6.2.ebuild:
+ Added Gentoo/FreeBSD compatibility patch, now libtorrent compile and works
+ there.
*libtorrent-0.6.2 (05 May 2005)
diff --git a/net-libs/libtorrent/Manifest b/net-libs/libtorrent/Manifest
index 433cf7026b59..d41890584696 100644
--- a/net-libs/libtorrent/Manifest
+++ b/net-libs/libtorrent/Manifest
@@ -1,10 +1,21 @@
-MD5 44c4e8951bec9862ceb146df82fe3ffa ChangeLog 1527
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 32db51528899dafab4eb725ca73dc812 ChangeLog 1730
MD5 2ea9378fd91b526ac1e4c80014fc0d4e libtorrent-0.3.5.ebuild 981
MD5 dec802261d55c538f2facb00e499b14f libtorrent-0.3.7.ebuild 981
MD5 1b8dfc70fa729659931a20c79dec23e5 libtorrent-0.4.1.ebuild 981
-MD5 8c7bc7e26ad7ca6c6c218fda0a63f712 libtorrent-0.6.2.ebuild 784
+MD5 0c16d376b38c61e19dc6e0b055f18b6b libtorrent-0.6.2.ebuild 892
MD5 b59f615ff4e1c464f88d1667a66f6b5d metadata.xml 224
MD5 9624018f42b92526ba13e1bb6eba02b4 files/digest-libtorrent-0.3.5 68
MD5 d92db0dead5f5ee4d2bc579695950695 files/digest-libtorrent-0.3.7 68
MD5 60450079b16686733eeaf7b85e320de3 files/digest-libtorrent-0.4.1 68
MD5 fed0b1d9f0637d8bec0610b06bc48f09 files/digest-libtorrent-0.6.2 68
+MD5 335ec65aa07b3ccf5efa7a7bc06ff4a5 files/libtorrent-0.6.2-fbsd.patch 1305
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFClGdEj5H05b2HAEkRAigIAKCBHsiMp3w8BzdETxGPxXBh4CgWhQCfd2Gv
+1ERcRgoj22W8e9e7dA0mpWI=
+=A+wx
+-----END PGP SIGNATURE-----
diff --git a/net-libs/libtorrent/files/libtorrent-0.6.2-fbsd.patch b/net-libs/libtorrent/files/libtorrent-0.6.2-fbsd.patch
new file mode 100644
index 000000000000..e3929feb6843
--- /dev/null
+++ b/net-libs/libtorrent/files/libtorrent-0.6.2-fbsd.patch
@@ -0,0 +1,39 @@
+diff -ur libtorrent-0.6.2/configure.ac libtorrent-0.6.2-fbsd/configure.ac
+--- libtorrent-0.6.2/configure.ac 2005-04-27 20:38:53.000000000 +0200
++++ libtorrent-0.6.2-fbsd/configure.ac 2005-05-25 13:41:39.581095808 +0200
+@@ -71,6 +71,8 @@
+
+ AC_DEFINE(HAVE_CONFIG_H, 1, true if config.h was included)
+
++AC_CHECK_HEADERS([malloc.h])
++
+ AC_OUTPUT([
+ libtorrent.pc
+ Makefile
+Only in libtorrent-0.6.2-fbsd/: configure.ac~
+diff -ur libtorrent-0.6.2/src/net/socket_fd.cc libtorrent-0.6.2-fbsd/src/net/socket_fd.cc
+--- libtorrent-0.6.2/src/net/socket_fd.cc 2005-04-22 00:51:43.000000000 +0200
++++ libtorrent-0.6.2-fbsd/src/net/socket_fd.cc 2005-05-25 13:21:56.969880040 +0200
+@@ -28,6 +28,7 @@
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
++#include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+
+ #include "torrent/exceptions.h"
+diff -ur libtorrent-0.6.2/src/utils/sha_fast.cc libtorrent-0.6.2-fbsd/src/utils/sha_fast.cc
+--- libtorrent-0.6.2/src/utils/sha_fast.cc 2005-04-14 14:47:42.000000000 +0200
++++ libtorrent-0.6.2-fbsd/src/utils/sha_fast.cc 2005-05-25 13:39:46.289318776 +0200
+@@ -35,7 +35,10 @@
+
+ #include "config.h"
+
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
++
+ #include <memory.h>
+ #include "sha_fast.h"
+
+Only in libtorrent-0.6.2-fbsd/src/utils: sha_fast.cc~
diff --git a/net-libs/libtorrent/libtorrent-0.6.2.ebuild b/net-libs/libtorrent/libtorrent-0.6.2.ebuild
index 87ad25225ed1..cba52dccfbec 100644
--- a/net-libs/libtorrent/libtorrent-0.6.2.ebuild
+++ b/net-libs/libtorrent/libtorrent-0.6.2.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.6.2.ebuild,v 1.1 2005/05/05 11:35:33 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.6.2.ebuild,v 1.2 2005/05/25 11:57:27 flameeyes Exp $
+
+inherit eutils
DESCRIPTION="LibTorrent is a BitTorrent library written in C++ for *nix."
HOMEPAGE="http://libtorrent.rakshasa.no/"
@@ -16,6 +18,15 @@ RDEPEND=">=dev-libs/libsigc++-2"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.11"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-fbsd.patch
+
+ ./autogen.sh
+}
+
src_compile() {
econf \
$(use_enable debug) \