Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/holdingnuts/
Date: Fri, 05 Aug 2016 00:23:10
Message-Id: 1470356554.ce7d36bd87f8529dce1a50029233da5b8903c15b.wizardedit@gentoo
1 commit: ce7d36bd87f8529dce1a50029233da5b8903c15b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 4 22:56:30 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 00:22:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce7d36bd
7
8 games-board/holdingnuts: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 .../holdingnuts/holdingnuts-0.0.5-r2.ebuild | 55 ++++++++++++++++++++++
17 1 file changed, 55 insertions(+)
18
19 diff --git a/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild b/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild
20 new file mode 100644
21 index 0000000..89c6f2b
22 --- /dev/null
23 +++ b/games-board/holdingnuts/holdingnuts-0.0.5-r2.ebuild
24 @@ -0,0 +1,55 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils cmake-utils
31 +
32 +DESCRIPTION="An open source poker client and server"
33 +HOMEPAGE="http://www.holdingnuts.net/"
34 +SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.bz2"
35 +
36 +LICENSE="GPL-3"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~x86"
39 +IUSE="alsa debug dedicated"
40 +
41 +RDEPEND="
42 + !dedicated? (
43 + dev-qt/qtcore:4
44 + dev-qt/qtgui:4
45 + alsa? ( >=media-libs/libsdl-1.2.10:0[alsa] )
46 + )"
47 +
48 +DEPEND="${RDEPEND}
49 + >=dev-util/cmake-2.6.3"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${P}-wheel.patch # upstream patch (bug #307901)
53 +)
54 +
55 +src_prepare() {
56 + default
57 +
58 + sed -i -e '/^Path/d' holdingnuts.desktop || die
59 +}
60 +
61 +src_configure() {
62 + local mycmakeargs="-DWITH_AUDIO=$(usex alsa)
63 + -DENABLE_CLIENT=$(usex !dedicated)
64 + -DWITH_DEBUG=$(usex debug)"
65 + cmake-utils_src_configure
66 +}
67 +
68 +src_install() {
69 + cmake-utils_src_install
70 +
71 + if ! use dedicated ; then
72 + domenu ${PN}.desktop
73 + doicon ${PN}.png
74 + doman docs/${PN}.6
75 + fi
76 +
77 + dodoc ChangeLog docs/protocol_spec.txt
78 + doman docs/${PN}-server.6
79 +}