Update chessx to 1.5.6 and use archivers/quazip 1.3.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/chessx/Makefile,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 Makefile
--- Makefile    11 Mar 2022 19:04:11 -0000      1.11
+++ Makefile    26 Aug 2022 20:28:35 -0000
@@ -1,35 +1,42 @@
-COMMENT =              free chess database and analyzer
-DISTNAME =             chessx-1.4.6
-CATEGORIES =           games
-HOMEPAGE =             http://chessx.sourceforge.net/
-REVISION =             5
+COMMENT =      free chess database and analyzer
+
+V =            1.5.6
+GH_ACCOUNT =   Isarhamster
+GH_PROJECT =   chessx
+GH_TAGNAME =   v${V}-lw
+
+DISTNAME =     chessx-${V}
+
+CATEGORIES =   games
+
+HOMEPAGE =     https://chessx.sourceforge.net/
 
 # GPLv2+
 PERMIT_PACKAGE =       Yes
 
-WANTLIB =  GL Qt5Core Qt5Gui Qt5Multimedia Qt5Network Qt5PrintSupport
-WANTLIB += Qt5Svg Qt5Widgets Qt5Xml c m pthread quazip5 z
-WANTLIB += ${COMPILER_LIBCXX}
-
-MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=chessx/}
-EXTRACT_SUFX =         .tgz
-
-MODULES =              x11/qt5 devel/qmake
-RUN_DEPENDS =          devel/desktop-file-utils
-LIB_DEPENDS =          archivers/quazip \
-                       x11/qt5/qtmultimedia \
-                       x11/qt5/qtsvg
+WANTLIB += ${COMPILER_LIBCXX} Qt5Core Qt5Gui Qt5Multimedia Qt5Network
+WANTLIB += Qt5PrintSupport Qt5Svg Qt5Widgets Qt5Xml c m pulse
+WANTLIB += pulse-mainloop-glib quazip1-qt5 z
+
+MODULES =      x11/qt5 \
+               devel/cmake
+
+RUN_DEPENDS =  devel/desktop-file-utils
+
+LIB_DEPENDS =  archivers/quazip>=1.3 \
+               x11/qt5/qtmultimedia \
+               x11/qt5/qtsvg
 
-NO_TEST =              Yes
+NO_TEST =      Yes
 
-CXXFLAGS +=            -I${LOCALBASE}/include/quazip5
+CXXFLAGS +=    -I${LOCALBASE}/include/QuaZip-Qt5/quazip/
 
 # make sure bundled quazip is not picked up
 post-extract:
        rm -R ${WRKDIST}/src/quazip
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKBUILD}/release/chessx ${PREFIX}/bin/
+       ${INSTALL_PROGRAM} ${WRKBUILD}/chessx ${PREFIX}/bin/
        ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
        ${INSTALL_DATA} ${WRKSRC}/unix/chessx.desktop 
