diff options
author | 2025-01-03 21:58:48 +0100 | |
---|---|---|
committer | 2025-01-04 08:26:22 +0100 | |
commit | 6e31628235697976cf611f2574c2f879320dfb64 (patch) | |
tree | fbbca59552ebea53e640776af8e744eca40d88e4 /games-board | |
parent | app-misc/datovka: drop 4.23.7 (diff) | |
download | gentoo-6e31628235697976cf611f2574c2f879320dfb64.tar.gz gentoo-6e31628235697976cf611f2574c2f879320dfb64.tar.bz2 gentoo-6e31628235697976cf611f2574c2f879320dfb64.zip |
games-board/chessx: add 1.6.2
Closes: https://bugs.gentoo.org/947250
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/chessx/Manifest | 1 | ||||
-rw-r--r-- | games-board/chessx/chessx-1.6.2.ebuild | 50 | ||||
-rw-r--r-- | games-board/chessx/files/chessx-1.6.2-install.patch | 22 | ||||
-rw-r--r-- | games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch | 66 |
4 files changed, 139 insertions, 0 deletions
diff --git a/games-board/chessx/Manifest b/games-board/chessx/Manifest index 887c6e39fcaa..5e0056a71331 100644 --- a/games-board/chessx/Manifest +++ b/games-board/chessx/Manifest @@ -1 +1,2 @@ DIST chessx-1.5.4.tgz 3663299 BLAKE2B 3a0f222d2c122e70f66600f15a2b9a9606e56407db364a616515ebc1b7f333e260c131e61e22f59fb3cbd340555bb8c238bfd560fbc23f4c173288cd4b7e7369 SHA512 9f112b185ed8af3690cb50eafead7dfbd7896d3baebc9b10c3d32103a51cc49834703c232c159dffe24fd09601f2b41db02598c435ca56fc1031195fb9762a42 +DIST chessx-1.6.2.tgz 11024855 BLAKE2B cdb836491f0567e885425f12230f4da69b5c03f6a4f02370064ae3bf8455c5ef035f8e177732602d3eaf865f0e16e8661243f42daa3aa3dd2166860fc25d771d SHA512 d9d92c9a36998497696ad84dd60f3dc5243fbcd29ee78a3c05d7812bc90be103349042f794060c3ef803199cc5b315d055b2a5e10c0b355a89b55dbc4a6c5241 diff --git a/games-board/chessx/chessx-1.6.2.ebuild b/games-board/chessx/chessx-1.6.2.ebuild new file mode 100644 index 000000000000..5640be58ee04 --- /dev/null +++ b/games-board/chessx/chessx-1.6.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop qmake-utils xdg + +DESCRIPTION="Qt-based Chess Database Utility" +HOMEPAGE="https://chessx.sourceforge.net/" +SRC_URI="https://sourceforge.net/projects/chessx/files/chessx/${PV}/${P}.tgz" +S="${WORKDIR}/${PN}-master" + +LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+ ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-libs/quazip-1.3-r2:0=[qt6(+)] + dev-qt/qt5compat:6 + dev-qt/qtbase:6[gui,network,widgets,xml] + dev-qt/qtmultimedia:6 + dev-qt/qtspeech:6 + dev-qt/qtsvg:6 + sys-libs/zlib +" +DEPEND="${RDEPEND} + dev-qt/qtbase:6[concurrent] +" +BDEPEND=" + dev-qt/qttools:6[linguist] + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${P}-system-quazip-zlib.patch + "${FILESDIR}"/${P}-install.patch +) + +src_configure() { + eqmake6 PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake INSTALL_ROOT="${D}" install + doicon -s 256 data/images/${PN}.png + for x in 32 64; do + newicon -s ${x} data/images/${PN}-${x}.png ${PN}.png + done + einstalldocs +} diff --git a/games-board/chessx/files/chessx-1.6.2-install.patch b/games-board/chessx/files/chessx-1.6.2-install.patch new file mode 100644 index 000000000000..9218f61f25c6 --- /dev/null +++ b/games-board/chessx/files/chessx-1.6.2-install.patch @@ -0,0 +1,22 @@ +--- a/chessx.pro 2024-09-06 00:12:14.000000000 +0200 ++++ b/chessx.pro 2025-01-03 22:31:22.225021206 +0100 +@@ -67,18 +67,13 @@ + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share + +- INSTALLS += appdata desktop icons binfiles ++ INSTALLS += appdata desktop 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; +- + binfiles.files = release/chessx + binfiles.path = $$BINDIR + diff --git a/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch b/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch new file mode 100644 index 000000000000..f17383a3dee5 --- /dev/null +++ b/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch @@ -0,0 +1,66 @@ +--- a/chessx.pro 2024-09-06 00:12:14.000000000 +0200 ++++ b/chessx.pro 2025-01-03 21:51:05.872265212 +0100 +@@ -41,7 +41,6 @@ + QT += multimedia + } + +-DEFINES += QUAZIP_STATIC + DEFINES += QT_NO_CAST_TO_ASCII + DEFINES *= QT_USE_QSTRINGBUILDER + +@@ -342,23 +341,7 @@ + src/gui/textbrowserex.h \ + src/gui/textedit.h \ + src/gui/toolmainwindow.h \ +- src/gui/translatingslider.h \ +- src/quazip/JlCompress.h \ +- src/quazip/crypt.h \ +- src/quazip/ioapi.h \ +- src/quazip/quaadler32.h \ +- src/quazip/quachecksum32.h \ +- src/quazip/quacrc32.h \ +- src/quazip/quagzipfile.h \ +- src/quazip/quaziodevice.h \ +- src/quazip/quazip.h \ +- src/quazip/quazip_global.h \ +- src/quazip/quazipdir.h \ +- src/quazip/quazipfile.h \ +- src/quazip/quazipfileinfo.h \ +- src/quazip/quazipnewinfo.h \ +- src/quazip/unzip.h \ +- src/quazip/zip.h ++ src/gui/translatingslider.h + + SOURCES += \ + src/database/analysis.cpp \ +@@ -512,26 +495,15 @@ + src/gui/testadapter.cpp \ + src/gui/textedit.cpp \ + src/gui/toolmainwindow.cpp \ +- src/gui/translatingslider.cpp \ +- src/quazip/JlCompress.cpp \ +- src/quazip/qioapi.cpp \ +- src/quazip/quaadler32.cpp \ +- src/quazip/quacrc32.cpp \ +- src/quazip/quagzipfile.cpp \ +- src/quazip/quaziodevice.cpp \ +- src/quazip/quazip.cpp \ +- src/quazip/quazipdir.cpp \ +- src/quazip/quazipfile.cpp \ +- src/quazip/quazipnewinfo.cpp \ +- src/quazip/unzip.cpp \ +- src/quazip/zip.cpp ++ src/gui/translatingslider.cpp + + INCLUDEPATH += src/database + INCLUDEPATH += src/guess + INCLUDEPATH += src/gui + INCLUDEPATH += src/dialogs +-INCLUDEPATH += src/quazip +-INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib ++ ++CONFIG += link_pkgconfig ++PKGCONFIG += quazip1-qt6 + + win32 { + # DEFINES += ZLIB_WINAPI |