diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/pokerth |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/pokerth')
-rw-r--r-- | games-board/pokerth/Manifest | 10 | ||||
-rw-r--r-- | games-board/pokerth/files/pokerth-1.1.1-boost-1.60.patch | 150 | ||||
-rw-r--r-- | games-board/pokerth/files/pokerth-1.1.1-boost-1.65-ambiguous-advance.patch | 14 | ||||
-rw-r--r-- | games-board/pokerth/files/pokerth-1.1.1-boost-noexcept.patch | 80 | ||||
-rw-r--r-- | games-board/pokerth/files/pokerth-1.1.1-qmake-gcc-6.patch | 86 | ||||
-rw-r--r-- | games-board/pokerth/files/pokerth-1.1.1-qt5.patch | 19 | ||||
-rw-r--r-- | games-board/pokerth/metadata.xml | 11 | ||||
-rw-r--r-- | games-board/pokerth/pokerth-1.1.1-r2.ebuild | 76 |
8 files changed, 446 insertions, 0 deletions
diff --git a/games-board/pokerth/Manifest b/games-board/pokerth/Manifest new file mode 100644 index 000000000000..c2fba4181dee --- /dev/null +++ b/games-board/pokerth/Manifest @@ -0,0 +1,10 @@ +AUX pokerth-1.1.1-boost-1.60.patch 6768 SHA256 05d4d0e9d5cfdcf1e695eb2bf88e66c75f756538f81183d6e7ff2e1f639ec9dd SHA512 cad73daa2b1709e8b06c100faceb598d260959645f3f848fd8822f4b90c5f7e910d58bbed801786d27b4a2cf20b94419c573c8f6a3042f1cbac4fe249b4ad130 WHIRLPOOL 8a03b6829a00a7a77ff6eea894edc698990fdebe45388294839a640e0aff05753f611abcb5e9b345def0cde436d2b906bd20e0dcf6b1e28cb6938314989743c4 +AUX pokerth-1.1.1-boost-1.65-ambiguous-advance.patch 465 SHA256 9a00d22faf127d5047afee242b1475b08edcc15300f100264f1249836d3b4c42 SHA512 af91b98c04f844504c46b01c76a360d00bfe3993d6acdbc9800f2466833da42ad5e76a0ca3e197cb63aca10e4cb1eae73996b67691587eae2f2ee3975a33410e WHIRLPOOL c5fce0bb1661a52591f409a8fc3f73f7a56d9384d2b09b64a687091fcffe863650b2f991cdcc63ff9b0198037d2c80e044fa0373ad9401c6f23205b9d20df48a +AUX pokerth-1.1.1-boost-noexcept.patch 2801 SHA256 7ae2000480942b5da846ab0ae53a379493973f217a53ddbf13a0b91f1bb3a71e SHA512 635550ab7c5b48f9273002908c6966d6dc4a54e3c20e8b9bac4a10b4aa37bb44ba23b25b325268a300368debe93fd06e90b7558c2463ea293d4fed7568336c7f WHIRLPOOL f0c2e3b354e224e4c121de27d5b6e10e00ce0f08a3e63ebe829f01fd1d48ffa9487c33aec7c7e59db6434f854b0623fc58f912b5a7eca9761778dff5d2696139 +AUX pokerth-1.1.1-qmake-gcc-6.patch 2629 SHA256 db464f2ff3d510271f7a2b5e704aa229ed54412ba761902f8b81286354611022 SHA512 6440888615879b43ef1c04c7efaec6d267e8af9badaa563b724c8311ec1b5d5c55b6aa6a72cb4932f5bff0a47b50875dc8b237b13c3619e5c290bf427e0f4db0 WHIRLPOOL b813dea12565eec6a483c53725442f4ebb44682675a564ce24de42ea4ab20d252aa2871e323617b986f910562e694c054f012b88624a9f0a2ba050335f2004ce +AUX pokerth-1.1.1-qt5.patch 551 SHA256 37a6a841b079acab7db8a710ceedc5c971294113d25b3edd765631bde2d73cdf SHA512 f64076b0dcbbc4359fbdca0b35448e6a8282b7c4bf217663cdb9a4326d54f790178af62aa7b625f46231561c7d185be390fff4b2b1c6c9853db0458688f9da10 WHIRLPOOL 6bb7f6d9ce9b6caf31aab7c8b1983d3b662340262268421d675b28c1893f58e09cfc1b2b261fa42ca7a41432ac5ad5dd385d9f856facc1fab469acae1626929d +DIST PokerTH-1.1.1-src.tar.bz2 19326922 SHA256 afe6d3887d2fdf92fd6d89ee2951d3b14a0d43b70dba858d32d41214a5357388 SHA512 bd822d15747d94b67657ea2fd0b9c8c1bdad0031a6eae30380217387a702e5f648d6f612b1bff0355c3c301ecaf47ca9d635a526e575f1bc1c5f88e38a7f73c1 WHIRLPOOL 64fe03bbd2a4511c4d8c276cb0ee4a8f5913fe959a389578436098bd0546813d2bc47cb3ae1bcac4124a7bb843894bfce91c5e526cc66eb6912f60f98312f841 +EBUILD pokerth-1.1.1-r2.ebuild 1577 SHA256 5d8ebc6c6a7310d21a4cb0dcd59c6d834418da213c77e5ffb7a9459f7b3dae3d SHA512 391bb4df57151568fc25ad61061087aa3b72a839ed937ffb082594c7ef106d71d505bef51d9a7143062b54a70ed99287cf7328df24dc3dfeb69d21eedd9e09d2 WHIRLPOOL d9466e903e14ea71cc5fea04a5c4b7de12c6db1747dd31011120086081a1c8a242bb15f62a1f01946c817d94b26b1a78524fc3020755c1f210f987fe6ee07c38 +MISC ChangeLog 3890 SHA256 11c0b7820780f8c27d370a31023f2d36b3501ec217327f646c07c89f51fe35b1 SHA512 d7f00028b55a48f5cf45ed56df0bb46311498c5d53273d941614fcffc9cfae0e5d0939b5b59514a7f7abce26394742aafd6c077618ae71927d392dcb2383936b WHIRLPOOL 2b122a1644602c11595e00326c964943572453df7fdf00b9c4f3704a5aacc2991441c80d4a7d1f50e60bf60227654ff2272fd294500d1102a4490547198b23e3 +MISC ChangeLog-2015 8503 SHA256 87d961e70b42730da855221bf3a93aafcdfb516b5186c4d642a314bb039abb1e SHA512 a13781c2c17e7074c7f9c64ff80e279c87625f04f67daa228261169f2cb21809af5c6994f27f78e687d96d184bf04ca4362c2709d6b8afbadfd7bf0677a1a034 WHIRLPOOL dd81781eafc367e4eb55821adf16f3548d7b59f914fa75f0a1ff270141d546bcee5f512dfcbfc1600ce583e11d05538abd4552e71c6721e7b18a57a28e74c4ea +MISC metadata.xml 340 SHA256 9faa40f0b5e9b17f9ab236e102826f081270a5588a14e0623f25fdbd77e426ed SHA512 640db7890ea68059399c50c0ab24c337e0a4cd1c977c2b87198ee9af25e39547fadd3fd83f081da6afa62ae9a9ae2fa450b45a83519d66b036e357ecc3e9b705 WHIRLPOOL b834974e50d3156a85e56af221bf8371c7865bdc92015fa5ea5bbecc5a66b00c2ce49812cb08accf55b1a3f69e28686b79040f7edd0b2ba5c103edad6f461430 diff --git a/games-board/pokerth/files/pokerth-1.1.1-boost-1.60.patch b/games-board/pokerth/files/pokerth-1.1.1-boost-1.60.patch new file mode 100644 index 000000000000..daaeca013b32 --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-boost-1.60.patch @@ -0,0 +1,150 @@ +From 69f820bb3d7c4dc8c838f115cb4c7ee5fd188721 Mon Sep 17 00:00:00 2001 +From: Jonathan Wakely <github@kayari.org> +Date: Thu, 26 Nov 2015 16:27:52 +0000 +Subject: [PATCH] Qualify std::ifstream and std::ofstream + +Starting with Boost 1.60.0 <boost/filesystem.hpp> includes +<boost/filesystem/fstream.hpp>, which declares ifstream and ofstream +types that make the unqualified names ifstream and ofstream ambiguous. +The names must be qualified to refer to the std versions. +--- + src/core/common/avatarmanager.cpp | 4 ++-- + src/core/common/loghelper_server.cpp | 6 +++--- + src/net/common/clientstate.cpp | 4 ++-- + src/net/common/clientthread.cpp | 4 ++-- + src/net/common/downloaderthread.cpp | 2 +- + src/pokerth_server.cpp | 2 +- + src/zlib_compress.cpp | 4 ++-- + 7 files changed, 13 insertions(+), 13 deletions(-) + +diff --git a/src/core/common/avatarmanager.cpp b/src/core/common/avatarmanager.cpp +index a8a52e4..0246b72 100644 +--- a/src/core/common/avatarmanager.cpp ++++ b/src/core/common/avatarmanager.cpp +@@ -61,7 +61,7 @@ using namespace std; + using namespace boost::filesystem; + + struct AvatarFileState { +- ifstream inputStream; ++ std::ifstream inputStream; + }; + + AvatarManager::AvatarManager(bool useExternalServer, const std::string &externalServerAddress, +@@ -371,7 +371,7 @@ AvatarManager::StoreAvatarInCache(const MD5Buf &md5buf, AvatarFileType avatarFil + path tmpPath(cacheDir); + tmpPath /= (md5buf.ToString() + ext); + string fileName(tmpPath.file_string()); +- ofstream o(fileName.c_str(), ios_base::out | ios_base::binary | ios_base::trunc); ++ std::ofstream o(fileName.c_str(), ios_base::out | ios_base::binary | ios_base::trunc); + if (!o.fail()) { + o.write((const char *)data, size); + o.close(); +diff --git a/src/core/common/loghelper_server.cpp b/src/core/common/loghelper_server.cpp +index f79e4ca..a0d0350 100644 +--- a/src/core/common/loghelper_server.cpp ++++ b/src/core/common/loghelper_server.cpp +@@ -67,7 +67,7 @@ void + internal_log_err(const string &msg) + { + if (!g_logFile.empty()) { +- ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); ++ std::ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); + if (!o.fail()) { + o << second_clock::local_time() << " ERR: " << msg; + o.flush(); +@@ -80,7 +80,7 @@ internal_log_msg(const std::string &msg) + { + if (g_logLevel) { + if (!g_logFile.empty()) { +- ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); ++ std::ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); + if (!o.fail()) + o << second_clock::local_time() << " MSG: " << msg; + } +@@ -92,7 +92,7 @@ internal_log_level(const std::string &msg, int logLevel) + { + if (g_logLevel >= logLevel) { + if (!g_logFile.empty()) { +- ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); ++ std::ofstream o(g_logFile.c_str(), ios_base::out | ios_base::app); + if (!o.fail()) + o << second_clock::local_time() << " OUT: " << msg; + } +diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp +index 143773b..080da2d 100644 +--- a/src/net/common/clientstate.cpp ++++ b/src/net/common/clientstate.cpp +@@ -308,8 +308,8 @@ ClientStateReadingServerList::Enter(boost::shared_ptr<ClientThread> client) + + // Unzip the file using zlib. + try { +- ifstream inFile(zippedServerListPath.directory_string().c_str(), ios_base::in | ios_base::binary); +- ofstream outFile(xmlServerListPath.directory_string().c_str(), ios_base::out | ios_base::trunc); ++ std::ifstream inFile(zippedServerListPath.directory_string().c_str(), ios_base::in | ios_base::binary); ++ std::ofstream outFile(xmlServerListPath.directory_string().c_str(), ios_base::out | ios_base::trunc); + boost::iostreams::filtering_streambuf<boost::iostreams::input> in; + in.push(boost::iostreams::zlib_decompressor()); + in.push(inFile); +diff --git a/src/net/common/clientthread.cpp b/src/net/common/clientthread.cpp +index d60a535..1f3a619 100644 +--- a/src/net/common/clientthread.cpp ++++ b/src/net/common/clientthread.cpp +@@ -1695,7 +1695,7 @@ void + ClientThread::ReadSessionGuidFromFile() + { + string guidFileName(GetContext().GetCacheDir() + TEMP_GUID_FILENAME); +- ifstream guidStream(guidFileName.c_str(), ios::in | ios::binary); ++ std::ifstream guidStream(guidFileName.c_str(), ios::in | ios::binary); + if (guidStream.good()) { + std::vector<char> tmpGuid(CLIENT_GUID_SIZE); + guidStream.read(&tmpGuid[0], CLIENT_GUID_SIZE); +@@ -1707,7 +1707,7 @@ void + ClientThread::WriteSessionGuidToFile() const + { + string guidFileName(GetContext().GetCacheDir() + TEMP_GUID_FILENAME); +- ofstream guidStream(guidFileName.c_str(), ios::out | ios::trunc | ios::binary); ++ std::ofstream guidStream(guidFileName.c_str(), ios::out | ios::trunc | ios::binary); + if (guidStream.good()) { + guidStream.write(GetContext().GetSessionGuid().c_str(), GetContext().GetSessionGuid().size()); + } +diff --git a/src/net/common/downloaderthread.cpp b/src/net/common/downloaderthread.cpp +index e58e3f8..56a9526 100644 +--- a/src/net/common/downloaderthread.cpp ++++ b/src/net/common/downloaderthread.cpp +@@ -96,7 +96,7 @@ DownloaderThread::Main() + // Previous download was finished. + if (m_curDownloadData) { + path filepath(m_curDownloadData->filename); +- ifstream instream(filepath.file_string().c_str(), ios_base::in | ios_base::binary); ++ std::ifstream instream(filepath.file_string().c_str(), ios_base::in | ios_base::binary); + // Find out file size. + // Not fully portable, but works on win/linux/mac. + instream.seekg(0, ios_base::beg); +diff --git a/src/pokerth_server.cpp b/src/pokerth_server.cpp +index 3b93d46..450a47e 100644 +--- a/src/pokerth_server.cpp ++++ b/src/pokerth_server.cpp +@@ -161,7 +161,7 @@ main(int argc, char *argv[]) + pidFile = tmpPidPath.directory_string(); + } + { +- ofstream pidStream(pidFile.c_str(), ios_base::out | ios_base::trunc); ++ std::ofstream pidStream(pidFile.c_str(), ios_base::out | ios_base::trunc); + if (!pidStream.fail()) + pidStream << getpid(); + else +diff --git a/src/zlib_compress.cpp b/src/zlib_compress.cpp +index e3fd72d..4b04817 100644 +--- a/src/zlib_compress.cpp ++++ b/src/zlib_compress.cpp +@@ -59,8 +59,8 @@ main(int argc, char *argv[]) + return 2; + } + try { +- ifstream inFile(inputFilePath.directory_string().c_str(), ios_base::in); +- ofstream outFile(outputFilePath.directory_string().c_str(), ios_base::out | ios_base::binary); ++ std::ifstream inFile(inputFilePath.directory_string().c_str(), ios_base::in); ++ std::ofstream outFile(outputFilePath.directory_string().c_str(), ios_base::out | ios_base::binary); + boost::iostreams::filtering_streambuf<boost::iostreams::output> out; + out.push(boost::iostreams::zlib_compressor()); + out.push(outFile); diff --git a/games-board/pokerth/files/pokerth-1.1.1-boost-1.65-ambiguous-advance.patch b/games-board/pokerth/files/pokerth-1.1.1-boost-1.65-ambiguous-advance.patch new file mode 100644 index 000000000000..2e8c9c50c5eb --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-boost-1.65-ambiguous-advance.patch @@ -0,0 +1,14 @@ +Boost 1.65 made 'advance()' ambiguous. +Bug: https://bugs.gentoo.org/show_bug.cgi?id=629966 + +--- a/src/gui/qt/gametable/gametableimpl.cpp ++++ b/src/gui/qt/gametable/gametableimpl.cpp +@@ -3859,7 +3859,7 @@ + int playerCount = static_cast<int>(seatList->size()); + if (id < playerCount) { + PlayerListIterator pos = seatList->begin(); +- advance(pos, id); ++ std::advance(pos, id); + myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID()); + } + } diff --git a/games-board/pokerth/files/pokerth-1.1.1-boost-noexcept.patch b/games-board/pokerth/files/pokerth-1.1.1-boost-noexcept.patch new file mode 100644 index 000000000000..ab112e831a0c --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-boost-noexcept.patch @@ -0,0 +1,80 @@ +Keep dynamic exception specifications in sync with boost. +See also: https://bugs.gentoo.org/show_bug.cgi?id=603354 + +--- a/src/third_party/websocketpp/websocketpp/error.hpp ++++ b/src/third_party/websocketpp/websocketpp/error.hpp +@@ -122,7 +122,7 @@ + public: + category() {} + +- char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ char const * name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp"; + } + +--- a/src/third_party/websocketpp/websocketpp/extensions/extension.hpp ++++ b/src/third_party/websocketpp/websocketpp/extensions/extension.hpp +@@ -62,7 +62,7 @@ + public: + category() {} + +- const char *name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ const char *name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.extension"; + } + +--- a/src/third_party/websocketpp/websocketpp/processors/base.hpp ++++ b/src/third_party/websocketpp/websocketpp/processors/base.hpp +@@ -159,7 +159,7 @@ + public: + processor_category() {} + +- char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ char const * name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.processor"; + } + +--- a/src/third_party/websocketpp/websocketpp/transport/asio/base.hpp ++++ b/src/third_party/websocketpp/websocketpp/transport/asio/base.hpp +@@ -202,7 +202,7 @@ + /// Asio transport error category + class category : public lib::error_category { + public: +- char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ char const * name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.transport.asio"; + } + +--- a/src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp ++++ b/src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp +@@ -102,7 +102,7 @@ + /// Error category related to asio transport socket policies + class socket_category : public lib::error_category { + public: +- const char *name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ const char *name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.transport.asio.socket"; + } + +--- a/src/third_party/websocketpp/websocketpp/transport/base/connection.hpp ++++ b/src/third_party/websocketpp/websocketpp/transport/base/connection.hpp +@@ -179,7 +179,7 @@ + public: + category() {} + +- char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ char const * name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.transport"; + } + +--- a/src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp ++++ b/src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp +@@ -64,7 +64,7 @@ + public: + category() {} + +- char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { ++ char const * name() const BOOST_SYSTEM_NOEXCEPT { + return "websocketpp.transport.iostream"; + } + diff --git a/games-board/pokerth/files/pokerth-1.1.1-qmake-gcc-6.patch b/games-board/pokerth/files/pokerth-1.1.1-qmake-gcc-6.patch new file mode 100644 index 000000000000..aebf2b0ab946 --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-qmake-gcc-6.patch @@ -0,0 +1,86 @@ +From: Markus Koschany <apo@debian.org> +Date: Tue, 23 Aug 2016 17:50:52 +0200 +Subject: qmake gcc-6 + +--- + chatcleaner.pro | 1 - + pokerth_db.pro | 1 - + pokerth_game.pro | 1 - + pokerth_lib.pro | 2 +- + pokerth_protocol.pro | 1 - + pokerth_server.pro | 1 - + 6 files changed, 1 insertion(+), 6 deletions(-) + +diff --git a/chatcleaner.pro b/chatcleaner.pro +index 6d63b4a..56070d8 100644 +--- a/chatcleaner.pro ++++ b/chatcleaner.pro +@@ -49,7 +49,6 @@ win32 { + !win32{ + ##### My release static build options + #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections +- INCLUDEPATH += $${PREFIX}/include + } + mac { + # make it x86_64 only +diff --git a/pokerth_db.pro b/pokerth_db.pro +index 7c2d142..c524ee3 100644 +--- a/pokerth_db.pro ++++ b/pokerth_db.pro +@@ -49,7 +49,6 @@ win32{ + !win32{
+ ##### My release static build options
+ #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
+- INCLUDEPATH += $${PREFIX}/include
+ }
+
+ mac{
+diff --git a/pokerth_game.pro b/pokerth_game.pro +index e3ddb03..e0e8660 100644 +--- a/pokerth_game.pro ++++ b/pokerth_game.pro +@@ -404,7 +404,6 @@ unix:!mac { + # #### My release static build options + # QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections + # QMAKE_LFLAGS += -Wl,--gc-sections +- INCLUDEPATH += $${PREFIX}/include + QMAKE_LIBDIR += lib + !android{ + LIBPATH += $${PREFIX}/lib /opt/gsasl/lib +diff --git a/pokerth_lib.pro b/pokerth_lib.pro +index 6db489d..498d06e 100644 +--- a/pokerth_lib.pro ++++ b/pokerth_lib.pro +@@ -243,7 +243,7 @@ win32{ + !win32{ + ##### My release static build options + #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections +- INCLUDEPATH += $${PREFIX}/include /opt/gsasl/include ++ INCLUDEPATH += /opt/gsasl/include + } + + mac{ +diff --git a/pokerth_protocol.pro b/pokerth_protocol.pro +index 7a331df..2ead0ec 100644 +--- a/pokerth_protocol.pro ++++ b/pokerth_protocol.pro +@@ -33,7 +33,6 @@ win32 { + DEFINES += _WIN32_WINNT=0x0501 + } + unix : !mac { +- INCLUDEPATH += $${PREFIX}/include + system(protoc pokerth.proto --cpp_out=src/third_party/protobuf) + system(protoc chatcleaner.proto --cpp_out=src/third_party/protobuf) + system(protoc pokerth.proto --java_out=tests/src) +diff --git a/pokerth_server.pro b/pokerth_server.pro +index 706475f..43b30f3 100644 +--- a/pokerth_server.pro ++++ b/pokerth_server.pro +@@ -174,7 +174,6 @@ unix : !mac { + #QMAKE_LFLAGS += -Wl,--gc-sections + + LIBPATH += lib $${PREFIX}/lib /opt/gsasl/lib +- INCLUDEPATH += $${PREFIX}/include + LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 $$system(qmake -query QT_INSTALL_LIBS) + BOOST_FS = boost_filesystem boost_filesystem-mt + BOOST_THREAD = boost_thread boost_thread-mt diff --git a/games-board/pokerth/files/pokerth-1.1.1-qt5.patch b/games-board/pokerth/files/pokerth-1.1.1-qt5.patch new file mode 100644 index 000000000000..1d3dd63922fb --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-qt5.patch @@ -0,0 +1,19 @@ +From 731f5f05f54065a67fa7c9f9bc8fe992390cb979 Mon Sep 17 00:00:00 2001 +From: Felix Hammer <f.hammer@web.de> +Date: Fri, 7 Aug 2015 00:57:51 +0200 +Subject: [PATCH] Qt 5.5.0 patch for qtsingleapplication + +--- + src/third_party/qtsingleapplication/qtlocalpeer.cpp | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/third_party/qtsingleapplication/qtlocalpeer.cpp ++++ b/src/third_party/qtsingleapplication/qtlocalpeer.cpp +@@ -31,6 +31,7 @@ + + #include <QCoreApplication> + #include <QTime> ++#include <QDataStream> + + #if defined(Q_OS_WIN) + #include <QLibrary> diff --git a/games-board/pokerth/metadata.xml b/games-board/pokerth/metadata.xml new file mode 100644 index 000000000000..add52ba75f21 --- /dev/null +++ b/games-board/pokerth/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">pokerth</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pokerth/pokerth-1.1.1-r2.ebuild b/games-board/pokerth/pokerth-1.1.1-r2.ebuild new file mode 100644 index 000000000000..be20d0fd206f --- /dev/null +++ b/games-board/pokerth/pokerth-1.1.1-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils flag-o-matic qmake-utils + +MY_P="PokerTH-${PV}-src" +DESCRIPTION="Texas Hold'em poker game" +HOMEPAGE="http://www.pokerth.net/" +SRC_URI="mirror://sourceforge/pokerth/${MY_P}.tar.bz2" + +LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dedicated" + +RDEPEND="dev-db/sqlite:3 + dev-libs/boost:=[threads(+)] + dev-libs/libgcrypt:0 + dev-libs/protobuf + dev-libs/tinyxml[stl] + dev-qt/qtcore:5 + dev-qt/qtnetwork:5 + >=net-libs/libircclient-1.6-r2 + >=net-misc/curl-7.16 + virtual/gsasl + !dedicated? ( + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + media-libs/libsdl:0 + media-libs/sdl-mixer[mod,vorbis] + )" +DEPEND="${RDEPEND} + !dedicated? ( dev-qt/qtsql:5 ) + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.1-qt5.patch + "${FILESDIR}"/${PN}-1.1.1-boost-1.60.patch + "${FILESDIR}"/${PN}-1.1.1-qmake-gcc-6.patch + "${FILESDIR}"/${PN}-1.1.1-boost-noexcept.patch + "${FILESDIR}"/${PN}-1.1.1-boost-1.65-ambiguous-advance.patch +) + +src_prepare() { + default + + if use dedicated; then + sed -i -e 's/pokerth_game.pro//' pokerth.pro || die + fi + + sed -i -e '/no_dead_strip_inits_and_terms/d' *pro || die +} + +src_configure() { + eqmake5 pokerth.pro +} + +src_install() { + dobin bin/pokerth_server + if ! use dedicated; then + dobin ${PN} + insinto /usr/share/${PN} + doins -r data + domenu ${PN}.desktop + doicon ${PN}.png + fi + + einstalldocs + dodoc docs/{gui_styling,server_setup}_howto.txt + + doman docs/pokerth.1 +} |