diff --git a/games/chessx/Makefile b/games/chessx/Makefile index 3180d8126fe9..20ba8381a736 100644 --- a/games/chessx/Makefile +++ b/games/chessx/Makefile @@ -1,48 +1,42 @@ PORTNAME= chessx -DISTVERSION= 1.6.2 +DISTVERSION= 1.6.8 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} MAINTAINER= alexey@pentode.fi COMMENT= Qt 5 chess database application WWW= https://chessx.sourceforge.io/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING.md USES= compiler:c++11-lang desktop-file-utils gl gmake qmake qt:5 tar:tgz USE_GL= gl USE_QT= concurrent core gui multimedia network opengl printsupport svg \ widgets xml buildtools:build linguisttools:build speech PLIST_FILES= bin/chessx \ share/applications/chessx.desktop \ share/pixmaps/chessx.png \ share/metainfo/io.sourceforge.ChessX.metainfo.xml \ share/icons/hicolor/128x128/apps/chessx.png \ share/icons/hicolor/32x32/apps/chessx-32.png \ share/icons/hicolor/64x64/apps/chessx-64.png OPTIONS_DEFINE= CRAFTY STOCKFISH CRAFTY_DESC= Install Crafty Chess Application STOCKFISH_DESC= Install Stockfish Chess Engine CRAFTY_RUN_DEPENDS= crafty:games/crafty STOCKFISH_RUN_DEPENDS= stockfish:games/stockfish .include post-extract: @${MV} ${WRKDIR}/chessx-master ${WRKSRC} -post-patch: -.if ${COMPILER_TYPE} == clang - @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ - ${WRKSRC}/src/database/polyglotdatabase.cpp -.endif - post-configure: ( cd ${BUILD_WRKSRC} && ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro ) .include diff --git a/games/chessx/distinfo b/games/chessx/distinfo index 58d14b1a385f..186b1e1a4b7f 100644 --- a/games/chessx/distinfo +++ b/games/chessx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1726035877 -SHA256 (chessx-1.6.2.tgz) = bb091d849cb02d6309978fe284c9f1a85c274f35122fe91c6b9c3089a6e20f80 -SIZE (chessx-1.6.2.tgz) = 11024855 +TIMESTAMP = 1769857796 +SHA256 (chessx-1.6.8.tgz) = 14e498bbe0e5cbc12efa38920c6b978c79110e6a216a1708cac678788292df67 +SIZE (chessx-1.6.8.tgz) = 12846948 diff --git a/games/chessx/files/patch-chessx.pro b/games/chessx/files/patch-chessx.pro index 2e7e4c999dce..6bcc49857985 100644 --- a/games/chessx/files/patch-chessx.pro +++ b/games/chessx/files/patch-chessx.pro @@ -1,42 +1,55 @@ ---- chessx.pro.orig 2023-05-08 20:22:12 UTC +--- chessx.pro.orig 2026-01-29 10:50:39 UTC +++ chessx.pro -@@ -67,18 +67,26 @@ unix|!macx { +@@ -55,18 +55,26 @@ unix|!macx { BINDIR = $$PREFIX/bin DATADIR = $$PREFIX/share - INSTALLS += appdata desktop icons binfiles + INSTALLS += appdata desktop icons32 icons64 icons128 pixmaps binfiles appdata.files = unix/io.sourceforge.ChessX.metainfo.xml appdata.path = $$DATADIR/metainfo + desktop.files = unix/chessx.desktop desktop.path = $$DATADIR/applications - icons.path = $$DATADIR/icons/hicolor - icons.commands = install -Dm644 data/images/chessx.png $${icons.path}/128x128/apps/chessx.png; \ - install -Dm644 data/images/chessx-32.png $${icons.path}/32x32/apps/chessx.png; \ - install -Dm644 data/images/chessx-64.png $${icons.path}/64x64/apps/chessx.png; + icons32.files = data/images/chessx-32.png + icons32.path = $$DATADIR/icons/hicolor/32x32/apps + icons64.path = $$DATADIR/icons/hicolor/64x64/apps + icons64.files = data/images/chessx-64.png + + icons128.path = $$DATADIR/icons/hicolor/128x128/apps + icons128.files = data/images/chessx.png + + pixmaps.path = $$PREFIX/share/pixmaps + pixmaps.files = data/images/chessx.png + binfiles.files = release/chessx binfiles.path = $$BINDIR - } -@@ -532,6 +540,7 @@ win32 { - INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtZlib + +@@ -531,6 +539,7 @@ win32 { win32-g++:LIBS += -lz } -+ ++ UI_DIR = src/generated MOC_DIR = src/generated + RCC_DIR = src/generated +@@ -609,10 +618,10 @@ PRE_TARGETDEPS += compiler_TSQM_make_all + PRE_TARGETDEPS += compiler_TSQM_make_all + + # Automatically run lupdate when building +-updateqm.commands = lupdate $$PWD/$$TARGET.pro && lrelease $$PWD/i18n/*.ts ++updateqm.commands = lupdate-qt5 $$PWD/$$TARGET.pro && lrelease $$PWD/i18n/*.ts + QMAKE_EXTRA_TARGETS += updateqm + +-update_translations.commands = lupdate $$PWD -ts $$TRANSLATIONS ++update_translations.commands = lupdate-qt5 $$PWD -ts $$TRANSLATIONS + QMAKE_EXTRA_TARGETS += update_translations + PRE_TARGETDEPS += update_translations # Optional: Run before build +