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.12.4.ebuild ChangeLog
Date: Fri, 26 Jun 2015 04:06:54
Message-Id: 20150626040628.33C76A52@oystercatcher.gentoo.org
1 mr_bones_ 15/06/26 04:06:28
2
3 Modified: ChangeLog
4 Added: wesnoth-1.12.4.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.249 games-strategy/wesnoth/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.249&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.249&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.248&r2=1.249
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v
20 retrieving revision 1.248
21 retrieving revision 1.249
22 diff -u -r1.248 -r1.249
23 --- ChangeLog 13 May 2015 16:08:08 -0000 1.248
24 +++ ChangeLog 26 Jun 2015 04:06:28 -0000 1.249
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-strategy/wesnoth
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.248 2015/05/13 16:08:08 mr_bones_ Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.249 2015/06/26 04:06:28 mr_bones_ Exp $
30 +
31 +*wesnoth-1.12.4 (26 Jun 2015)
32 +
33 + 26 Jun 2015; Michael Sterrett <mr_bones_@g.o> +wesnoth-1.12.4.ebuild:
34 + version bump
35
36 13 May 2015; Michael Sterrett <mr_bones_@g.o> wesnoth-1.12.2.ebuild:
37 add slot dep for lua
38
39
40
41 1.1 games-strategy/wesnoth/wesnoth-1.12.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/wesnoth-1.12.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/wesnoth/wesnoth-1.12.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wesnoth-1.12.4.ebuild
47 ===================================================================
48 # Copyright 1999-2015 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.12.4.ebuild,v 1.1 2015/06/26 04:06:28 mr_bones_ Exp $
51
52 EAPI=5
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 ~x86 ~x86-fbsd"
62 IUSE="dbus dedicated doc fribidi nls server"
63
64 RDEPEND=">=media-libs/libsdl-1.2.7:0[joystick,video,X]
65 media-libs/sdl-net
66 !dedicated? (
67 >=media-libs/sdl-ttf-2.0.8
68 >=media-libs/sdl-mixer-1.2[vorbis]
69 >=media-libs/sdl-image-1.2[jpeg,png]
70 fribidi? ( dev-libs/fribidi )
71 dbus? ( sys-apps/dbus )
72 sys-libs/zlib
73 x11-libs/pango
74 dev-lang/lua:0
75 media-libs/fontconfig
76 )
77 >=dev-libs/boost-1.48[nls,threads]
78 virtual/libintl"
79 DEPEND="${RDEPEND}
80 virtual/pkgconfig
81 sys-devel/gettext"
82
83 src_prepare() {
84 if use dedicated || use server ; then
85 sed \
86 -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
87 -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
88 -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
89 -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
90 > "${T}"/wesnothd || die
91 fi
92 if ! use doc ; then
93 sed -i \
94 -e '/manual/d' \
95 doc/CMakeLists.txt || die
96 fi
97 # bug #472994
98 mv icons/wesnoth-icon-Mac.png icons/wesnoth-icon.png || die
99 mv icons/map-editor-icon-Mac.png icons/wesnoth_editor-icon.png || die
100
101 # respect LINGUAS (bug #483316)
102 if [[ ${LINGUAS+set} ]] ; then
103 local langs
104 for lang in $(cat po/LINGUAS)
105 do
106 has $lang $LINGUAS && langs+="$lang "
107 done
108 echo "$langs" > po/LINGUAS || die
109 fi
110 }
111
112 src_configure() {
113 filter-flags -ftracer -fomit-frame-pointer
114 if [[ $(gcc-major-version) -eq 3 ]] ; then
115 filter-flags -fstack-protector
116 append-flags -fno-stack-protector
117 fi
118 # Work around eclass
119 append-flags -UNDEBUG
120 if use dedicated || use server ; then
121 mycmakeargs=(
122 "-DENABLE_CAMPAIGN_SERVER=TRUE"
123 "-DENABLE_SERVER=TRUE"
124 "-DSERVER_UID=${GAMES_USER_DED}"
125 "-DSERVER_GID=${GAMES_GROUP}"
126 "-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd"
127 )
128 else
129 mycmakeargs=(
130 $(cmake-utils_use_enable fribidi FRIBIDI)
131 "-DENABLE_CAMPAIGN_SERVER=FALSE"
132 "-DENABLE_SERVER=FALSE"
133 )
134 fi
135 mycmakeargs+=(
136 $(cmake-utils_use_enable !dedicated GAME)
137 $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY)
138 $(cmake-utils_use_enable nls NLS)
139 $(cmake-utils_use_enable dbus NOTIFICATIONS)
140 "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
141 "-DENABLE_STRICT_COMPILATION=FALSE"
142 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
143 "-DDATAROOTDIR=${GAMES_DATADIR}"
144 "-DBINDIR=${GAMES_BINDIR}"
145 "-DICONDIR=/usr/share/pixmaps"
146 "-DDESKTOPDIR=/usr/share/applications"
147 "-DLOCALEDIR=/usr/share/locale"
148 "-DMANDIR=/usr/share/man"
149 "-DDOCDIR=/usr/share/doc/${PF}"
150 )
151 cmake-utils_src_configure
152 }
153
154 src_compile() {
155 cmake-utils_src_compile
156 }
157
158 src_install() {
159 DOCS="README.md changelog players_changelog" cmake-utils_src_install
160 if use dedicated || use server; then
161 keepdir "${GAMES_STATEDIR}/run/wesnothd"
162 doinitd "${T}"/wesnothd
163 fi
164 prepgamesdirs
165 }