Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/
Date: Mon, 31 May 2021 08:20:11
Message-Id: 1622448893.f58f22e500f64b3b954e6a375e9932baf5370631.sam@gentoo
1 commit: f58f22e500f64b3b954e6a375e9932baf5370631
2 Author: Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
3 AuthorDate: Sun May 30 11:13:26 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 08:14:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f58f22e5
7
8 games-board/cockatrice: Version bump 20210126
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Closes: https://bugs.gentoo.org/793029
12 Signed-off-by: Guillaume Seren <guillaumeseren <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/21050
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 games-board/cockatrice/Manifest | 1 +
17 games-board/cockatrice/cockatrice-20210126.ebuild | 72 +++++++++++++++++++++++
18 2 files changed, 73 insertions(+)
19
20 diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest
21 index 58e38529b60..66f9d16e724 100644
22 --- a/games-board/cockatrice/Manifest
23 +++ b/games-board/cockatrice/Manifest
24 @@ -1 +1,2 @@
25 DIST cockatrice-20200823.tar.gz 8503044 BLAKE2B a987418b25db53e5fc42627e3efa93ee7348ff341d7cf844647c6655b00bb76f2929cff91c6a1d199525fba2785f4d5da533c934ad483636af1979d52f8eea94 SHA512 0fa919009536238cd540db6ef01271a41f96aa40a3d40b468fbc400905dbdfe914cfb785f62f8135355c64cc8fef19a83604aee1ad4420bb73c8f31b9d48e48b
26 +DIST cockatrice-20210126.tar.gz 8589061 BLAKE2B f90840f2b6044ea364101410adc9481660a7247460f7191d6b022e447cc1685f28384a39596a3fbeaeb67f1af0cc184cf017f8e666e67e673672bc3968ac807a SHA512 e07cdee72c8bf4755d49cac69bd6a2ddb4c168d370ed4a1cbd341537184869ee8680fbf5e9d6b636c7c68888a8d00f474bae9cf245303d638b3aac8762f9fa8e
27
28 diff --git a/games-board/cockatrice/cockatrice-20210126.ebuild b/games-board/cockatrice/cockatrice-20210126.ebuild
29 new file mode 100644
30 index 00000000000..f3f5bd2606f
31 --- /dev/null
32 +++ b/games-board/cockatrice/cockatrice-20210126.ebuild
33 @@ -0,0 +1,72 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit cmake
40 +
41 +MY_PV="2021-01-26-Release-2.8.0"
42 +DESCRIPTION="An open-source multiplatform software for playing card games over a network"
43 +HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
44 +SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+client +oracle test server"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + dev-qt/qtconcurrent:5
54 + dev-qt/qtcore:5
55 + dev-qt/qtgui:5
56 + dev-qt/qtnetwork:5[ssl]
57 + dev-qt/qtprintsupport:5
58 + dev-qt/qtwebsockets:5
59 + dev-qt/qtwidgets:5
60 + client? (
61 + dev-libs/protobuf:=
62 + dev-qt/qtmultimedia:5
63 + dev-qt/qtsvg:5
64 + )
65 + oracle? ( sys-libs/zlib )
66 + server? (
67 + dev-libs/protobuf:=
68 + dev-qt/qtsql:5
69 + )
70 +"
71 +BDEPEND="
72 + dev-qt/linguist-tools:5
73 + client? ( dev-libs/protobuf )
74 + server? ( dev-libs/protobuf )
75 + test? ( dev-cpp/gtest )
76 +"
77 +DEPEND="${RDEPEND}"
78 +
79 +S="${WORKDIR}/Cockatrice-${MY_PV}"
80 +
81 +src_configure() {
82 + local mycmakeargs=(
83 + -DBUILD_SHARED_LIBS=OFF
84 + -DUSE_CCACHE=OFF
85 + -DWITH_CLIENT=$(usex client)
86 + -DWITH_ORACLE=$(usex oracle)
87 + -DWITH_SERVER=$(usex server)
88 + -DTEST=$(usex test)
89 + -DICONDIR="${EPREFIX}/usr/share/icons"
90 + -DDESKTOPDIR="${EPREFIX}/usr/share/applications" )
91 +
92 + # Add date in the help about, come from git originally
93 + sed -e 's/^set(PROJECT_VERSION_FRIENDLY.*/set(PROJECT_VERSION_FRIENDLY \"'${MY_PV}'\")/' \
94 + -i cmake/getversion.cmake || die "sed failed!"
95 +
96 + cmake_src_configure
97 +}
98 +
99 +pkg_postinst() {
100 + xdg_icon_cache_update
101 +}
102 +
103 +pkg_postrm() {
104 + xdg_icon_cache_update
105 +}