diff --git a/network/p2p/libtorrent-rasterbar/actions.py b/network/p2p/libtorrent-rasterbar/actions.py
index a629229c54..b301cbd66b 100644
--- a/network/p2p/libtorrent-rasterbar/actions.py
+++ b/network/p2p/libtorrent-rasterbar/actions.py
@@ -1,38 +1,43 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
-from pisi.actionsapi import autotools
+from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
-#WorkDir = "libtorrent-rasterbar-%s" % get.srcVERSION()
-
-
def setup():
- autotools.autoreconf("-vfi")
- autotools.configure("--disable-static \
- --enable-python-binding \
- --enable-encryption \
- --with-boost-filesystem=mt \
- --with-boost-thread=mt \
- --with-zlib=system \
- --with-libiconv \
- --with-libgeoip=system \
- --enable-export-all")
-
- pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
+ pisitools.dosed("Makefile", "PREFIX=/usr/local/", "PREFIX=/usr")
+ shelltools.system("mkdir build")
+ shelltools.cd("build")
+ cmaketools.configure("-GNinja .. \
+ -DCMAKE_SKIP_RPATH=TRUE \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -Dbuild_examples=ON \
+ -Dbuild_tests=ON \
+ -Dbuild_tools=ON \
+ -Dpython-bindings=ON \
+ -Dpython-egg-info=ON \
+ -Dpython-install-system-dir=ON", sourceDir="..")
def build():
- autotools.make("CXX=%s" % get.CXX())
+ shelltools.cd("build")
+ shelltools.system("ninja")
+ #cmaketools.make()
+
+#def check():
+ #cmaketools.make("test")
+
def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
-
- #pisitools.removeDir("/usr/bin")
+ shelltools.cd("build")
+ shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
+ #cmaketools.rawInstall("DESTDIR=%s ninja install" % get.installDIR())
+ shelltools.cd("..")
pisitools.dohtml("docs/*")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "LICENSE")
diff --git a/network/p2p/libtorrent-rasterbar/pspec.xml b/network/p2p/libtorrent-rasterbar/pspec.xml
index a63db63471..1f0a5348b1 100644
--- a/network/p2p/libtorrent-rasterbar/pspec.xml
+++ b/network/p2p/libtorrent-rasterbar/pspec.xml
@@ -12,15 +12,18 @@
library
Full featured torrent client library
Rasterbar's 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.
- https://github.com/arvidn/libtorrent/releases/download/v1.2.11/libtorrent-rasterbar-1.2.11.tar.gz
+ https://github.com/arvidn/libtorrent/releases/download/v2.0.4/libtorrent-rasterbar-2.0.4.tar.gz
+ cmake
+ ninja
openssl-devel
- python-devel
+ python3-devel
boost-devel
- boost-python
+ boost-python3
geoip-devel
zlib-devel
libtool
+ python3-setuptools
@@ -32,7 +35,7 @@
libgcc
boost
geoip
- boost-python
+ boost-python3
/usr/lib
@@ -56,6 +59,13 @@
+
+ 2021-07-06
+ 2.0.4
+ Version bump.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2021-03-12
1.2.11