public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/files/, games-board/cockatrice/
@ 2016-07-12 17:03 Patrice Clement
  0 siblings, 0 replies; 4+ messages in thread
From: Patrice Clement @ 2016-07-12 17:03 UTC (permalink / raw
  To: gentoo-commits

commit:     0f7add0d551daf7d75718cc67b929f404ddede4e
Author:     Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
AuthorDate: Fri Jun 24 13:43:17 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 17:03:34 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f7add0d

games-board/cockatrice: Clean old ebuild

* Remove old patches in files.
* Clean old ebuild in Manifest.

Closes: https://github.com/gentoo/gentoo/pull/1735

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 games-board/cockatrice/Manifest                    |   1 -
 games-board/cockatrice/cockatrice-20120702.ebuild  |  73 ---------------
 .../files/cockatrice-20120702-build.patch          | 103 ---------------------
 .../files/cockatrice-20120702-underlinking.patch   |  29 ------
 4 files changed, 206 deletions(-)

diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
index a0b0cc2..beec551 100644
--- a/games-board/cockatrice/Manifest
+++ b/games-board/cockatrice/Manifest
@@ -1,2 +1 @@
 DIST 2016-05-06-Release.tar.gz 6910937 SHA256 379835006f38b603af01cf46d508fd40e862b451045807b444042914e8736fee SHA512 5f90804270907b3a915e763e6a20c39432f76591a11df7198526fde5635314ffbb27026860053c302be1ef1dfce1efa445c5849c72d1220575314d6c3d67e94f WHIRLPOOL a13c531980da2cf172e933c5bcb179f8dc9368514fe7d2ec12a203f54c04aa5258218c6d2fc1bee30826598e1e8c057c437af6810709c26b0863cd2b665bc159
-DIST cockatrice_source_20120702.tar.gz 3790304 SHA256 a418124d3df255f2af70a20ff6b13f85361467abe4ea4216602bd3647cfc490e SHA512 119acd394dfe97de72b0be8d1ea8c6178f9d0150dcb50d1aba074c28c8d0f52f2be5758ac3943c49d11f655f02a70fc5f5a7e207b8a2631f73f7178ff17b5c35 WHIRLPOOL 1e5112519ddd0f4107778c97d4cf415959117d7e5854ad9760d50621a77a53d992678470772358c880e89ba35376cbf6abab4687969810c117d2851eae4ec70a

diff --git a/games-board/cockatrice/cockatrice-20120702.ebuild b/games-board/cockatrice/cockatrice-20120702.ebuild
deleted file mode 100644
index 931419a..0000000
--- a/games-board/cockatrice/cockatrice-20120702.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit cmake-utils eutils gnome2-utils games
-
-DESCRIPTION="An open-source multiplatform software for playing card games over a network"
-HOMEPAGE="http://cockatrice.de/"
-SRC_URI="http://cockatrice.de/files/${PN}_source_${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="dedicated server"
-
-DEPEND="
-	dev-libs/libgcrypt:0
-	dev-libs/protobuf
-	dev-qt/qtcore:4
-	dev-qt/qtsql:4
-	!dedicated? (
-		dev-qt/qtmultimedia:4
-		dev-qt/qtsvg:4
-		dev-qt/qtgui:4
-	)"
-RDEPEND=${DEPEND}
-
-S=${WORKDIR}/${PN}_${PV}
-
-src_prepare() {
-	epatch "${FILESDIR}"/${P}-build.patch \
-		"${FILESDIR}"/${P}-underlinking.patch
-}
-
-src_configure() {
-	local mycmakeargs=(
-		$(usex dedicated "-DWITHOUT_CLIENT=1 -DWITH_SERVER=1" "$(usex server "-DWITH_SERVER=1" "")")
-		-DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}"
-		-DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
-		-DDATADIR="${GAMES_DATADIR}/${PN}"
-		-DICONDIR="/usr/share/icons"
-		-DDESKTOPDIR="/usr/share/applications"
-	)
-
-	cmake-utils_src_configure
-}
-
-src_compile() {
-	cmake-utils_src_compile
-}
-
-src_install() {
-	cmake-utils_src_install
-	prepgamesdirs
-}
-
-pkg_preinst() {
-	games_pkg_preinst
-	use dedicated || gnome2_icon_savelist
-}
-
-pkg_postinst() {
-	games_pkg_postinst
-	elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg"
-	elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds"
-	elog "you can use those directories in cockatrice settings"
-	use dedicated || gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	use dedicated || gnome2_icon_cache_update
-}

