summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-08-04 15:29:51 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-08-04 15:29:51 +0000
commitec0fbb105762d3adf7369963878506f43634ad42 (patch)
treea298e3cbeb17e4c5119c93d8635375c538a1f7f7 /games-board/cockatrice
parentVersion bump (diff)
downloadhistorical-ec0fbb105762d3adf7369963878506f43634ad42.tar.gz
historical-ec0fbb105762d3adf7369963878506f43634ad42.tar.bz2
historical-ec0fbb105762d3adf7369963878506f43634ad42.zip
initial commit based on ebuild of Alexander Berntsen
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'games-board/cockatrice')
-rw-r--r--games-board/cockatrice/ChangeLog11
-rw-r--r--games-board/cockatrice/Manifest20
-rw-r--r--games-board/cockatrice/cockatrice-20120702.ebuild68
-rw-r--r--games-board/cockatrice/files/cockatrice-20120702-build.patch75
-rw-r--r--games-board/cockatrice/files/cockatrice-20120702-underlinking.patch29
-rw-r--r--games-board/cockatrice/metadata.xml29
6 files changed, 232 insertions, 0 deletions
diff --git a/games-board/cockatrice/ChangeLog b/games-board/cockatrice/ChangeLog
new file mode 100644
index 000000000000..a0c7f017fabb
--- /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: /var/cvsroot/gentoo-x86/games-board/cockatrice/ChangeLog,v 1.1 2012/08/04 15:29:50 hasufell Exp $
+
+*cockatrice-20120702 (04 Aug 2012)
+
+ 04 Aug 2012; Julian Ospald <hasufell@gentoo.org> +cockatrice-20120702.ebuild,
+ +files/cockatrice-20120702-build.patch,
+ +files/cockatrice-20120702-underlinking.patch, +metadata.xml:
+ initial commit based on ebuild of Alexander Berntsen
+
diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
new file mode 100644
index 000000000000..5eb6fae48dc4
--- /dev/null
+++ b/games-board/cockatrice/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX cockatrice-20120702-build.patch 2972 SHA256 2e2cbfeea3d2466428b9fa164510b8919c44744fcdd7c3d15cdb0b066bfe1a80 SHA512 b1df28c32d1a29379b96d8ae8aa7a3cd33b764ba58d7122c14e6e2890e45ca280ef9b87dc728d1625d5366be1c6d86b212c09669407954650a3a3ba1bb96f1d4 WHIRLPOOL 25f222882862b27680396c6f65260408c974aa938f950ab1e3f73f4fee4610c986376238e4ee8ab0704cbe99f7c408d1c4c651f75c6f0d94ca05e09e872726b1
+AUX cockatrice-20120702-underlinking.patch 1294 SHA256 fb17a2daac471517fecc997141849a9b9ce551adc790e510f024aaa5d9e368bf SHA512 8d20d0612b4682444cbef4d803e0fc4e0c6468138e11256be0f139390939d4774f74ab906ef49695c5f1f36f2ba0fc51a8828d471a6fcc3046c7de84e2574942 WHIRLPOOL f7fcc1735818f520e9ecf286dd49a3847076e37b43c059121f1bcdc0bb0a4becb8c0fb9524a6d46ffa6044959f94eaa1c8be004117c0777266b3f75ba0603062
+DIST cockatrice_source_20120702.tar.gz 3790304 SHA256 a418124d3df255f2af70a20ff6b13f85361467abe4ea4216602bd3647cfc490e SHA512 119acd394dfe97de72b0be8d1ea8c6178f9d0150dcb50d1aba074c28c8d0f52f2be5758ac3943c49d11f655f02a70fc5f5a7e207b8a2631f73f7178ff17b5c35 WHIRLPOOL 1e5112519ddd0f4107778c97d4cf415959117d7e5854ad9760d50621a77a53d992678470772358c880e89ba35376cbf6abab4687969810c117d2851eae4ec70a
+EBUILD cockatrice-20120702.ebuild 1497 SHA256 f0b8846d3010c1f4c44719d9c1e5fe5b1436c08fb233cd17f6ff7cb0163f3265 SHA512 b6199a68a850f57530b056131729a9eebc87f5bc1b74a2ef59a6c8e67d2bee7dd742e44e81a67fd9c41ce39f23653b7f9ea133118989cf8916d7db3c3f8afc9c WHIRLPOOL bdeb2f456c0f50390284b5d1090744051cc7096459b9f2cd718bdb678855cd9b8adca9e79fefede91ce76fb5fa2a57a23cdecef6b25cb6b0eb1a10f78b603b48
+MISC ChangeLog 497 SHA256 99fd4f5a127ff9fb017fc1fd0dfe70c088771b971fb882626bb82aed6dbbd1b1 SHA512 6e23e8a2cc6560170121de24e8a1b58eb88094d14149809e70f13b5c1f7c6ef2b1769f513402802b11e59c685780f0e9775c099d295084164771da32627cdc50 WHIRLPOOL c3decb82dac202d1b5cf4dd203d51623e515065cca1bd86c3c220e5dc153eb35d2467b7b6fcb740f08f16bc48751ce15a4b88d8bef5c15da322f0942563f0a10
+MISC metadata.xml 1084 SHA256 e53bce125d74296c31dded3b04c52c16160af7e086f94292d71e5f569b07ea42 SHA512 ba8d459614a957cd5dd238d0253e697c997dc0e3190f3521fa69d09dc5ab8e5d6127549b0bb29c861a2bb680afd83e226ed90561d84752f361bee6d747b92ac5 WHIRLPOOL 843b8ea488c1b0041082393a442d2c47bc06cefe2de213a153264a77363dcce4422b1c59d82350ba2a437dcc4df15fdd142293490d8fb363b787b441e098e213
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJQHT7oAAoJEFpvPKfnPDWz7P8H/AzZxegGrdvr3YNd5b1kTJWH
+L3bNzzV1FuIC6qNsPMMHdFr/JyJqY6ss1TZNbBmxssJNCy9l8tG7LkT/3tTyXxVP
+ZUI8Misrf14+vvwTkwzZ6KvPfEO0L3d4jFbGdre855F0Gbc2pgJZ/xIil7ZdUHMm
+5NcWvIdx3diheFLMhWKZziDcS0aCYhPl2+KtsI9I0GztWaRyFUSPtjcXOhnjBRAQ
+FYCTudeW695xtoZtA9sbnFcPZTAOE48fKbNpdY3iWQUnymAfNyYgH3PNuayAQGw6
+uzeP4rNZHeFOiiQTJzH3n5zofV/aYVFT4gNDnGCCY3f053Y7yOKz3xP4hMdOIF8=
+=fwdZ
+-----END PGP SIGNATURE-----
diff --git a/games-board/cockatrice/cockatrice-20120702.ebuild b/games-board/cockatrice/cockatrice-20120702.ebuild
new file mode 100644
index 000000000000..a3a52a252976
--- /dev/null
+++ b/games-board/cockatrice/cockatrice-20120702.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/cockatrice/cockatrice-20120702.ebuild,v 1.1 2012/08/04 15:29:50 hasufell Exp $
+
+EAPI=3
+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
+ dev-libs/protobuf
+ x11-libs/qt-core:4
+ x11-libs/qt-sql:4
+ !dedicated? (
+ x11-libs/qt-multimedia:4
+ x11-libs/qt-svg:4
+ x11-libs/qt-gui:4
+ )"
+
+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}"
+ -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
+ 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
new file mode 100644
index 000000000000..f374bac5a618
--- /dev/null
+++ b/games-board/cockatrice/files/cockatrice-20120702-build.patch
@@ -0,0 +1,75 @@
+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
+
+--- 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
+@@ -201,6 +201,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,9 +223,9 @@
+
+ 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 ${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 share/cockatrice/translations)
+ ENDIF(NOT WIN32 AND NOT APPLE)
+
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu Aug 2 22:50:59 UTC 2012
+Subject:
+
+--- 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
new file mode 100644
index 000000000000..2117751c1cf5
--- /dev/null
+++ b/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch
@@ -0,0 +1,29 @@
+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(
diff --git a/games-board/cockatrice/metadata.xml b/games-board/cockatrice/metadata.xml
new file mode 100644
index 000000000000..403603bc9ba1
--- /dev/null
+++ b/games-board/cockatrice/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>brukie@gmx.net</email>
+ <name>Max-Wilhelm Bruker</name>
+ </maintainer>
+ <changelog>https://github.com/mbruker/Cockatrice/commits/master</changelog>
+ <doc lang="en">http://cockatrice.de/dokuwiki/doku.php</doc>
+ <bugs-to>https://github.com/mbruker/Cockatrice/issues</bugs-to>
+ </upstream>
+ <use>
+ <flag name='server'>Compile server support</flag>
+ </use>
+ <longdescription lang="en">
+ Cockatrice is an open-source multiplatform software for playing card
+ games, such as Magic: The Gathering, over a network. It is fully
+ client-server based to prevent any kind of cheating, though it supports
+ single-player games without a network interface as well. Both client
+ and server are written in Qt 4.
+ </longdescription>
+</pkgmetadata>
+