1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net-p2p/rtorrent: Update to 0.10.0

- Pet portclippy and portfmt
- Take maintainership

ChangeLog: https://github.com/rakshasa/rtorrent/releases/tag/v0.10.0
This commit is contained in:
Nuno Teixeira 2024-09-29 17:39:19 +01:00
parent 96b6a9b358
commit 15c76ccbf8
3 changed files with 13 additions and 38 deletions

View File

@ -1,9 +1,9 @@
PORTNAME= rtorrent
PORTVERSION= 0.9.8
DISTVERSION= 0.10.0
CATEGORIES= net-p2p
MASTER_SITES= https://rtorrent.net/downloads/
MASTER_SITES= https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= eduardo@FreeBSD.org
COMMENT= BitTorrent Client written in C++
WWW= https://github.com/rakshasa/rtorrent
@ -15,37 +15,25 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
libtorrent.so:net-p2p/libtorrent
USES= compiler:c++11-lang ncurses pkgconfig
USE_CXXSTD= c++14
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
LDFLAGS+= -lexecinfo -pthread
SUB_FILES= pkg-message
PLIST_FILES= bin/rtorrent
PORTDOCS= README
PORTEXAMPLES= rtorrent.rc
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES IPV6 XMLRPC
OPTIONS_DEFAULT=XMLRPC
XMLRPC_DESC= Compile with xmlrpc-c support
OPTIONS_DEFINE= DOCS EXAMPLES IPV6 XMLRPC
OPTIONS_DEFAULT= XMLRPC
XMLRPC_DESC= Compile with xmlrpc-c support
IPV6_CONFIGURE_ENABLE= ipv6
XMLRPC_CONFIGURE_OFF= --with-xmlrpc-c=no
XMLRPC_CONFIGURE_ON= --with-xmlrpc-c
XMLRPC_LIB_DEPENDS= libxmlrpc.so:net/xmlrpc-c
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
.if ${OPSYS} == FreeBSD
@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \
-exec ${REINPLACE_CMD} -e 's/std::std::/std::/g' {} \; \
-exec ${REINPLACE_CMD} -e '/namespace tr1/d' {} \; \
-exec ${REINPLACE_CMD} -e '/include/s,tr1/,,' {} \;
.endif
XMLRPC_CONFIGURE_ON= --with-xmlrpc-c
XMLRPC_CONFIGURE_OFF= --with-xmlrpc-c=no
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1564448011
SHA256 (rtorrent-0.9.8.tar.gz) = 9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
SIZE (rtorrent-0.9.8.tar.gz) = 647523
TIMESTAMP = 1727610825
SHA256 (rtorrent-0.10.0.tar.gz) = cc65bba7abead24151f10af116eca2342b0c320fdff3cb8d604c0af09215d3aa
SIZE (rtorrent-0.10.0.tar.gz) = 402931

View File

@ -1,13 +0,0 @@
--- src/utils/directory.cc.orig 2014-04-21 13:34:45 UTC
+++ src/utils/directory.cc
@@ -88,6 +88,10 @@ Directory::update(int flags) {
itr->d_fileno = entry->d_ino;
itr->d_reclen = 0;
itr->d_type = s.st_mode;
+#elif defined(__DragonFly__)
+ itr->d_fileno = entry->d_fileno;
+ itr->d_reclen = _DIRENT_RECLEN(entry->d_namlen);
+ itr->d_type = entry->d_type;
#else
itr->d_fileno = entry->d_fileno;
itr->d_reclen = entry->d_reclen;