diff --git a/games-board/cockatrice/files/cockatrice-20120702-build.patch b/games-board/cockatrice/files/cockatrice-20120702-build.patch
deleted file mode 100644
index 6876fcd..0000000
--- a/games-board/cockatrice/files/cockatrice-20120702-build.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-From: Julian Ospald <hasufell@gentoo.org>
-Date: Thu Aug  2 21:27:25 UTC 2012
-Subject: build system
-
-add install rule for cockatrice binary
-make paths for ICONDIR and DESKTOPDIR modifiable
-
---- CMakeLists.txt
-+++ CMakeLists.txt
-@@ -8,7 +8,9 @@
- 	add_subdirectory(oracle)
- endif(NOT WITHOUT_CLIENT)
- 
-+set(DATADIR "share/cockatrice" CACHE PATH "Data dir")
-+
- FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/sounds/*.raw")
--INSTALL(FILES ${sounds} DESTINATION share/cockatrice/sounds)
-+INSTALL(FILES ${sounds} DESTINATION ${DATADIR}/sounds)
- FILE(GLOB zonebg "${CMAKE_CURRENT_SOURCE_DIR}/zonebg/*.*")
--INSTALL(FILES ${zonebg} DESTINATION share/cockatrice/zonebg)
-\ No newline at end of file
-+INSTALL(FILES ${zonebg} DESTINATION ${DATADIR}/zonebg)
---- servatrice/CMakeLists.txt
-+++ servatrice/CMakeLists.txt
-@@ -2,6 +2,9 @@
- SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
- PROJECT(servatrice)
- 
-+# cmake modules
-+include(GNUInstallDirs)
-+
- SET(servatrice_SOURCES
-  src/main.cpp
-  src/passwordhasher.cpp
-@@ -51,3 +54,5 @@
- 	COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/../common/getversion.cmake
- )
- 
-+# install rules
-+INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/servatrice DESTINATION ${CMAKE_INSTALL_BINDIR})
---- cockatrice/CMakeLists.txt
-+++ cockatrice/CMakeLists.txt
-@@ -158,7 +158,13 @@
- )
- 
- if (UNIX AND NOT APPLE)
--	set_source_files_properties(src/main.cpp PROPERTIES COMPILE_FLAGS -DTRANSLATION_PATH=\\"${CMAKE_INSTALL_PREFIX}/share/cockatrice/translations\\")
-+	if(IS_ABSOLUTE ${DATADIR})
-+		set(_DATADIR ${DATADIR})
-+	else()
-+		set(_DATADIR ${CMAKE_INSTALL_PREFIX}/${DATADIR})
-+	endif()
-+
-+	set_source_files_properties(src/main.cpp PROPERTIES COMPILE_FLAGS -DTRANSLATION_PATH=\\"${_DATADIR}/translations\\")
- endif (UNIX AND NOT APPLE)
- 
- set(cockatrice_RESOURCES cockatrice.qrc)
-@@ -201,6 +207,11 @@
- set(CMAKE_CXX_FLAGS_DEBUG "-ggdb -O0")
- set(CMAKE_CXX_FLAGS_RELEASE "-s -O2")
- 
-+# paths
-+set(ICONDIR share/icons CACHE STRING "icon dir")
-+set(DESKTOPDIR share/applications CACHE STRING "desktop file destination")
-+
-+
- QT4_WRAP_CPP(cockatrice_HEADERS_MOC ${cockatrice_HEADERS})
- QT4_ADD_TRANSLATION(cockatrice_QM ${cockatrice_TS})
- QT4_ADD_RESOURCES(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES})
-@@ -218,10 +229,10 @@
- 
- INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin)
- if (NOT WIN32 AND NOT APPLE)
--	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION share/icons/hicolor/48x48/apps)
--	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION share/icons/hicolor/scalable/apps)
--	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION share/applications)
--	INSTALL(FILES ${cockatrice_QM} DESTINATION share/cockatrice/translations)
-+	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION ${ICONDIR}/hicolor/48x48/apps)
-+	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION ${ICONDIR}/hicolor/scalable/apps)
-+	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION ${DESKTOPDIR})
-+	INSTALL(FILES ${cockatrice_QM} DESTINATION ${DATADIR}/translations)
- ENDIF(NOT WIN32 AND NOT APPLE)
- 
- add_custom_command(
---- oracle/CMakeLists.txt
-+++ oracle/CMakeLists.txt
-@@ -1,6 +1,9 @@
- CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
- PROJECT(oracle)
- 
-+# paths
-+set(DESKTOPDIR share/appliactions CACHE STRING "path to .desktop files")
-+
- SET(oracle_SOURCES src/main.cpp src/oracleimporter.cpp src/window_main.cpp ../cockatrice/src/carddatabase.cpp ../cockatrice/src/settingscache.cpp)
- SET(oracle_HEADERS src/oracleimporter.h src/window_main.h ../cockatrice/src/carddatabase.h ../cockatrice/src/settingscache.h)
- 
-@@ -21,5 +24,5 @@
- 
- INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/oracle DESTINATION bin)
- IF (NOT WIN32 AND NOT APPLE)
--	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oracle.desktop DESTINATION share/applications)
-+	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oracle.desktop DESTINATION ${DESKTOPDIR})
- ENDIF (NOT WIN32 AND NOT APPLE)

diff --git a/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch b/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch
deleted file mode 100644
index 2117751..0000000
--- a/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Julian Ospald <hasufell@gentoo.org>
-Date: Thu Aug  2 22:12:00 UTC 2012
-Subject: underlinking
-
-add -lpthread to cockatrice amd servatrice LIBS to support linkers that
-don't permit underlinking
-
---- cockatrice/CMakeLists.txt
-+++ cockatrice/CMakeLists.txt
-@@ -219,7 +219,7 @@
- INCLUDE_DIRECTORIES(${QT_MOBILITY_MULTIMEDIAKIT_INCLUDE_DIR})
- 
- ADD_EXECUTABLE(cockatrice WIN32 MACOSX_BUNDLE ${cockatrice_SOURCES} ${cockatrice_QM} ${cockatrice_RESOURCES_RCC} ${cockatrice_HEADERS_MOC})
--TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY})
-+TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY} -lpthread)
- 
- INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin)
- if (NOT WIN32 AND NOT APPLE)
---- servatrice/CMakeLists.txt
-+++ servatrice/CMakeLists.txt
-@@ -46,7 +46,7 @@
- INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
- 
- ADD_EXECUTABLE(servatrice ${servatrice_SOURCES} ${servatrice_HEADERS_MOC})
--TARGET_LINK_LIBRARIES(servatrice cockatrice_common ${QT_LIBRARIES} ${LIBGCRYPT_LIBRARY})
-+TARGET_LINK_LIBRARIES(servatrice cockatrice_common ${QT_LIBRARIES} ${LIBGCRYPT_LIBRARY} -lpthread)
- 
- #add_custom_target(versionheader ALL DEPENDS version_header)
- add_custom_command(


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/files/, games-board/cockatrice/
@ 2019-03-13 22:45 James Le Cuirot
  0 siblings, 0 replies; 4+ messages in thread
From: James Le Cuirot @ 2019-03-13 22:45 UTC (permalink / raw
  To: gentoo-commits

commit:     4c06333a40da1166407b071e2eebc712b2663c3d
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 13 22:44:04 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed Mar 13 22:44:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c06333a

games-board/cockatrice: Disable automagic use of ccache with a patch

This has been submitted upstream.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-board/cockatrice/cockatrice-20190304.ebuild |  5 ++++
 games-board/cockatrice/files/use-ccache.patch     | 33 +++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/games-board/cockatrice/cockatrice-20190304.ebuild b/games-board/cockatrice/cockatrice-20190304.ebuild
index bd8edfdaf6b..8d1cd205662 100644
--- a/games-board/cockatrice/cockatrice-20190304.ebuild
+++ b/games-board/cockatrice/cockatrice-20190304.ebuild
@@ -49,8 +49,13 @@ SHA1='294b433'
 
 S="${WORKDIR}/Cockatrice-${MY_PV}"
 
+PATCHES=(
+	"${FILESDIR}"/use-ccache.patch
+)
+
 src_configure() {
 	local mycmakeargs=(
+		-DUSE_CCACHE=OFF
 		-DWITH_CLIENT=$(usex client)
 		-DWITH_ORACLE=$(usex oracle)
 		-DWITH_SERVER=$(usex server)

diff --git a/games-board/cockatrice/files/use-ccache.patch b/games-board/cockatrice/files/use-ccache.patch
new file mode 100644
index 00000000000..16deeaf0bb7
--- /dev/null
+++ b/games-board/cockatrice/files/use-ccache.patch
@@ -0,0 +1,33 @@
+From 494501bbc88d30d9f1ceb6fb3fbd428eeb58ddee Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Wed, 13 Mar 2019 22:18:45 +0000
+Subject: [PATCH] Add USE_CCACHE option to CMake so that ccache can be forcibly
+ disabled
+
+---
+ CMakeLists.txt | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cc39e77..59eec3d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,12 +25,15 @@ ELSE()
+ ENDIF()
+ 
+ # Early detect ccache
++OPTION(USE_CCACHE "Cache the build results with ccache" ON)
++if(USE_CCACHE)
+ find_program(CCACHE_PROGRAM ccache)
+ if(CCACHE_PROGRAM)
+     # Support Unix Makefiles and Ninja
+     set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
+     MESSAGE(STATUS "Found CCache ${CCACHE_PROGRAM}")
+ endif()
++endif()
+ 
+ # A project name is needed for CPack
+ # Version can be overriden by git tags, see cmake/getversion.cmake
+-- 
+2.20.1
+


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/files/, games-board/cockatrice/
@ 2020-06-21 11:38 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2020-06-21 11:38 UTC (permalink / raw
  To: gentoo-commits

commit:     a74631c7a568d0bde571713530dbc0da7bde363b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 11:16:53 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 11:37:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a74631c7

games-board/cockatrice: Fix build with Qt 5.15

Closes: https://bugs.gentoo.org/726740
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 games-board/cockatrice/cockatrice-20190304-r1.ebuild |  8 +++-----
 .../files/cockatrice-20190304-qt-5.15.patch          | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/games-board/cockatrice/cockatrice-20190304-r1.ebuild b/games-board/cockatrice/cockatrice-20190304-r1.ebuild
index 39f89707cad..50792e3ce5f 100644
--- a/games-board/cockatrice/cockatrice-20190304-r1.ebuild
+++ b/games-board/cockatrice/cockatrice-20190304-r1.ebuild
@@ -17,23 +17,21 @@ IUSE="+client +oracle server"
 
 RDEPEND="
 	dev-qt/qtconcurrent:5
-	dev-qt/qtprintsupport:5
 	dev-qt/qtcore:5
 	dev-qt/qtgui:5
 	dev-qt/qtnetwork:5[ssl]
+	dev-qt/qtprintsupport:5
 	dev-qt/qtwebsockets:5
 	dev-qt/qtwidgets:5
 	client? (
 		dev-libs/protobuf:=
 		dev-qt/qtmultimedia:5
-		dev-qt/qtprintsupport:5
 		dev-qt/qtsvg:5
 	)
 	oracle? ( sys-libs/zlib )
 	server? (
 		dev-libs/protobuf:=
 		dev-qt/qtsql:5
-		dev-qt/qtwebsockets:5
 	)
 "
 BDEPEND="
@@ -41,8 +39,7 @@ BDEPEND="
 	client? ( dev-libs/protobuf )
 	server? ( dev-libs/protobuf )
 "
-DEPEND="${RDEPEND}
-"
+DEPEND="${RDEPEND}"
 
 # As the default help/about display the sha1 we need it
 SHA1='294b433'
@@ -51,6 +48,7 @@ S="${WORKDIR}/Cockatrice-${MY_PV}"
 
 PATCHES=(
 	"${FILESDIR}"/use-ccache.patch
+	"${FILESDIR}"/${P}-qt-5.15.patch
 )
 
 src_configure() {

diff --git a/games-board/cockatrice/files/cockatrice-20190304-qt-5.15.patch b/games-board/cockatrice/files/cockatrice-20190304-qt-5.15.patch
new file mode 100644
index 00000000000..878a8d42824
--- /dev/null
+++ b/games-board/cockatrice/files/cockatrice-20190304-qt-5.15.patch
@@ -0,0 +1,20 @@
+From 7fa1936d0f4efffa16ae28d6bd3f9e727e207046 Mon Sep 17 00:00:00 2001
+From: ebbit1q <ebbit1q@gmail.com>
+Date: Fri, 19 Jun 2020 16:50:09 +0200
+Subject: [PATCH] qt 5.15 compatibility (#4027)
+
+---
+ cockatrice/src/replay_timeline_widget.cpp      |  1 +
+ 27 files changed, 101 insertions(+), 39 deletions(-)
+
+diff --git a/cockatrice/src/replay_timeline_widget.cpp b/cockatrice/src/replay_timeline_widget.cpp
+index 6d04dce80..e79ad5f5c 100644
+--- a/cockatrice/src/replay_timeline_widget.cpp
++++ b/cockatrice/src/replay_timeline_widget.cpp
+@@ -1,6 +1,7 @@
+ #include "replay_timeline_widget.h"
+ #include <QPainter>
++#include <QPainterPath>
+ #include <QPalette>
+ #include <QTimer>
+ #include <cmath>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/files/, games-board/cockatrice/
@ 2023-12-17 21:42 James Le Cuirot
  0 siblings, 0 replies; 4+ messages in thread
From: James Le Cuirot @ 2023-12-17 21:42 UTC (permalink / raw
  To: gentoo-commits

commit:     751eda8a95ec16ce5d4947e339a19aed79542f5c
Author:     Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
AuthorDate: Sun Nov 26 19:53:23 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Dec 17 21:36:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=751eda8a

games-board/cockatrice: Bump to 20230914

Closes: https://bugs.gentoo.org/918619
Closes: https://bugs.gentoo.org/739118
Closes: https://bugs.gentoo.org/843257
Closes: https://bugs.gentoo.org/912942
Signed-off-by: Guillaume Seren <guillaumeseren <AT> gmail.com>
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-board/cockatrice/Manifest                    |   1 +
 games-board/cockatrice/cockatrice-20230914.ebuild  |  78 +++++++++++++++++++++
 .../cockatrice-2.9.0-support-protobuf-23.patch     | Bin 0 -> 10240 bytes
 3 files changed, 79 insertions(+)

diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
index 4b942ce02363..53f083a1ae09 100644
--- a/games-board/cockatrice/Manifest
+++ b/games-board/cockatrice/Manifest
@@ -1 +1,2 @@
 DIST cockatrice-20210126.tar.gz 8589061 BLAKE2B f90840f2b6044ea364101410adc9481660a7247460f7191d6b022e447cc1685f28384a39596a3fbeaeb67f1af0cc184cf017f8e666e67e673672bc3968ac807a SHA512 e07cdee72c8bf4755d49cac69bd6a2ddb4c168d370ed4a1cbd341537184869ee8680fbf5e9d6b636c7c68888a8d00f474bae9cf245303d638b3aac8762f9fa8e
+DIST cockatrice-20230914.tar.gz 9295150 BLAKE2B b4dbe0ab8afb8871c63ca844dddcd540181a1cbfae3af3603f9677f6cbd871603527de8dc6ac148423457c227bcfd291c7db804607d1b8986dcb23138510eec6 SHA512 06841d1aabd14afef8d041e9c9eb1f157f9db1e8440d35b6092ffc68007599bf1b4185ec90e40074d562097d2230985087c4e9531b3e004eab221060c4076c57

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
Binary files /dev/null and b/games-board/cockatrice/files/cockatrice-2.9.0-support-protobuf-23.patch differ


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-17 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-21 11:38 [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/files/, games-board/cockatrice/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2023-12-17 21:42 James Le Cuirot
2019-03-13 22:45 James Le Cuirot
2016-07-12 17:03 Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox