Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/
Date: Tue, 29 Dec 2015 07:41:26
Message-Id: 1451374840.24cfdd5230eeaf7413f8028a7a8dd2393d55aa59.mr_bones_@gentoo
1 commit: 24cfdd5230eeaf7413f8028a7a8dd2393d55aa59
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 03:58:16 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 07:40:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24cfdd52
7
8 old
9
10 Package-Manager: portage-2.2.24
11
12 games-strategy/wesnoth/Manifest | 1 -
13 games-strategy/wesnoth/wesnoth-1.12.4.ebuild | 118 ---------------------------
14 2 files changed, 119 deletions(-)
15
16 diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest
17 index 03d4eb7..2c2c5b3 100644
18 --- a/games-strategy/wesnoth/Manifest
19 +++ b/games-strategy/wesnoth/Manifest
20 @@ -1,2 +1 @@
21 -DIST wesnoth-1.12.4.tar.bz2 392278313 SHA256 bf525060da4201f1e62f861ed021f13175766e074a8a490b995052453df51ea7 SHA512 d8ea6d8c14b69318f4458d7e6dcace28979230ea13b76d07635ae9be7f2c675d4aa9822ff376a9617fe9fc1560999afdcf3165319842a5c2f0a4f87a31c170e9 WHIRLPOOL d4767d809f6085ef979c02928482b4bb16d3a1bdf34246bdb8b9eae0c8a7650f9d7160a851318c24b969fef777064ab7fda7c7687aab09c49a52f08327f4af0f
22 DIST wesnoth-1.12.5.tar.bz2 387726941 SHA256 599aad40da4b271c5138ac5a4391d9ff9c367ee51f5c30ca138f6baf92aea81d SHA512 1a785c02389cd4bdc79b61f62c5bb98f01fde61c3923527195a5a8e8f8986349fcda3d40a4fb14248626ea8e79eba12b8232e39cce08bfea7fbdf3d9627d53b4 WHIRLPOOL 7afbbf28de36ce3a55a177bc5b6de7f635c4e18de5934378fce6ea6a1da7ab95c55ff6c35b4a3166927efc17138fb18ef600e08969b29001455e21a260c8f6b6
23
24 diff --git a/games-strategy/wesnoth/wesnoth-1.12.4.ebuild b/games-strategy/wesnoth/wesnoth-1.12.4.ebuild
25 deleted file mode 100644
26 index 59bb840..0000000
27 --- a/games-strategy/wesnoth/wesnoth-1.12.4.ebuild
28 +++ /dev/null
29 @@ -1,118 +0,0 @@
30 -# Copyright 1999-2015 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -# $Id$
33 -
34 -EAPI=5
35 -inherit cmake-utils eutils multilib toolchain-funcs flag-o-matic games
36 -
37 -DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
38 -HOMEPAGE="http://www.wesnoth.org/"
39 -SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2"
40 -
41 -LICENSE="GPL-2"
42 -SLOT="0"
43 -KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd"
44 -IUSE="dbus dedicated doc fribidi nls server"
45 -
46 -RDEPEND=">=media-libs/libsdl-1.2.7:0[joystick,video,X]
47 - media-libs/sdl-net
48 - !dedicated? (
49 - >=media-libs/sdl-ttf-2.0.8
50 - >=media-libs/sdl-mixer-1.2[vorbis]
51 - >=media-libs/sdl-image-1.2[jpeg,png]
52 - fribidi? ( dev-libs/fribidi )
53 - dbus? ( sys-apps/dbus )
54 - sys-libs/zlib
55 - x11-libs/pango
56 - dev-lang/lua:0
57 - media-libs/fontconfig
58 - )
59 - >=dev-libs/boost-1.48:=[nls,threads]
60 - virtual/libintl"
61 -DEPEND="${RDEPEND}
62 - virtual/pkgconfig
63 - sys-devel/gettext"
64 -
65 -src_prepare() {
66 - if use dedicated || use server ; then
67 - sed \
68 - -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
69 - -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
70 - -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
71 - -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
72 - > "${T}"/wesnothd || die
73 - fi
74 - if ! use doc ; then
75 - sed -i \
76 - -e '/manual/d' \
77 - doc/CMakeLists.txt || die
78 - fi
79 - # bug #472994
80 - mv icons/wesnoth-icon-Mac.png icons/wesnoth-icon.png || die
81 - mv icons/map-editor-icon-Mac.png icons/wesnoth_editor-icon.png || die
82 -
83 - # respect LINGUAS (bug #483316)
84 - if [[ ${LINGUAS+set} ]] ; then
85 - local langs
86 - for lang in $(cat po/LINGUAS)
87 - do
88 - has $lang $LINGUAS && langs+="$lang "
89 - done
90 - echo "$langs" > po/LINGUAS || die
91 - fi
92 -}
93 -
94 -src_configure() {
95 - filter-flags -ftracer -fomit-frame-pointer
96 - if [[ $(gcc-major-version) -eq 3 ]] ; then
97 - filter-flags -fstack-protector
98 - append-flags -fno-stack-protector
99 - fi
100 - # Work around eclass
101 - append-flags -UNDEBUG
102 - if use dedicated || use server ; then
103 - mycmakeargs=(
104 - "-DENABLE_CAMPAIGN_SERVER=TRUE"
105 - "-DENABLE_SERVER=TRUE"
106 - "-DSERVER_UID=${GAMES_USER_DED}"
107 - "-DSERVER_GID=${GAMES_GROUP}"
108 - "-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd"
109 - )
110 - else
111 - mycmakeargs=(
112 - $(cmake-utils_use_enable fribidi FRIBIDI)
113 - "-DENABLE_CAMPAIGN_SERVER=FALSE"
114 - "-DENABLE_SERVER=FALSE"
115 - )
116 - fi
117 - mycmakeargs+=(
118 - $(cmake-utils_use_enable !dedicated GAME)
119 - $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY)
120 - $(cmake-utils_use_enable nls NLS)
121 - $(cmake-utils_use_enable dbus NOTIFICATIONS)
122 - "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
123 - "-DENABLE_STRICT_COMPILATION=FALSE"
124 - "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
125 - "-DDATAROOTDIR=${GAMES_DATADIR}"
126 - "-DBINDIR=${GAMES_BINDIR}"
127 - "-DICONDIR=/usr/share/pixmaps"
128 - "-DDESKTOPDIR=/usr/share/applications"
129 - "-DLOCALEDIR=/usr/share/locale"
130 - "-DMANDIR=/usr/share/man"
131 - "-DDOCDIR=/usr/share/doc/${PF}"
132 - )
133 - cmake-utils_src_configure
134 -}
135 -
136 -src_compile() {
137 - cmake-utils_src_compile
138 -}
139 -
140 -src_install() {
141 - DOCS="README.md changelog players_changelog" cmake-utils_src_install
142 - if use dedicated || use server; then
143 - keepdir "${GAMES_STATEDIR}/run/wesnothd"
144 - doinitd "${T}"/wesnothd
145 - fi
146 - prepgamesdirs
147 -}