Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/pokerth: ChangeLog pokerth-0.8.ebuild
Date: Thu, 30 Sep 2010 03:39:51
Message-Id: 20100930033941.6D12A2004C@flycatcher.gentoo.org
1 mr_bones_ 10/09/30 03:39:41
2
3 Modified: ChangeLog
4 Added: pokerth-0.8.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.16 games-board/pokerth/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/pokerth/ChangeLog?rev=1.16&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/pokerth/ChangeLog?rev=1.16&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/pokerth/ChangeLog?r1=1.15&r2=1.16
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-board/pokerth/ChangeLog,v
19 retrieving revision 1.15
20 retrieving revision 1.16
21 diff -u -r1.15 -r1.16
22 --- ChangeLog 13 Sep 2010 21:54:13 -0000 1.15
23 +++ ChangeLog 30 Sep 2010 03:39:41 -0000 1.16
24 @@ -1,6 +1,11 @@
25 # ChangeLog for games-board/pokerth
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-board/pokerth/ChangeLog,v 1.15 2010/09/13 21:54:13 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-board/pokerth/ChangeLog,v 1.16 2010/09/30 03:39:41 mr_bones_ Exp $
29 +
30 +*pokerth-0.8 (30 Sep 2010)
31 +
32 + 30 Sep 2010; Michael Sterrett <mr_bones_@g.o> +pokerth-0.8.ebuild:
33 + version bump
34
35 *pokerth-0.8_beta3 (13 Sep 2010)
36
37
38
39
40 1.1 games-board/pokerth/pokerth-0.8.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/pokerth/pokerth-0.8.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/pokerth/pokerth-0.8.ebuild?rev=1.1&content-type=text/plain
44
45 Index: pokerth-0.8.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/games-board/pokerth/pokerth-0.8.ebuild,v 1.1 2010/09/30 03:39:41 mr_bones_ Exp $
50
51 EAPI=2
52 inherit multilib flag-o-matic eutils qt4 games
53
54 MY_P="PokerTH-${PV//_/-}-src"
55 DESCRIPTION="Texas Hold'em poker game"
56 HOMEPAGE="http://www.pokerth.net/"
57 SRC_URI="mirror://sourceforge/pokerth/${MY_P}.tar.bz2"
58
59 LICENSE="GPL-1 GPL-2 GPL-3 BitstreamVera public-domain"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86"
62 IUSE="dedicated"
63
64 DEPEND=">=dev-libs/boost-1.41
65 >=net-libs/gnutls-2.2.2
66 >=net-misc/curl-7.16
67 x11-libs/qt-core:4
68 virtual/gsasl
69 !dedicated? (
70 media-libs/libsdl
71 media-libs/sdl-mixer[mikmod,vorbis]
72 >=sys-libs/zlib-1.2.3
73 x11-libs/qt-gui:4
74 )"
75
76 S=${WORKDIR}/${MY_P}
77
78 src_prepare() {
79 local boost_ver
80
81 if use dedicated ; then
82 sed -i \
83 -e 's/pokerth_game.pro//' \
84 pokerth.pro \
85 || die "sed failed"
86 fi
87 sed -i \
88 -e '/no_dead_strip_inits_and_terms/d' \
89 *pro \
90 || die 'sed failed'
91 local boost_ver=$(best_version ">=dev-libs/boost-1.39")
92
93 boost_ver=${boost_ver/*boost-/}
94 boost_ver=${boost_ver%.*}
95 boost_ver=${boost_ver/./_}
96
97 einfo "Using boost version ${boost_ver}"
98 append-cxxflags \
99 -I/usr/include/boost-${boost_ver}
100 append-ldflags \
101 -L/usr/$(get_libdir)/boost-${boost_ver}
102 export BOOST_INCLUDEDIR="/usr/include/boost-${boost_ver}"
103 export BOOST_LIBRARYDIR="/usr/$(get_libdir)/boost-${boost_ver}"
104 }
105
106 src_configure() {
107 eqmake4
108 }
109
110 src_install() {
111 dogamesbin bin/pokerth_server || die
112 if ! use dedicated ; then
113 dogamesbin ${PN} || die
114 insinto "${GAMES_DATADIR}/${PN}"
115 doins -r data || die
116 domenu ${PN}.desktop
117 doicon ${PN}.png
118 fi
119 dodoc ChangeLog TODO docs/{net_protocol,server_setup_howto}.txt
120 prepgamesdirs
121 }