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-strategy/wesnoth: wesnoth-1.8.2.ebuild ChangeLog
Date: Mon, 31 May 2010 21:13:28
Message-Id: 20100531211324.6E6322CF37@corvid.gentoo.org
1 mr_bones_ 10/05/31 21:13:24
2
3 Modified: ChangeLog
4 Added: wesnoth-1.8.2.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.180 games-strategy/wesnoth/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.180&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.180&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.179&r2=1.180
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v
19 retrieving revision 1.179
20 retrieving revision 1.180
21 diff -u -r1.179 -r1.180
22 --- ChangeLog 1 May 2010 16:33:25 -0000 1.179
23 +++ ChangeLog 31 May 2010 21:13:23 -0000 1.180
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-strategy/wesnoth
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.179 2010/05/01 16:33:25 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.180 2010/05/31 21:13:23 mr_bones_ Exp $
29 +
30 +*wesnoth-1.8.2 (31 May 2010)
31 +
32 + 31 May 2010; Michael Sterrett <mr_bones_@g.o>
33 + +wesnoth-1.8.2.ebuild:
34 + version bump
35
36 *wesnoth-1.8.1 (01 May 2010)
37
38
39
40
41 1.1 games-strategy/wesnoth/wesnoth-1.8.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/wesnoth-1.8.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/wesnoth-1.8.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wesnoth-1.8.2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.8.2.ebuild,v 1.1 2010/05/31 21:13:23 mr_bones_ Exp $
51
52 EAPI=2
53 inherit cmake-utils eutils multilib toolchain-funcs flag-o-matic games
54
55 DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
56 HOMEPAGE="http://www.wesnoth.org/"
57 SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="dbus dedicated doc nls server tinygui"
63
64 RDEPEND=">=media-libs/libsdl-1.2.7[video,X]
65 media-libs/sdl-net
66 >=media-libs/sdl-ttf-2.0.8
67 >=media-libs/sdl-mixer-1.2[vorbis]
68 >=media-libs/sdl-image-1.2[jpeg,png]
69 !dedicated? (
70 dbus? ( sys-apps/dbus )
71 )
72 >=dev-libs/boost-1.35
73 sys-libs/zlib
74 x11-libs/pango
75 dev-lang/lua
76 media-libs/fontconfig
77 virtual/libintl"
78 DEPEND="${RDEPEND}
79 dev-util/pkgconfig
80 !dedicated? (
81 tinygui? (
82 || (
83 media-gfx/imagemagick[jpeg,png]
84 media-gfx/graphicsmagick[imagemagick,jpeg,png]
85 )
86 )
87 )
88 sys-devel/gettext"
89
90 src_prepare() {
91 if use dedicated || use server ; then
92 sed \
93 -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
94 -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
95 -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
96 -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
97 > "${T}"/wesnothd \
98 || die "sed failed"
99 fi
100 if ! use doc ; then
101 sed -i \
102 -e '/manual/d' \
103 doc/CMakeLists.txt \
104 || die "sed failed"
105 fi
106 # how do I hate boost? Let me count the ways...
107 local boost_ver=$(best_version ">=dev-libs/boost-1.35")
108
109 boost_ver=${boost_ver/*boost-/}
110 boost_ver=${boost_ver%.*}
111 boost_ver=${boost_ver/./_}
112
113 einfo "Using boost version ${boost_ver}"
114 append-cxxflags \
115 -I/usr/include/boost-${boost_ver}
116 append-ldflags \
117 -L/usr/$(get_libdir)/boost-${boost_ver}
118 export BOOST_INCLUDEDIR="/usr/include/boost-${boost_ver}"
119 export BOOST_LIBRARYDIR="/usr/$(get_libdir)/boost-${boost_ver}"
120 }
121
122 src_configure() {
123 filter-flags -ftracer -fomit-frame-pointer
124 if [[ $(gcc-major-version) -eq 3 ]] ; then
125 filter-flags -fstack-protector
126 append-flags -fno-stack-protector
127 fi
128 if use dedicated || use server ; then
129 mycmakeargs=(
130 "-DENABLE_CAMPAIGN_SERVER=TRUE"
131 "-DENABLE_SERVER=TRUE"
132 "-DSERVER_UID=${GAMES_USER_DED}"
133 "-DSERVER_GID=${GAMES_GROUP}"
134 "-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd"
135 )
136 else
137 mycmakeargs=(
138 "-DENABLE_CAMPAIGN_SERVER=FALSE"
139 "-DENABLE_SERVER=FALSE"
140 )
141 fi
142 mycmakeargs+=(
143 $(cmake-utils_use_enable !dedicated GAME)
144 $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY)
145 $(cmake-utils_use_enable nls NLS)
146 $(cmake-utils_use_enable dbus NOTIFICATIONS)
147 "-DGUI=$(use tinygui && echo tiny || echo normal)"
148 "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
149 "-DENABLE_FRIBIDI=FALSE"
150 "-DENABLE_STRICT_COMPILATION=FALSE"
151 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
152 "-DPREFERENCES_DIR=.wesnoth"
153 "-DDATAROOTDIR=${GAMES_DATADIR}"
154 "-DBINDIR=${GAMES_BINDIR}"
155 "-DICONDIR=/usr/share/pixmaps"
156 "-DDESKTOPDIR=/usr/share/applications"
157 "-DMANDIR=/usr/share/man"
158 "-DDOCDIR=/usr/share/doc/${PF}"
159 )
160 cmake-utils_src_configure
161 }
162
163 src_compile() {
164 cmake-utils_src_compile
165 }
166
167 src_install() {
168 DOCS="README changelog players_changelog" cmake-utils_src_install
169 if use dedicated || use server; then
170 keepdir "${GAMES_STATEDIR}/run/wesnothd"
171 doinitd "${T}"/wesnothd || die "doinitd failed"
172 fi
173 prepgamesdirs
174 }