Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424273 - games-board/cockatrice - a networked multiplatform software for playing card games (such as Magic: The Gathering)
Summary: games-board/cockatrice - a networked multiplatform software for playing card ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Julian Ospald
URL: http://cockatrice.de/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-30 20:17 UTC by Wiehann Matthysen
Modified: 2012-08-04 23:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cockatrice-20120624.ebuild - Main ebuild (cockatrice-20120624.ebuild,1.15 KB, text/plain)
2012-06-30 20:17 UTC, Wiehann Matthysen
Details
cockatrice-20120630-servatrice-cmakelists.patch (cockatrice-20120630-servatrice-cmakelists.patch,614 bytes, text/plain)
2012-06-30 20:19 UTC, Wiehann Matthysen
Details
sunrise ebuild (cockatrice-20120624.ebuild,983 bytes, text/plain)
2012-08-02 19:17 UTC, Alexander Berntsen (RETIRED)
Details
sunrise ebuild (cockatrice-20120702.ebuild,1.37 KB, text/plain)
2012-08-04 11:55 UTC, Alexander Berntsen (RETIRED)
Details
build patch (cockatrice-20120702-build.patch,2.90 KB, patch)
2012-08-04 11:56 UTC, Alexander Berntsen (RETIRED)
Details | Diff
underlinking patch (cockatrice-20120702-underlinking.patch,1.26 KB, patch)
2012-08-04 11:56 UTC, Alexander Berntsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wiehann Matthysen 2012-06-30 20:17:02 UTC
Created attachment 316797 [details]
cockatrice-20120624.ebuild - Main ebuild

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.
Comment 1 Wiehann Matthysen 2012-06-30 20:19:13 UTC
Created attachment 316799 [details]
cockatrice-20120630-servatrice-cmakelists.patch
Comment 2 Alexander Berntsen (RETIRED) gentoo-dev 2012-08-02 13:25:33 UTC
compiles and runs fine both with and without client. I recommend adding it to Portage.


@Wiehann would write deps like this:

RDEPEND="
	>=x11-libs/qt-core-4.7.4
	>=x11-libs/qt-sql-4.7.4
	=dev-libs/libgcrypt-1.5*
	=dev-libs/protobuf-2.4*
	client? (
		>=x11-libs/qt-multimedia-4.7.4
		>=x11-libs/qt-svg-4.7.4
		>=x11-libs/qt-gui-4.7.4
	)
	"

DEPEND="${RDEPEND}"


and using git-2 eclass you can also make a 9999 ebuild for <git://github.com/mbruker/Cockatrice>. N.B. you will probably need to git-2_src_unpack.
Comment 3 Alexander Berntsen (RETIRED) gentoo-dev 2012-08-02 19:17:21 UTC
Created attachment 320112 [details]
sunrise ebuild

ebuild in sunrise unreviewed. tested with oldest version of libgcrypt and protobuf in Portage. looks to be working fine. using the patch posted in here. using skel.metadata.xml, but add this to pkgmetadata:
	<use>
		<flag name='client'>Build with client</flag>
    </use>
Comment 4 Julian Ospald 2012-08-02 21:04:52 UTC
games.eclass has to be inherited AFTER cmake-utils.eclass

see http://www.gentoo.org/proj/en/desktop/games/games-ebuild-howto.xml

don't use "client" useflag, use an inverse method with "dedicated" useflag

when you inherit games.eclass you should overwrite src_compile as follows:

src_compile() {
    cmake-utils_src_compile
}

which will ensure cmake-utils variables to be respected like verbose build log.

you don't call "prepgamesdirs" at the end of src_install which is VERY VERY BAD!
Comment 5 Alexander Berntsen (RETIRED) gentoo-dev 2012-08-04 11:55:23 UTC
Created attachment 320274 [details]
sunrise ebuild
Comment 6 Alexander Berntsen (RETIRED) gentoo-dev 2012-08-04 11:56:14 UTC
Created attachment 320276 [details, diff]
build patch
Comment 7 Alexander Berntsen (RETIRED) gentoo-dev 2012-08-04 11:56:51 UTC
Created attachment 320278 [details, diff]
underlinking patch
Comment 8 Julian Ospald 2012-08-04 23:44:01 UTC
in portage.