${PREFIX}/share/applications/
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/chessx/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo    2 Jul 2017 00:51:50 -0000       1.2
+++ distinfo    26 Aug 2022 20:28:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (chessx-1.4.6.tgz) = rZUZEKO9U/VlX56FEB55abU2B4Rz4Joqfd7W7xcaaO0=
-SIZE (chessx-1.4.6.tgz) = 4223076
+SHA256 (chessx-1.5.6.tar.gz) = NKOv9azN6Szn6UC5E68Du4KWIwYdaswjfL5aBLpkIoE=
+SIZE (chessx-1.5.6.tar.gz) = 22796472
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt        26 Aug 2022 20:28:35 -0000
@@ -0,0 +1,15 @@
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -103,9 +103,10 @@ add_executable(chessx WIN32
+   ${OTHER_FILES}
+ )
+ 
++find_package(QuaZip-Qt5 REQUIRED)
+ target_link_libraries(chessx PRIVATE
+   qt_config
+-  quazip
++  QuaZip::QuaZip
+   bitboard
+   board
+   eco
Index: patches/patch-chessx_pro
===================================================================
RCS file: patches/patch-chessx_pro
diff -N patches/patch-chessx_pro
--- patches/patch-chessx_pro    11 Mar 2022 19:04:11 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,107 +0,0 @@
-Use system quazip.
-Index: chessx.pro
---- chessx.pro.orig
-+++ chessx.pro
-@@ -141,22 +141,6 @@ HEADERS += src/database/board.h \
-     src/gui/engineoptionlist.h \
-     src/gui/helpbrowser.h \
-     src/database/downloadmanager.h \
--    src/quazip/zip.h \
--    src/quazip/unzip.h \
--    src/quazip/quazipnewinfo.h \
--    src/quazip/quazipfileinfo.h \
--    src/quazip/quazipfile.h \
--    src/quazip/quazipdir.h \
--    src/quazip/quazip.h \
--    src/quazip/quazip_global.h \
--    src/quazip/quaziodevice.h \
--    src/quazip/quagzipfile.h \
--    src/quazip/quacrc32.h \
--    src/quazip/quachecksum32.h \
--    src/quazip/quaadler32.h \
--    src/quazip/JlCompress.h \
--    src/quazip/ioapi.h \
--    src/quazip/crypt.h \
-     src/gui/toolmainwindow.h \
-     src/gui/playerlistwidget.h \
-     src/gui/qled.h \
-@@ -299,18 +283,6 @@ SOURCES += src/database/board.cpp \
-     src/gui/engineoptionlist.cpp \
-     src/gui/helpbrowser.cpp \
-     src/database/downloadmanager.cpp \
--    src/quazip/quazipnewinfo.cpp \
--    src/quazip/quazipfile.cpp \
--    src/quazip/quazipdir.cpp \
--    src/quazip/quazip.cpp \
--    src/quazip/quaziodevice.cpp \
--    src/quazip/quagzipfile.cpp \
--    src/quazip/quacrc32.cpp \
--    src/quazip/quaadler32.cpp \
--    src/quazip/qioapi.cpp \
--    src/quazip/JlCompress.cpp \
--    src/quazip/zip.c \
--    src/quazip/unzip.c \
-     src/gui/toolmainwindow.cpp \
-     src/gui/playerlistwidget.cpp \
-     src/gui/qled.cpp \
-@@ -382,12 +354,48 @@ SOURCES += src/database/board.cpp \
-     src/database/streamdatabase.cpp \
-     src/database/refcount.cpp
- 
-+!openbsd {
-+HEADERS += \
-+    src/quazip/zip.h \
-+    src/quazip/unzip.h \
-+    src/quazip/quazipnewinfo.h \
-+    src/quazip/quazipfileinfo.h \
-+    src/quazip/quazipfile.h \
-+    src/quazip/quazipdir.h \
-+    src/quazip/quazip.h \
-+    src/quazip/quazip_global.h \
-+    src/quazip/quaziodevice.h \
-+    src/quazip/quagzipfile.h \
-+    src/quazip/quacrc32.h \
-+    src/quazip/quachecksum32.h \
-+    src/quazip/quaadler32.h \
-+    src/quazip/JlCompress.h \
-+    src/quazip/ioapi.h \
-+    src/quazip/crypt.h
-+
-+SOURCES += \
-+    src/quazip/quazipnewinfo.cpp \
-+    src/quazip/quazipfile.cpp \
-+    src/quazip/quazipdir.cpp \
-+    src/quazip/quazip.cpp \
-+    src/quazip/quaziodevice.cpp \
-+    src/quazip/quagzipfile.cpp \
-+    src/quazip/quacrc32.cpp \
-+    src/quazip/quaadler32.cpp \
-+    src/quazip/qioapi.cpp \
-+    src/quazip/JlCompress.cpp \
-+    src/quazip/zip.c \
-+    src/quazip/unzip.c
-+}
-+
- TEMPLATE = app
- INCLUDEPATH += src/database
- INCLUDEPATH += src/guess
- INCLUDEPATH += src/gui
- INCLUDEPATH += src/dialogs
--INCLUDEPATH += src/quazip
-+!openbsd {
-+    INCLUDEPATH += src/quazip
-+}
- INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
- 
- win32 {
-@@ -425,6 +433,10 @@ static {
-     CONFIG(release, debug|release) {
-         LIBS += -lz
-     }
-+}
-+
-+openbsd {
-+    LIBS += -lquazip5
- }
- 
- TARGET = chessx
Index: patches/patch-src_CMakeLists_txt
===================================================================
RCS file: patches/patch-src_CMakeLists_txt
diff -N patches/patch-src_CMakeLists_txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_CMakeLists_txt    26 Aug 2022 20:28:35 -0000
@@ -0,0 +1,18 @@
+Index: src/CMakeLists.txt
+--- src/CMakeLists.txt.orig
++++ src/CMakeLists.txt
+@@ -1,5 +1,3 @@
+-add_subdirectory(quazip)
+-
+ add_library(bitboard STATIC
+   database/bitboard.cpp
+   database/bitboard.h
+@@ -437,7 +435,7 @@ target_link_libraries(gui
+   PRIVATE
+     qt_config
+     eco
+-    quazip
++    QuaZip::QuaZip
+     Qt5::PrintSupport
+     Qt5::Svg
+   PUBLIC
Index: patches/patch-src_dialogs_preferences_cpp
===================================================================
RCS file: patches/patch-src_dialogs_preferences_cpp
diff -N patches/patch-src_dialogs_preferences_cpp
--- patches/patch-src_dialogs_preferences_cpp   11 Mar 2022 19:04:11 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: src/dialogs/preferences.cpp
---- src/dialogs/preferences.cpp.orig
-+++ src/dialogs/preferences.cpp
-@@ -21,6 +21,7 @@
- #include "engineoptiondialog.h"
- #include "downloadmanager.h"
- 
-+#include <QAction>
- #include <QCheckBox>
- #include <QColorDialog>
- #include <QComboBox>
Index: patches/patch-src_dialogs_savedialog_cpp
===================================================================
RCS file: patches/patch-src_dialogs_savedialog_cpp
diff -N patches/patch-src_dialogs_savedialog_cpp
--- patches/patch-src_dialogs_savedialog_cpp    11 Mar 2022 19:04:11 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: src/dialogs/savedialog.cpp
---- src/dialogs/savedialog.cpp.orig
-+++ src/dialogs/savedialog.cpp
-@@ -22,6 +22,7 @@
- #include "settings.h"
- #include "tags.h"
- 
-+#include <QButtonGroup>
- #include <QLineEdit>
- #include <QCompleter>
- 
Index: patches/patch-src_gui_gamewindow_cpp
===================================================================
RCS file: patches/patch-src_gui_gamewindow_cpp
diff -N patches/patch-src_gui_gamewindow_cpp
--- patches/patch-src_gui_gamewindow_cpp        11 Mar 2022 19:04:11 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: src/gui/gamewindow.cpp
---- src/gui/gamewindow.cpp.orig
-+++ src/gui/gamewindow.cpp
-@@ -8,6 +8,7 @@
- #include "nag.h"
- #include "settings.h"
- 
-+#include <QAction>
- #include <QToolButton>
- 
- #if defined(_MSC_VER) && defined(_DEBUG)

Reply via email to