summaryrefslogtreecommitdiff
path: root/games-board/cockatrice
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-18 01:48:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-18 01:48:12 +0000
commit3e02de9a64a4e3d1f1af271a9da7ff7bbf8d86c8 (patch)
treeaa95978f9e2bf7dc6f4f643b7128b80e26350a21 /games-board/cockatrice
parent3a38a5d9da46eca9d656aa0ec448c8ba6034b044 (diff)
gentoo auto-resync : 18:12:2023 - 01:48:11
Diffstat (limited to 'games-board/cockatrice')
-rw-r--r--games-board/cockatrice/Manifest3
-rw-r--r--games-board/cockatrice/cockatrice-20230914.ebuild78
-rw-r--r--games-board/cockatrice/files/cockatrice-2.9.0-support-protobuf-23.patchbin0 -> 10240 bytes
3 files changed, 81 insertions, 0 deletions
diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
index 3a8f518da9ab..8b72abd0222f 100644
--- a/games-board/cockatrice/Manifest
+++ b/games-board/cockatrice/Manifest
@@ -1,3 +1,6 @@
+AUX cockatrice-2.9.0-support-protobuf-23.patch 10240 BLAKE2B a7fa2d2f26710e564f4752914e02828f2410c57f6126d574d13c14b1689f5200259a06f499591721b30b6d44d79644e14f78bcc144cb808208c9eb0e08a78e63 SHA512 b2bb89efab1d7ad51609ce8bd848d1b8a2795de6897fec7c3f04fbaac935944f7b490abc8784f280b77820966733be0b86f8e399bb0f0039fdae424ca5969503
DIST cockatrice-20210126.tar.gz 8589061 BLAKE2B f90840f2b6044ea364101410adc9481660a7247460f7191d6b022e447cc1685f28384a39596a3fbeaeb67f1af0cc184cf017f8e666e67e673672bc3968ac807a SHA512 e07cdee72c8bf4755d49cac69bd6a2ddb4c168d370ed4a1cbd341537184869ee8680fbf5e9d6b636c7c68888a8d00f474bae9cf245303d638b3aac8762f9fa8e
+DIST cockatrice-20230914.tar.gz 9295150 BLAKE2B b4dbe0ab8afb8871c63ca844dddcd540181a1cbfae3af3603f9677f6cbd871603527de8dc6ac148423457c227bcfd291c7db804607d1b8986dcb23138510eec6 SHA512 06841d1aabd14afef8d041e9c9eb1f157f9db1e8440d35b6092ffc68007599bf1b4185ec90e40074d562097d2230985087c4e9531b3e004eab221060c4076c57
EBUILD cockatrice-20210126.ebuild 1522 BLAKE2B aaebbe0ce90cdadc3b8f693d5c54992c196f71498209aa6c80ca7ebb11abfd5b76f4227d783c448018068324378fa3da7226ce0986ecf1f0575fb7f64069ae3c SHA512 69fa1fadc4b36c9ce2dea4c78aa5ca19c85ef07a9251709e47aae1e12143ad071e065a53fdb86af11eb2be4366eae72efdf6c83eb01159886c26b075cc327356
+EBUILD cockatrice-20230914.ebuild 1832 BLAKE2B 85128cd75d49aee1b868f9719f53e11d2a2614836c3e6139534570ab01a135d61e84bce49ba86a77ad26e1405d9b440fda8e80bd82b6b2c2cbd1aafbb14187a8 SHA512 dfe2eb1fe3771ec185890ad2309f6a8dea6733e023bf6a505435ccb6ad0d6052d304fcd8580ccbd194c8f5c7fa9dfc6e755d631d59709968edeace65dc1a62c7
MISC metadata.xml 1451 BLAKE2B 198f76cc369020760332ecb2f31a3675944b6eb8a50bac89b28155c93b66b1c5f717fa41736b1dc0c2ea817867150f9cc687ae2e4d7c26394292f0a9dcb6ff5c SHA512 6e50bd8905a63f0c9094751442a625e866e60181031d172504f9094ccd5ae83b16852bafd19d2598b89cf03e5218b448181e6174b3d83069f7f800e6ec898a79
diff --git a/games-board/cockatrice/cockatrice-20230914.ebuild b/games-board/cockatrice/cockatrice-20230914.ebuild
new file mode 100644
index 000000000000..b773cb63f5c1
--- /dev/null
+++ b/games-board/cockatrice/cockatrice-20230914.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg cmake optfeature
+
+MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}-Release-2.9.0"
+
+DESCRIPTION="Open-source multiplatform software for playing card games over a network"
+HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
+SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/Cockatrice-${MY_PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+client +oracle test server"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/protobuf:=
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ client? (
+ dev-qt/qtconcurrent:5
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebsockets:5
+ )
+ oracle? (
+ dev-qt/qtconcurrent:5
+ dev-qt/qtsvg:5
+ sys-libs/zlib
+ app-arch/xz-utils
+ )
+ server? (
+ dev-qt/qtsql:5
+ dev-qt/qtwebsockets:5
+ )"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-cpp/gtest )"
+BDEPEND="
+ dev-libs/protobuf:="
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.9.0-support-protobuf-23.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=OFF # This is need because the default eclass breaks the build
+ -DUSE_CCACHE=OFF
+ -DWITH_CLIENT=$(usex client)
+ -DWITH_ORACLE=$(usex oracle)
+ -DWITH_SERVER=$(usex server)
+ -DTEST=$(usex test)
+ -DICONDIR="${EPREFIX}/usr/share/icons"
+ -DDESKTOPDIR="${EPREFIX}/usr/share/applications"
+ -DFORCE_USE_QT5=1
+ -DUPDATE_TRANSLATIONS=OFF
+ )
+
+ # Add date in the help about, come from git originally
+ sed -e 's/^set(PROJECT_VERSION_FRIENDLY.*/set(PROJECT_VERSION_FRIENDLY \"'${MY_PV}'\")/' \
+ -i cmake/getversion.cmake || die "sed failed!"
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ optfeature "mysql/mariadb support" dev-db/mysql-connector-c
+}
diff --git a/games-board/cockatrice/files/cockatrice-2.9.0-support-protobuf-23.patch b/games-board/cockatrice/files/cockatrice-2.9.0-support-protobuf-23.patch
new file mode 100644
index 000000000000..72aca6614311
--- /dev/null
+++ b/games-board/cockatrice/files/cockatrice-2.9.0-support-protobuf-23.patch
Binary files differ