summaryrefslogtreecommitdiffstats
path: root/ftp-libs
diff options
context:
space:
mode:
authorXenanthropy2022-12-24 00:48:54 -0600
committerPavel Vinogradov2022-12-24 09:30:51 -0500
commit28391680693ebac2bccd05d870b1c05c76837af8 (patch)
tree128657fbda207f65fdc6f391e2e114151eeaa747 /ftp-libs
parentdfdd46eec42238d600f1fee71cf65b7987cce1b5 (diff)
rb-libtorrent: => 2.0.8, convert to cmake
Diffstat (limited to 'ftp-libs')
-rwxr-xr-xftp-libs/rb-libtorrent/CONFIGURE8
-rwxr-xr-xftp-libs/rb-libtorrent/DEPENDS11
-rwxr-xr-xftp-libs/rb-libtorrent/DETAILS8
-rw-r--r--ftp-libs/rb-libtorrent/HISTORY9
4 files changed, 21 insertions, 15 deletions
diff --git a/ftp-libs/rb-libtorrent/CONFIGURE b/ftp-libs/rb-libtorrent/CONFIGURE
index 72346924bc..a81e780de7 100755
--- a/ftp-libs/rb-libtorrent/CONFIGURE
+++ b/ftp-libs/rb-libtorrent/CONFIGURE
@@ -1,2 +1,8 @@
+. ${GRIMOIRE}/CMAKE_CONFIGURE &&
+
+# Old flag -> new flag
+RB_LIBTORRENT_OPTS="${RB_LIBTORRENT_OPTS/--enable-python-binding/-Dpython-bindings=ON}" &&
+RB_LIBTORRENT_OPTS="${RB_LIBTORRENT_OPTS/--disable-python-binding/-Dpython-bindings=OFF}" &&
+
config_query_option RB_LIBTORRENT_OPTS "Build python bindings?" n \
- "--enable-python-binding" "--disable-python-binding"
+ "-Dpython-bindings=ON" "-Dpython-bindings=OFF"
diff --git a/ftp-libs/rb-libtorrent/DEPENDS b/ftp-libs/rb-libtorrent/DEPENDS
index 050c910001..cb3483c531 100755
--- a/ftp-libs/rb-libtorrent/DEPENDS
+++ b/ftp-libs/rb-libtorrent/DEPENDS
@@ -1,7 +1,8 @@
-depends -sub CXX gcc &&
+. ${GRIMOIRE}/CMAKE_DEPENDS &&
+depends -sub CXX gcc &&
BOOST_LIBS="THREAD FILESYSTEM DATE_TIME RANDOM REGEX PROGRAM_OPTIONS" &&
-if list_find "$RB_LIBTORRENT_OPTS" "--enable-python-binding"; then
+if list_find "$RB_LIBTORRENT_OPTS" "-Dpython-bindings=ON"; then
list_add BOOST_LIBS "PYTHON"
fi &&
@@ -10,8 +11,4 @@ depends -sub "${BOOST_LIBS}" boost &&
optional_depends SSL \
"" \
"" \
- "for SSL support" &&
-
-optional_depends geoip \
- "--with-libgeoip" "" \
- "enable linking against system libgeoip"
+ "for SSL support"
diff --git a/ftp-libs/rb-libtorrent/DETAILS b/ftp-libs/rb-libtorrent/DETAILS
index f56c24fe74..a4e4e8cf1d 100755
--- a/ftp-libs/rb-libtorrent/DETAILS
+++ b/ftp-libs/rb-libtorrent/DETAILS
@@ -1,9 +1,9 @@
+. ${GRIMOIRE}/CMAKE_FUNCTIONS
SPELL=rb-libtorrent
- VERSION=1.1.0
- BRANCH=$(echo ${VERSION:0:3} | tr "." "_")
+ VERSION=2.0.8
SOURCE=libtorrent-rasterbar-$VERSION.tar.gz
- SOURCE_URL[0]=https://github.com/arvidn/libtorrent/releases/download/libtorrent-${BRANCH}/$SOURCE
- SOURCE_HASH=sha512:5770e3b243605aabe94951f0d3774a1a928b87690c0ba9f8a093ecf90852cf1c76d29a477ab0efc4a352802ca9b405d5c00a5dcdc8d03c6c1644aabe6ad020df
+ SOURCE_URL[0]=https://github.com/arvidn/libtorrent/releases/download/v${VERSION}/$SOURCE
+ SOURCE_HASH=sha512:697988feae149876745097bedfbfb4cceae00ffe1cd4ba2063dcb93a8eee9e99344f772b8364e3df1986a50105e386e56b75fe362707d58ba3272139d9beb98f
SOURCE_DIRECTORY="$BUILD_DIRECTORY/libtorrent-rasterbar-$VERSION"
WEB_SITE=http://www.libtorrent.org
LICENSE=BSD
diff --git a/ftp-libs/rb-libtorrent/HISTORY b/ftp-libs/rb-libtorrent/HISTORY
index 57616800b6..909baf654e 100644
--- a/ftp-libs/rb-libtorrent/HISTORY
+++ b/ftp-libs/rb-libtorrent/HISTORY
@@ -1,3 +1,7 @@
+2022-12-24 Conner Clere <connerclere@gmail.com>
+ * DETAILS, CONFIGURE, DEPENDS: version 2.0.8, convert
+ to cmake build system
+
2016-07-01 Pavel Vinogradov <public@sourcemage.org>
* DETAILS: version 1.1.0, fixed SOURCE_URL[0] and branch computation
* DEPENDS: reorganized boost's subdependencies, added RANDOM there too
@@ -7,9 +11,8 @@
GitHub, new WEB_SITE
2014-08-19 Treeve Jelbert <treeve@sourcemage.org>
- * DEPENDS: openssl => SSL
-
- * SUB_DEPENDS, PRE_SUB_DEPENDS: openssl => SSL
+ * DEPENDS: openssl => SSL
+ * SUB_DEPENDS, PRE_SUB_DEPENDS: openssl => SSL
2012-06-25 Ladislav Hagara <hgr@vabo.cz>
* DETAILS: 0.16.1