summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Berntsen <alexanderberntsen@linux.com>2012-08-02 21:16:50 +0200
committerAlexander Berntsen <alexanderberntsen@linux.com>2012-08-02 21:16:50 +0200
commitdcfe65fb1af392f747bea9372523ddecbaaead8a (patch)
treefc332ec5e51d0f1b76726022d85973c11ab8d88b /games-board
parentgames-arcade/retrobattle: New ebuild games-arcade/retrobattle for bug 424273 (diff)
downloadsunrise-dcfe65fb1af392f747bea9372523ddecbaaead8a.tar.gz
sunrise-dcfe65fb1af392f747bea9372523ddecbaaead8a.tar.bz2
sunrise-dcfe65fb1af392f747bea9372523ddecbaaead8a.zip
games-board/cockatrice: New ebuild games-board/cockatrice for bug #424273
Diffstat (limited to 'games-board')
-rw-r--r--games-board/cockatrice/ChangeLog11
-rw-r--r--games-board/cockatrice/Manifest5
-rw-r--r--games-board/cockatrice/cockatrice-20120624.ebuild45
-rw-r--r--games-board/cockatrice/files/cockatrice-20120630-servatrice-cmakelists.patch13
-rw-r--r--games-board/cockatrice/metadata.xml10
5 files changed, 84 insertions, 0 deletions
diff --git a/games-board/cockatrice/ChangeLog b/games-board/cockatrice/ChangeLog
new file mode 100644
index 000000000..f10950715
--- /dev/null
+++ b/games-board/cockatrice/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-board/cockatrice
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*cockatrice-20120624 (02 Aug 2012)
+
+ 02 Aug 2012; Alexander Berntsen (alexander__b) <alexanderberntsen@linux.com>
+ +cockatrice-20120624.ebuild,
+ +files/cockatrice-20120630-servatrice-cmakelists.patch, +metadata.xml:
+ New ebuild games-board/cockatrice for bug #424273
+
diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
new file mode 100644
index 000000000..5f85f643a
--- /dev/null
+++ b/games-board/cockatrice/Manifest
@@ -0,0 +1,5 @@
+AUX cockatrice-20120630-servatrice-cmakelists.patch 614 SHA256 94eb118da8851647ab578eae9de869c25d06c2218fda5dca9f03d0bbb0cf8f47 SHA512 6bd6d1925cd2c10def635670d15442b1aff889acaa37c82fe108b56ca710e8054af3b3e345fac0b8d5bfb99efe9919ff84a4d5899b0400368ea9c436109d471e WHIRLPOOL b85d98973ca27d2dcfcc866631dce3f639a9a4bd4f73fa1f814de75af1194b8539df30fd00e77737286a84a41f3bff6d5c3b350c0312e591ad3d2962d7fa8f90
+DIST cockatrice_source_20120624.tar.gz 3740785 SHA256 7be94ba7625e4099f182740f5a96638d84a9ea4d9a04c2ac29fab7caae8ab43e SHA512 5e2d10b9409097e7245e81c710d2c17bf23a2f692c0ec378905ec144d881fa409f9c8bc9e49aac7a7a2942ee04639dc3d43ba39dbab5b6248bc45bf52736b38c WHIRLPOOL dfe8d6adef0ef44a4aa6f1c38a1f63179967a81a96c712093a7e2a8a7f9ec03e58ebe1b13653e352bf113dd092f97bfe8a1d845735d0f6bcb49471005f9e3794
+EBUILD cockatrice-20120624.ebuild 983 SHA256 b467bb05b79af776f55a17e4217dcbc30ba8f2083599160955f86461be224bfb SHA512 bf524c5e76e42c4c9dedab2ca256c11e01c08fc90b0d8a18f78dc84e003716b944b69424711869d20b3af31a5c7a277d2b8dff7f94e6df5f0061818cb69d4fb1 WHIRLPOOL 1607fe377f6717e4920ea0982132d65402b96dc51564e3ad13f95f99d0df81d29643382f3dbc3a15d2903c6f0fa9e2a7ac49b3f659158d643f44ecc95ba633b0
+MISC ChangeLog 395 SHA256 e4856b4fad3495780e9029b55c2c43528ee6d458ca4ddaa6facf8c1f70ac722d SHA512 cf6aa208f0db7286a15002a49821fc7e7e5d5f7b278163f2a28478f78b1c893bce1b2cb159da2976fe45138b165d1cc1faaadce291c6be9066c0d90ed03a1744 WHIRLPOOL 676fc9a3c98da597349a36bbf90185120109c3c719c2a7ff105479e85aff95beecb6e2803c8406b9f0605c8948259111f92c41489b9f0b4d58367dca3db0f9f1
+MISC metadata.xml 279 SHA256 adfe23ddafab0ab12da5d14157cd03e98037e250f037ed5591f1168b8ecc0f02 SHA512 153e7d1c9adf977bc3f7b9359ed1b97e9725668774098d0d9327a56400185aeb61ae5a9603212fbf42a0e6030b30c028ac980d73de6c7e2483b4e4d0b8b3052b WHIRLPOOL 12844cc3a36da1195ce8dc37666fb4eb8aec7203a1d6b83dffbf8794d79bfdb30d15203f73dce1ce083e19d5eafe36c767a64a5b0e842d34828cf1a89459a5f5
diff --git a/games-board/cockatrice/cockatrice-20120624.ebuild b/games-board/cockatrice/cockatrice-20120624.ebuild
new file mode 100644
index 000000000..6006817ad
--- /dev/null
+++ b/games-board/cockatrice/cockatrice-20120624.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit games cmake-utils
+
+DESCRIPTION="Cockatrice is an open-source multiplatform software for playing card games over a network"
+HOMEPAGE="http://cockatrice.de/"
+SRC_URI="${HOMEPAGE}files/${PN}_source_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+client"
+
+RDEPEND="
+ dev-libs/libgcrypt
+ dev-libs/protobuf
+ x11-libs/qt-core:4
+ x11-libs/qt-sql:4
+ client? (
+ x11-libs/qt-multimedia:4
+ x11-libs/qt-svg:4
+ x11-libs/qt-gui:4
+ )
+ "
+
+S="${WORKDIR}/${PN}_${PV}"
+
+src_prepare() {
+ # Patch CMakeLists.txt to install servatrice.
+ epatch "${FILESDIR}/${PN}-20120630-servatrice-cmakelists.patch"
+}
+
+src_configure() {
+ # Always compile server support.
+ local mycmakeargs="-DWITH_SERVER=1"
+ if ! use client; then
+ # Compile client UI, if client use-flag is set.
+ mycmakeargs="${mycmakeargs} -DWITHOUT_CLIENT=1"
+ fi
+ cmake-utils_src_configure
+}
diff --git a/games-board/cockatrice/files/cockatrice-20120630-servatrice-cmakelists.patch b/games-board/cockatrice/files/cockatrice-20120630-servatrice-cmakelists.patch
new file mode 100644
index 000000000..ef62362fd
--- /dev/null
+++ b/games-board/cockatrice/files/cockatrice-20120630-servatrice-cmakelists.patch
@@ -0,0 +1,13 @@
+*** servatrice/CMakeLists.txt 2012-06-24 21:48:27.000000000 +0200
+--- servatrice/CMakeLists.txt 2012-06-30 03:09:45.000000000 +0200
+***************
+*** 45,50 ****
+--- 45,52 ----
+ ADD_EXECUTABLE(servatrice ${servatrice_SOURCES} ${servatrice_HEADERS_MOC})
+ TARGET_LINK_LIBRARIES(servatrice cockatrice_common ${QT_LIBRARIES} ${LIBGCRYPT_LIBRARY})
+
++ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/servatrice DESTINATION bin)
++
+ #add_custom_target(versionheader ALL DEPENDS version_header)
+ add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version_string.h ${CMAKE_CURRENT_BINARY_DIR}/version_string.cpp
diff --git a/games-board/cockatrice/metadata.xml b/games-board/cockatrice/metadata.xml
new file mode 100644
index 000000000..a7812767a
--- /dev/null
+++ b/games-board/cockatrice/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='client'>Build with client</flag>
+ </use>
+</pkgmetadata>