Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/
Date: Tue, 12 Jul 2016 17:03:47
Message-Id: 1468343012.2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514.monsieurp@gentoo
1 commit: 2f2b7ec5b6fb49b79bd936219f0b0ae5baa70514
2 Author: Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 24 13:38:59 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 12 17:03:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2b7ec5
7
8 games-board/cockatrice: version bump to 20160506
9
10 Also add the new dependencies for QT5.
11
12 Closes: https://github.com/gentoo/gentoo/pull/1735
13
14 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
15
16 games-board/cockatrice/Manifest | 1 +
17 games-board/cockatrice/cockatrice-20160506.ebuild | 70 +++++++++++++++++++++++
18 2 files changed, 71 insertions(+)
19
20 diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
21 index 12a95c4..a0b0cc2 100644
22 --- a/games-board/cockatrice/Manifest
23 +++ b/games-board/cockatrice/Manifest
24 @@ -1 +1,2 @@
25 +DIST 2016-05-06-Release.tar.gz 6910937 SHA256 379835006f38b603af01cf46d508fd40e862b451045807b444042914e8736fee SHA512 5f90804270907b3a915e763e6a20c39432f76591a11df7198526fde5635314ffbb27026860053c302be1ef1dfce1efa445c5849c72d1220575314d6c3d67e94f WHIRLPOOL a13c531980da2cf172e933c5bcb179f8dc9368514fe7d2ec12a203f54c04aa5258218c6d2fc1bee30826598e1e8c057c437af6810709c26b0863cd2b665bc159
26 DIST cockatrice_source_20120702.tar.gz 3790304 SHA256 a418124d3df255f2af70a20ff6b13f85361467abe4ea4216602bd3647cfc490e SHA512 119acd394dfe97de72b0be8d1ea8c6178f9d0150dcb50d1aba074c28c8d0f52f2be5758ac3943c49d11f655f02a70fc5f5a7e207b8a2631f73f7178ff17b5c35 WHIRLPOOL 1e5112519ddd0f4107778c97d4cf415959117d7e5854ad9760d50621a77a53d992678470772358c880e89ba35376cbf6abab4687969810c117d2851eae4ec70a
27
28 diff --git a/games-board/cockatrice/cockatrice-20160506.ebuild b/games-board/cockatrice/cockatrice-20160506.ebuild
29 new file mode 100644
30 index 0000000..9cb5d3b
31 --- /dev/null
32 +++ b/games-board/cockatrice/cockatrice-20160506.ebuild
33 @@ -0,0 +1,70 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +inherit cmake-utils eutils gnome2-utils games
40 +
41 +DESCRIPTION="An open-source multiplatform software for playing card games over a network"
42 +HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
43 +
44 +SRC_URI="https://github.com/Cockatrice/${PN}/archive/2016-05-06-Release.tar.gz"
45 +
46 +S=${WORKDIR}/"Cockatrice-2016-05-06-Release"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="amd64 x86"
51 +IUSE="dedicated server"
52 +
53 +DEPEND="
54 + dev-libs/libgcrypt:0
55 + dev-libs/protobuf
56 + dev-qt/qtcore:5
57 + dev-qt/qtconcurrent
58 + dev-qt/linguist-tools
59 + dev-qt/qtprintsupport
60 + !dedicated? (
61 + dev-qt/qtmultimedia:5
62 + dev-qt/qtsvg:5
63 + dev-qt/qtgui:5
64 + )"
65 +
66 +src_configure() {
67 + local mycmakeargs=(
68 + $(usex dedicated "-DWITHOUT_CLIENT=1 -DWITH_SERVER=1" "$(usex server "-DWITH_SERVER=1" "")")
69 + -DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}"
70 + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
71 + -DDATADIR="${GAMES_DATADIR}/${PN}"
72 + -DICONDIR="/usr/share/icons"
73 + -DDESKTOPDIR="/usr/share/applications"
74 + )
75 +
76 + cmake-utils_src_configure
77 +}
78 +
79 +src_compile() {
80 + cmake-utils_src_compile
81 +}
82 +
83 +src_install() {
84 + cmake-utils_src_install
85 + prepgamesdirs
86 +}
87 +
88 +pkg_preinst() {
89 + games_pkg_preinst
90 + use dedicated || gnome2_icon_savelist
91 +}
92 +
93 +pkg_postinst() {
94 + games_pkg_postinst
95 + elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg"
96 + elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds"
97 + elog "you can use those directories in cockatrice settings"
98 + use dedicated || gnome2_icon_cache_update
99 +}
100 +
101 +pkg_postrm() {
102 + use dedicated || gnome2_icon_cache_update
103 +}