diff --git a/net-p2p/torrent-file-editor/Makefile b/net-p2p/torrent-file-editor/Makefile index 58eae0707130..646b5f5bcc91 100644 --- a/net-p2p/torrent-file-editor/Makefile +++ b/net-p2p/torrent-file-editor/Makefile @@ -1,25 +1,25 @@ PORTNAME= torrent-file-editor -PORTVERSION= 0.3.18 +PORTVERSION= 1.0.2 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 WWW= https://torrent-file-editor.github.io/ LICENSE= GPLv3+ USES= cmake compiler:c++11-lang desktop-file-utils qt:5 USE_QT= buildtools:build linguisttools:build qmake:build \ - core gui widgets + core gui svg widgets CMAKE_ARGS= -DQT5_BUILD:BOOL=ON \ -DENABLE_PCH:BOOL=OFF OPTIONS_DEFINE= DONATION OPTIONS_DEFAULT= DONATION DONATION_DESC= Show donation text in the About dialog DONATION_CMAKE_OFF= -DDISABLE_DONATION:BOOL=ON .include diff --git a/net-p2p/torrent-file-editor/distinfo b/net-p2p/torrent-file-editor/distinfo index 63b5f8d07b05..ef053a5a9a51 100644 --- a/net-p2p/torrent-file-editor/distinfo +++ b/net-p2p/torrent-file-editor/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1687873884 -SHA256 (torrent-file-editor-0.3.18.tar.gz) = 78b69e0151c5998b4df8b69225e7930c18b7d4419eeaabcad769df0f38a86292 -SIZE (torrent-file-editor-0.3.18.tar.gz) = 383747 +TIMESTAMP = 1774224657 +SHA256 (torrent-file-editor-1.0.2.tar.gz) = adbc8eda5105c8dd6a2b231165c5446fc062b566272b40493a4dcd0bfc511e5b +SIZE (torrent-file-editor-1.0.2.tar.gz) = 657462 diff --git a/net-p2p/torrent-file-editor/files/patch-CMakeLists.txt b/net-p2p/torrent-file-editor/files/patch-CMakeLists.txt deleted file mode 100644 index c03ce1c23cc9..000000000000 --- a/net-p2p/torrent-file-editor/files/patch-CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ ---- CMakeLists.txt.orig 2019-04-11 19:45:13 UTC -+++ CMakeLists.txt -@@ -31,6 +31,9 @@ add_custom_target(update_version ALL - COMMAND ${CMAKE_COMMAND} -DWIN32=${WIN32} -DAPP_VERSION="v${APP_VERSION}" -P "${CMAKE_SOURCE_DIR}/Version.cmake" - ) - -+# Fix build with Qt 5.13 -+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS=Y") -+ - # Enable C++11 - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") - -@@ -129,6 +132,7 @@ if(QT5_BUILD) - else() - find_package(Qt4 REQUIRED) - find_package(QJSON 0.8.0 REQUIRED) -+ include_directories(${QJSON_INCLUDE_DIR}) - add_definitions("'-DQStringLiteral(str)=QString::fromUtf8(\"\" str \"\", sizeof(str) - 1)'") - include_directories(${QJSON_INCLUDE_DIR}) - diff --git a/net-p2p/torrent-file-editor/files/patch-mainwindow.cpp b/net-p2p/torrent-file-editor/files/patch-mainwindow.cpp new file mode 100644 index 000000000000..c2f266ebec14 --- /dev/null +++ b/net-p2p/torrent-file-editor/files/patch-mainwindow.cpp @@ -0,0 +1,12 @@ +--- mainwindow.cpp.orig 2026-03-23 00:10:57 UTC ++++ mainwindow.cpp +@@ -576,6 +576,9 @@ void MainWindow::fillCoding() + for (int mib : QTextCodec::availableMibs()) { + QTextCodec *codec = QTextCodec::codecForMib(mib); + ++ // https://github.com/torrent-file-editor/torrent-file-editor/issues/172 ++ if (!codec) continue; ++ + QString sortKey = QString::fromUtf8(codec->name().toUpper()); + int rank; + diff --git a/net-p2p/torrent-file-editor/pkg-plist b/net-p2p/torrent-file-editor/pkg-plist index 70c1a2e0f560..229f5527a585 100644 --- a/net-p2p/torrent-file-editor/pkg-plist +++ b/net-p2p/torrent-file-editor/pkg-plist @@ -1,9 +1,15 @@ bin/torrent-file-editor -share/appdata/torrent-file-editor.appdata.xml -share/applications/torrent-file-editor.desktop -share/icons/hicolor/16x16/apps/torrent-file-editor.png -share/icons/hicolor/32x32/apps/torrent-file-editor.png -share/icons/hicolor/48x48/apps/torrent-file-editor.png -share/icons/hicolor/64x64/apps/torrent-file-editor.png -share/icons/hicolor/128x128/apps/torrent-file-editor.png -share/icons/hicolor/256x256/apps/torrent-file-editor.png +share/applications/io.github.torrent_file_editor.Torrent-file-editor.desktop +share/icons/hicolor/16x16/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/22x22/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/32x32/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/44x44/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/48x48/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/64x64/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/128x128/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/150x150/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/256x256/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/310x310/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/512x512/apps/io.github.torrent_file_editor.Torrent-file-editor.png +share/icons/hicolor/scalable/apps/io.github.torrent_file_editor.Torrent-file-editor.svg +share/metainfo/io.github.torrent_file_editor.Torrent-file-editor.metainfo.xml