libraries/libtorrent-rasterbar: Updated for version 0.14.3

This commit is contained in:
Erik Hanson 2010-05-12 17:41:49 +02:00 committed by Robby Workman
parent 0e396108c5
commit a86dce83ef
5 changed files with 18 additions and 54 deletions

View file

@ -2,4 +2,4 @@ libtorrent is a C++ library that aims to be a good alternative to all the
other bittorrent implementations around. It is a library and not a full
featured client, although it comes with a working example client.
Requires boost, available at SlackBuilds.org
This requires boost.

View file

@ -1,40 +0,0 @@
diff -uNr src/torrent_info.cpp src/torrent_info.cpp2
--- src/torrent_info.cpp 2008-08-24 18:13:52.000000000 +0200
+++ src/torrent_info.cpp 2008-08-24 18:15:28.000000000 +0200
@@ -354,7 +354,11 @@
{
m_name = tmp.leaf();
}
+#if BOOST_VERSION < 103600
else if (tmp.has_branch_path())
+#else
+ else if (tmp.has_parent_path())
+#endif
{
fs::path p;
for (fs::path::iterator i = tmp.begin()
@@ -572,7 +576,11 @@
{
// TORRENT_ASSERT(file.begin() != file.end());
+#if BOOST_VERSION < 103600
if (!file.has_branch_path())
+#else
+ if (!file.has_parent_path())
+#endif
{
// you have already added at least one file with a
// path to the file (branch_path), which means that
======================================================================================
diff -uNr include/libtorrent/disk_io_thread.hpp include/libtorrent/disk_io_thread.hpp2
--- include/libtorrent/disk_io_thread.hpp 2008-04-09 10:48:02.000000000 +0200
+++ include/libtorrent/disk_io_thread.hpp 2008-08-24 20:38:01.000000000 +0200
@@ -39,6 +39,7 @@
#include "libtorrent/storage.hpp"
#include <boost/thread/thread.hpp>
+#include <boost/thread/condition.hpp>
#include <boost/function.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/bind.hpp>

View file

@ -4,7 +4,7 @@
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=libtorrent-rasterbar
VERSION=0.13.1
VERSION=0.14.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -18,6 +18,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
@ -29,9 +31,6 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Patch lifted from Zenwalk
patch -p0 < $CWD/boost-1.36.0.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -39,6 +38,8 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-static \
--enable-python-binding \
--with-zlib=system \
--build=$ARCH-slackware-linux
make
@ -47,6 +48,9 @@ make install-strip DESTDIR=$PKG
# Install missing asio includes; thanks to Heinz Wiesinger.
cp -a include/libtorrent/asio $PKG/usr/include/libtorrent/
# Remove empty directory; thanks to Larry Hajali.
rmdir $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README docs/ \
$PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="libtorrent-rasterbar"
VERSION="0.13.1"
VERSION="0.14.3"
HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
DOWNLOAD="http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-0.13.1.tar.gz"
MD5SUM="9d6b112fedc5861402647ff72e95dba0"
DOWNLOAD="http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-0.14.3.tar.gz"
MD5SUM="6ce3148f8fbddbdfa472ef3c4c4cae61"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="rworkman"

View file

@ -5,15 +5,15 @@
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler----------------------------------------|
|-----handy-ruler-------------------------------------------------------|
libtorrent-rasterbar: libtorrent-rasterbar (a bittorrent C++ library)
libtorrent-rasterbar:
libtorrent-rasterbar: libtorrent is a C++ library that aims to be a good
libtorrent-rasterbar: alternative to all the other bittorrent implementations
libtorrent-rasterbar: around. It is a library and not a full featured client,
libtorrent-rasterbar: although it comes with a working example client.
libtorrent-rasterbar:
libtorrent-rasterbar: libtorrent is a C++ library that aims to be a good alternative to all
libtorrent-rasterbar: of the other bittorrent implementations around. It is a library, not
libtorrent-rasterbar: a full featured client, although it comes with an example client.
libtorrent-rasterbar:
libtorrent-rasterbar: Homepage: http://www.rasterbar.com/products/libtorrent/
libtorrent-rasterbar:
libtorrent-rasterbar:
libtorrent-rasterbar:
libtorrent-rasterbar: