libraries/libtorrent-rasterbar: Added to 12.1 repository
This commit is contained in:
parent
4696f43bf2
commit
bf94af1ca2
|
@ -0,0 +1,5 @@
|
|||
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
|
|
@ -0,0 +1,40 @@
|
|||
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>
|
|
@ -0,0 +1,59 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
# Slackware build script for libtorrent (rasterbar)
|
||||
# Written by Erik Hanson erik@slackbuilds.org
|
||||
|
||||
PRGNAM=libtorrent-rasterbar
|
||||
VERSION=0.13.1
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
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 \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var/lib \
|
||||
--disable-static \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
# Install missing asio includes; thanks to Heinz Wiesinger.
|
||||
cp -a include/libtorrent/asio $PKG/usr/include/libtorrent/
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README docs/ \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="libtorrent-rasterbar"
|
||||
VERSION="0.13.1"
|
||||
HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-0.13.1.tar.gz"
|
||||
MD5SUM="9d6b112fedc5861402647ff72e95dba0"
|
||||
MAINTAINER="Erik Hanson"
|
||||
EMAIL="erik@slackbuilds.org"
|
||||
APPROVED="rworkman"
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----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: Homepage: http://www.rasterbar.com/products/libtorrent/
|
||||
libtorrent-rasterbar:
|
||||
libtorrent-rasterbar:
|
||||
libtorrent-rasterbar:
|
Loading…
Reference in New Issue