Skip to content

Commit

Permalink
net-p2p/torrent-file-editor: update the port to version 0.3.18
Browse files Browse the repository at this point in the history
- Drop no longer needed ugly workarounds for various build issues
- Use recommended source tarball, not the one generated by GitHub

Reported by:	portscout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jun 28, 2023
1 parent ee9148b commit 573a287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
20 changes: 3 additions & 17 deletions net-p2p/torrent-file-editor/Makefile
@@ -1,7 +1,7 @@
PORTNAME= torrent-file-editor
PORTVERSION= 0.3.17
DISTVERSIONPREFIX= v
PORTVERSION= 0.3.18
CATEGORIES= net-p2p
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${PORTVERSION}/

MAINTAINER= danfe@FreeBSD.org
COMMENT= GUI tool for creating and editing .torrent files
Expand All @@ -10,7 +10,6 @@ WWW= https://torrent-file-editor.github.io/
LICENSE= GPLv3+

USES= cmake compiler:c++11-lang desktop-file-utils qt:5
USE_GITHUB= yes
USE_QT= buildtools:build linguisttools:build qmake:build \
core gui widgets

Expand All @@ -23,17 +22,4 @@ OPTIONS_DEFAULT= DONATION
DONATION_DESC= Show donation text in the About dialog
DONATION_CMAKE_OFF= -DDISABLE_DONATION:BOOL=ON

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=unused-but-set-variable
.endif

post-patch:
@${REINPLACE_CMD} -e 's,const auto file,const auto \&file,' \
${WRKSRC}/bencodemodel.cpp ${WRKSRC}/mainwindow.cpp
# Avoid conflict with C++20 <version> by adding .txt suffix
@${REINPLACE_CMD} -i .c++20 '/file/s/version/&.txt/' \
${WRKSRC}/cmake/Dmg.cmake ${WRKSRC}/cmake/Version.cmake

.include <bsd.port.post.mk>
.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions net-p2p/torrent-file-editor/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1578160957
SHA256 (torrent-file-editor-torrent-file-editor-v0.3.17_GH0.tar.gz) = e81a8701f04715dd9162a67cb1732f9d93209200a2aefcf9d2cc6acbb8d76443
SIZE (torrent-file-editor-torrent-file-editor-v0.3.17_GH0.tar.gz) = 392867
TIMESTAMP = 1687873884
SHA256 (torrent-file-editor-0.3.18.tar.gz) = 78b69e0151c5998b4df8b69225e7930c18b7d4419eeaabcad769df0f38a86292
SIZE (torrent-file-editor-0.3.18.tar.gz) = 383747

0 comments on commit 573a287

Please sign in to comment.