Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/cockatrice/
Date: Thu, 24 Jun 2021 02:16:23
Message-Id: 1624499639.2800fac798ad4cf1018e6fea464f17c2c4c26db6.ionen@gentoo
1 commit: 2800fac798ad4cf1018e6fea464f17c2c4c26db6
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Mon Jun 21 16:25:05 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 24 01:53:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2800fac7
7
8 games-board/cockatrice: fix LICENSE, add missing eclass
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
12 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
13
14 games-board/cockatrice/cockatrice-20210126.ebuild | 32 +++++++++--------------
15 1 file changed, 12 insertions(+), 20 deletions(-)
16
17 diff --git a/games-board/cockatrice/cockatrice-20210126.ebuild b/games-board/cockatrice/cockatrice-20210126.ebuild
18 index f3f5bd2606f..caa652ceef6 100644
19 --- a/games-board/cockatrice/cockatrice-20210126.ebuild
20 +++ b/games-board/cockatrice/cockatrice-20210126.ebuild
21 @@ -3,14 +3,16 @@
22
23 EAPI=7
24
25 -inherit cmake
26 +inherit xdg cmake
27
28 MY_PV="2021-01-26-Release-2.8.0"
29 -DESCRIPTION="An open-source multiplatform software for playing card games over a network"
30 +
31 +DESCRIPTION="Open-source multiplatform software for playing card games over a network"
32 HOMEPAGE="https://github.com/Cockatrice/Cockatrice"
33 SRC_URI="https://github.com/Cockatrice/Cockatrice/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
34 +S="${WORKDIR}/Cockatrice-${MY_PV}"
35
36 -LICENSE="GPL-2"
37 +LICENSE="GPL-2+"
38 SLOT="0"
39 KEYWORDS="~amd64 ~x86"
40 IUSE="+client +oracle test server"
41 @@ -33,17 +35,14 @@ RDEPEND="
42 server? (
43 dev-libs/protobuf:=
44 dev-qt/qtsql:5
45 - )
46 -"
47 + )"
48 +DEPEND="
49 + ${RDEPEND}
50 + test? ( dev-cpp/gtest )"
51 BDEPEND="
52 dev-qt/linguist-tools:5
53 client? ( dev-libs/protobuf )
54 - server? ( dev-libs/protobuf )
55 - test? ( dev-cpp/gtest )
56 -"
57 -DEPEND="${RDEPEND}"
58 -
59 -S="${WORKDIR}/Cockatrice-${MY_PV}"
60 + server? ( dev-libs/protobuf )"
61
62 src_configure() {
63 local mycmakeargs=(
64 @@ -54,7 +53,8 @@ src_configure() {
65 -DWITH_SERVER=$(usex server)
66 -DTEST=$(usex test)
67 -DICONDIR="${EPREFIX}/usr/share/icons"
68 - -DDESKTOPDIR="${EPREFIX}/usr/share/applications" )
69 + -DDESKTOPDIR="${EPREFIX}/usr/share/applications"
70 + )
71
72 # Add date in the help about, come from git originally
73 sed -e 's/^set(PROJECT_VERSION_FRIENDLY.*/set(PROJECT_VERSION_FRIENDLY \"'${MY_PV}'\")/' \
74 @@ -62,11 +62,3 @@ src_configure() {
75
76 cmake_src_configure
77 }
78 -
79 -pkg_postinst() {
80 - xdg_icon_cache_update
81 -}
82 -
83 -pkg_postrm() {
84 - xdg_icon_cache_update
85 -}